[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2022-09-02 Thread Daniel M. Capella via arch-commits
Date: Saturday, September 3, 2022 @ 01:11:23
  Author: polyzen
Revision: 1291016

upgpkg: python-pytest 7.1.3-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |   11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-09-02 22:42:04 UTC (rev 1291015)
+++ PKGBUILD2022-09-03 01:11:23 UTC (rev 1291016)
@@ -3,8 +3,8 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=7.1.2
-pkgrel=2
+pkgver=7.1.3
+pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')
@@ -19,8 +19,8 @@
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
 
source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
-sha256sums=('a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45')
-b2sums=('c59e477ba52f2ff6f9885b91bbdc9b70dd4ffced3902417cd2e8cf28ba778e92ab5738f1be4d1c8c5c41c7140ac56622b6d44261d618426ae39fd00026bf139c')
+sha256sums=('4f365fec2dff9c1162f834d9f18af1ba13062db0c708bf7b946f8a5c76180c39')
+b2sums=('39935fbfc9eb79a220324b8642e80225472a658f85fa8ef50b1dff5396dd30cfde22b2faf3909df0ba7d08ea14f548794974a7fd7670d7204e8d625ea5949630')
 
 # Remove dep on setuptools_scm
 prepare() {
@@ -40,7 +40,8 @@
   cd pytest-$pkgver
   python -m venv --system-site-packages test-env
   test-env/bin/python -m installer dist/*.whl
-  test-env/bin/python -m pytest
+  # https://github.com/pytest-dev/pytest/issues/10042
+  test-env/bin/python -m pytest -o xfail_strict=False
 }
 
 package() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2022-09-02 Thread Daniel M. Capella via arch-commits
Date: Friday, September 2, 2022 @ 16:22:24
  Author: polyzen
Revision: 1290922

upgpkg: python-pytest 7.1.2-2 Use PEP 517

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |   17 +++--
 1 file changed, 11 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-09-02 15:59:41 UTC (rev 1290921)
+++ PKGBUILD2022-09-02 16:22:24 UTC (rev 1290922)
@@ -4,7 +4,7 @@
 
 pkgname=python-pytest
 pkgver=7.1.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')
@@ -11,7 +11,7 @@
 url="https://pytest.org/;
 depends=('python-attrs' 'python-iniconfig' 'python-packaging' 'python-pluggy'
  'python-py' 'python-tomli')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock'
   'python-nose' 'python-requests' 'python-xmlschema'
   # Unlisted, but actually used. Check again after a while:
@@ -33,18 +33,23 @@
 
 build() {
   cd pytest-$pkgver
-  python setup.py build
+  python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
   cd pytest-$pkgver
   python -m venv --system-site-packages test-env
-  test-env/bin/python setup.py install --optimize=1 --skip-build
+  test-env/bin/python -m installer dist/*.whl
   test-env/bin/python -m pytest
 }
 
 package() {
   cd pytest-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s "$site_packages"/pytest-$pkgver.dist-info/LICENSE \
+"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2022-04-23 Thread Daniel M. Capella via arch-commits
Date: Saturday, April 23, 2022 @ 21:07:40
  Author: polyzen
Revision: 1188558

upgpkg: python-pytest 7.1.2-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-04-23 21:07:36 UTC (rev 1188557)
+++ PKGBUILD2022-04-23 21:07:40 UTC (rev 1188558)
@@ -3,7 +3,7 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=7.1.1
+pkgver=7.1.2
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
@@ -19,8 +19,8 @@
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
 
source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
-sha256sums=('841132caef6b1ad17a9afde46dc4f6cfa59a05f9555aae5151f73bdf2820ca63')
-b2sums=('cc70b61ab863c19db62fc765c1819624d2e330116e4c8561693a895d3157ea6011a9f2db4e96f22cb802b295ae841c81e71a741cec8f64d4b7f70c539356fa7e')
+sha256sums=('a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45')
+b2sums=('c59e477ba52f2ff6f9885b91bbdc9b70dd4ffced3902417cd2e8cf28ba778e92ab5738f1be4d1c8c5c41c7140ac56622b6d44261d618426ae39fd00026bf139c')
 
 # Remove dep on setuptools_scm
 prepare() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2022-03-17 Thread Daniel M. Capella via arch-commits
Date: Thursday, March 17, 2022 @ 21:24:45
  Author: polyzen
Revision: 1157127

upgpkg: python-pytest 7.1.1-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-03-17 21:24:39 UTC (rev 1157126)
+++ PKGBUILD2022-03-17 21:24:45 UTC (rev 1157127)
@@ -3,7 +3,7 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=7.1.0
+pkgver=7.1.1
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
@@ -19,8 +19,8 @@
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
 
source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
-sha256sums=('f1089d218cfcc63a212c42896f1b7fbf096874d045e1988186861a1a87d27b47')
-b2sums=('2417ccb4a41c9dc5b957bef3c7e190d2469d604a15368cc59ad3d6dcffc46617690269e5c1d6f6fa81c376f426ec8e825389dbc0dd15688ced65433107651676')
+sha256sums=('841132caef6b1ad17a9afde46dc4f6cfa59a05f9555aae5151f73bdf2820ca63')
+b2sums=('cc70b61ab863c19db62fc765c1819624d2e330116e4c8561693a895d3157ea6011a9f2db4e96f22cb802b295ae841c81e71a741cec8f64d4b7f70c539356fa7e')
 
 # Remove dep on setuptools_scm
 prepare() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2022-03-14 Thread Daniel M. Capella via arch-commits
Date: Tuesday, March 15, 2022 @ 01:53:12
  Author: polyzen
Revision: 1154123

upgpkg: python-pytest 7.1.0-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-03-15 01:47:08 UTC (rev 1154122)
+++ PKGBUILD2022-03-15 01:53:12 UTC (rev 1154123)
@@ -3,7 +3,7 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=7.0.1
+pkgver=7.1.0
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
@@ -19,8 +19,8 @@
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
 
source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
-sha256sums=('e30905a0c131d3d94b89624a1cc5afec3e0ba2fbdb151867d8e0ebd49850f171')
-b2sums=('fcaef6afc6e98f6716a80f6451671b2abbf9ad676330a6e66e917a73e018eef966de8e7ef7ab48a1213167476eef1eb37cc5e84ec2bd9e5eab4ec6f1a8071c87')
+sha256sums=('f1089d218cfcc63a212c42896f1b7fbf096874d045e1988186861a1a87d27b47')
+b2sums=('2417ccb4a41c9dc5b957bef3c7e190d2469d604a15368cc59ad3d6dcffc46617690269e5c1d6f6fa81c376f426ec8e825389dbc0dd15688ced65433107651676')
 
 # Remove dep on setuptools_scm
 prepare() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2022-02-26 Thread Daniel M. Capella via arch-commits
Date: Sunday, February 27, 2022 @ 02:55:08
  Author: polyzen
Revision: 1136725

upgpkg: python-pytest 7.0.1-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-02-27 01:03:55 UTC (rev 1136724)
+++ PKGBUILD2022-02-27 02:55:08 UTC (rev 1136725)
@@ -3,7 +3,7 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=7.0.0
+pkgver=7.0.1
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
@@ -19,8 +19,8 @@
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
 
source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
-sha256sums=('dad48ffda394e5ad9aa3b7d7ddf339ed502e5e365b1350e0af65f4a602344b11')
-b2sums=('3af132da903252323086b21eb052d35973f1e81189972d7f1880a22c5dd8a2b779bf2450f394ef9b1e156b780bcf6f677a0b043db204bcb6038a9a85c7f393e6')
+sha256sums=('e30905a0c131d3d94b89624a1cc5afec3e0ba2fbdb151867d8e0ebd49850f171')
+b2sums=('fcaef6afc6e98f6716a80f6451671b2abbf9ad676330a6e66e917a73e018eef966de8e7ef7ab48a1213167476eef1eb37cc5e84ec2bd9e5eab4ec6f1a8071c87')
 
 # Remove dep on setuptools_scm
 prepare() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2022-02-06 Thread Daniel M. Capella via arch-commits
Date: Monday, February 7, 2022 @ 06:52:50
  Author: polyzen
Revision: 1127405

upgpkg: python-pytest 7.0.0-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |   15 +++
 1 file changed, 7 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-02-07 06:10:14 UTC (rev 1127404)
+++ PKGBUILD2022-02-07 06:52:50 UTC (rev 1127405)
@@ -3,14 +3,14 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=6.2.5
-pkgrel=3
+pkgver=7.0.0
+pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')
 url="https://pytest.org/;
 depends=('python-attrs' 'python-iniconfig' 'python-packaging' 'python-pluggy'
- 'python-py' 'python-toml')
+ 'python-py' 'python-tomli')
 makedepends=('python-setuptools')
 checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock'
   'python-nose' 'python-requests' 'python-xmlschema'
@@ -19,17 +19,16 @@
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
 
source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
-sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89')
-b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70')
+sha256sums=('dad48ffda394e5ad9aa3b7d7ddf339ed502e5e365b1350e0af65f4a602344b11')
+b2sums=('3af132da903252323086b21eb052d35973f1e81189972d7f1880a22c5dd8a2b779bf2450f394ef9b1e156b780bcf6f677a0b043db204bcb6038a9a85c7f393e6')
 
-# Remove dep on setuptools_scm and workaround test failures
+# Remove dep on setuptools_scm
 prepare() {
   cd pytest-$pkgver
   sed -i "/^\[metadata\]/a version = $pkgver
   /setuptools-scm/d" setup.cfg
   sed -i '/setuptools-scm\|wheel/d
-  /\[tool.setuptools_scm\]/,/^$/d
-  /_pytest.warning_types.PytestUnknownMarkWarning/a \"ignore:Creating a 
LegacyVersion has been deprecated and will be removed in the next major 
release:DeprecationWarning",' pyproject.toml
+  /\[tool.setuptools_scm\]/,/^$/d' pyproject.toml
 }
 
 build() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-12-07 Thread Evangelos Foutras via arch-commits
Date: Monday, December 6, 2021 @ 23:18:24
  Author: foutrelis
Revision: 1065418

Remove previous patch; fixed twisted instead

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |   12 +++-
 1 file changed, 3 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-12-06 23:14:04 UTC (rev 1065417)
+++ PKGBUILD2021-12-06 23:18:24 UTC (rev 1065418)
@@ -18,12 +18,9 @@
   'lsof' 'python-asynctest' 'python-decorator' 'python-docutils'
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
-source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;
-
$pkgname-python310.patch::https://github.com/pytest-dev/pytest/commit/51293de324fc.patch)
-sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89'
-'5c359d371c1fcca505c16514cc9881458957cdbdf729a16ed6e96885f9e34b23')
-b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70'
-
'81025ccc1ea8b49470612b5724b38b57be367f4f8b981f42d64245b57fb3e8ef8b798088a7b61f8d7a07b0c5a787b101fc2fee38a83ea3a573bf9bb851e6e8e7')
+source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
+sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89')
+b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70')
 
 # Remove dep on setuptools_scm and workaround test failures
 prepare() {
@@ -33,9 +30,6 @@
   sed -i '/setuptools-scm\|wheel/d
   /\[tool.setuptools_scm\]/,/^$/d
   /_pytest.warning_types.PytestUnknownMarkWarning/a \"ignore:Creating a 
LegacyVersion has been deprecated and will be removed in the next major 
release:DeprecationWarning",' pyproject.toml
-
-  # https://github.com/pytest-dev/pytest/issues/8663
-  sed 's/pytester/testdir/' ../$pkgname-python310.patch | patch -Np1
 }
 
 build() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-12-07 Thread Evangelos Foutras via arch-commits
Date: Monday, December 6, 2021 @ 22:07:22
  Author: foutrelis
Revision: 1065407

upgpkg: python-pytest 6.2.5-3: Python 3.10 rebuild

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-12-06 22:06:30 UTC (rev 1065406)
+++ PKGBUILD2021-12-06 22:07:22 UTC (rev 1065407)
@@ -4,7 +4,7 @@
 
 pkgname=python-pytest
 pkgver=6.2.5
-pkgrel=2
+pkgrel=3
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-12-07 Thread Evangelos Foutras via arch-commits
Date: Monday, December 6, 2021 @ 22:04:08
  Author: foutrelis
Revision: 1065404

Fix tests with Python 3.10

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |   12 +---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-12-06 22:03:18 UTC (rev 1065403)
+++ PKGBUILD2021-12-06 22:04:08 UTC (rev 1065404)
@@ -18,9 +18,12 @@
   'lsof' 'python-asynctest' 'python-decorator' 'python-docutils'
   'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
   'python-pytest-xdist' 'python-twisted')
-source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
-sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89')
-b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70')
+source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;
+
$pkgname-python310.patch::https://github.com/pytest-dev/pytest/commit/51293de324fc.patch)
+sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89'
+'5c359d371c1fcca505c16514cc9881458957cdbdf729a16ed6e96885f9e34b23')
+b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70'
+
'81025ccc1ea8b49470612b5724b38b57be367f4f8b981f42d64245b57fb3e8ef8b798088a7b61f8d7a07b0c5a787b101fc2fee38a83ea3a573bf9bb851e6e8e7')
 
 # Remove dep on setuptools_scm and workaround test failures
 prepare() {
@@ -30,6 +33,9 @@
   sed -i '/setuptools-scm\|wheel/d
   /\[tool.setuptools_scm\]/,/^$/d
   /_pytest.warning_types.PytestUnknownMarkWarning/a \"ignore:Creating a 
LegacyVersion has been deprecated and will be removed in the next major 
release:DeprecationWarning",' pyproject.toml
+
+  # https://github.com/pytest-dev/pytest/issues/8663
+  sed 's/pytester/testdir/' ../$pkgname-python310.patch | patch -Np1
 }
 
 build() {



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-11-30 Thread Felix Yan via arch-commits
Date: Wednesday, December 1, 2021 @ 00:07:45
  Author: felixonmars
Revision: 1059077

upgpkg: python-pytest 6.2.5-2: Python 3.10 rebuild

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-11-30 23:58:40 UTC (rev 1059076)
+++ PKGBUILD2021-12-01 00:07:45 UTC (rev 1059077)
@@ -4,7 +4,7 @@
 
 pkgname=python-pytest
 pkgver=6.2.5
-pkgrel=1
+pkgrel=2
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-08-30 Thread Daniel M. Capella via arch-commits
Date: Tuesday, August 31, 2021 @ 00:49:06
  Author: polyzen
Revision: 1010111

upgpkg: python-pytest 6.2.5-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |   39 ---
 1 file changed, 24 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-08-31 00:18:32 UTC (rev 1010110)
+++ PKGBUILD2021-08-31 00:49:06 UTC (rev 1010111)
@@ -1,28 +1,35 @@
 # Maintainer: Felix Yan 
+# Maintainer: Daniel M. Capella 
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=6.2.4
+pkgver=6.2.5
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')
 url="https://pytest.org/;
-depends=('python-attrs' 'python-iniconfig' 'python-more-itertools' 
'python-packaging' 'python-pluggy'
+depends=('python-attrs' 'python-iniconfig' 'python-packaging' 'python-pluggy'
  'python-py' 'python-toml')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock' 
'python-nose' 'python-requests'
-  'python-xmlschema'
+makedepends=('python-setuptools')
+checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock'
+  'python-nose' 'python-requests' 'python-xmlschema'
   # Unlisted, but actually used. Check again after a while:
-  'python-decorator' 'python-docutils' 'python-jinja' 
'python-numpy' 'python-pexpect'
-  'python-pygments' 'python-twisted' 'python-pytest-xdist')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz;)
-sha512sums=('aeb3483f57e72d5cab4846e45bb4a2d7b457539bba7ad447456f40ab10862a86c8085ce681e35b5c2cdbda12318358e451ec65a3dc3e5f62d66d9ce4191182c7')
+  'lsof' 'python-asynctest' 'python-decorator' 'python-docutils'
+  'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
+  'python-pytest-xdist' 'python-twisted')
+source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz;)
+sha256sums=('131b36680866a76e6781d13f101efb86cf674ebb9762eb70d3082b6f29889e89')
+b2sums=('9dfc87279617be58353566009325f929e6fa53d54fd4c665a75f3b359ab5415972d745a680eb85ab21ca9eaec84450bc1decd50566b0ccdf90d7551f3d03ee70')
 
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
+# Remove dep on setuptools_scm and workaround test failures
 prepare() {
-  sed -i '/_pytest.warning_types.PytestUnknownMarkWarning/a \
"ignore:Creating a LegacyVersion has been deprecated and will be removed in the 
next major release:DeprecationWarning"' pytest-$pkgver/pyproject.toml
+  cd pytest-$pkgver
+  sed -i "/^\[metadata\]/a version = $pkgver
+  /setuptools-scm/d" setup.cfg
+  sed -i '/setuptools-scm\|wheel/d
+  /\[tool.setuptools_scm\]/,/^$/d
+  /_pytest.warning_types.PytestUnknownMarkWarning/a \"ignore:Creating a 
LegacyVersion has been deprecated and will be removed in the next major 
release:DeprecationWarning",' pyproject.toml
 }
 
 build() {
@@ -32,13 +39,15 @@
 
 check() {
   cd pytest-$pkgver
-  python setup.py egg_info
-  # pdb tests: https://github.com/pytest-dev/pytest/issues/8161
-  PYTHONPATH="$PWD"/build/lib python src/pytest/__main__.py
+  mkdir -p temp
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  python setup.py install --root=temp --optimize=1 --skip-build
+  PATH="$PWD/temp/usr/bin:$PATH" PYTHONPATH="$PWD/temp/$site_packages" pytest
 }
 
 package() {
   cd pytest-$pkgver
+  export PYTHONHASHSEED=0
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-05-05 Thread Felix Yan via arch-commits
Date: Wednesday, May 5, 2021 @ 10:54:03
  Author: felixonmars
Revision: 927447

upgpkg: python-pytest 6.2.4-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-05-05 10:44:07 UTC (rev 927446)
+++ PKGBUILD2021-05-05 10:54:03 UTC (rev 927447)
@@ -2,7 +2,7 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=6.2.3
+pkgver=6.2.4
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
@@ -17,7 +17,7 @@
   'python-decorator' 'python-docutils' 'python-jinja' 
'python-numpy' 'python-pexpect'
   'python-pygments' 'python-twisted' 'python-pytest-xdist')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz;)
-sha512sums=('af606d5465809fd3cfba8fd44b51af1a7571277696795818aaedaddec211d5d61ffbead01032bfe75fa0e08c581461db23dc6aa95f28fad7df634e5d12b6b14f')
+sha512sums=('aeb3483f57e72d5cab4846e45bb4a2d7b457539bba7ad447456f40ab10862a86c8085ce681e35b5c2cdbda12318358e451ec65a3dc3e5f62d66d9ce4191182c7')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 


[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-04-05 Thread Felix Yan via arch-commits
Date: Monday, April 5, 2021 @ 18:48:42
  Author: felixonmars
Revision: 911956

upgpkg: python-pytest 6.2.3-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |9 +++--
 1 file changed, 3 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-04-05 18:48:23 UTC (rev 911955)
+++ PKGBUILD2021-04-05 18:48:42 UTC (rev 911956)
@@ -2,7 +2,7 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=6.2.2
+pkgver=6.2.3
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
@@ -17,7 +17,7 @@
   'python-decorator' 'python-docutils' 'python-jinja' 
'python-numpy' 'python-pexpect'
   'python-pygments' 'python-twisted' 'python-pytest-xdist')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz;)
-sha512sums=('c7b6dfee858984ca842147face869c7a47edd41aa95054de0edaaae7990ce9f8a1a3f4caa9a1b298cd6aebf6961e4a93b6662991866f0970e7a37fb79756f298')
+sha512sums=('af606d5465809fd3cfba8fd44b51af1a7571277696795818aaedaddec211d5d61ffbead01032bfe75fa0e08c581461db23dc6aa95f28fad7df634e5d12b6b14f')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
@@ -34,10 +34,7 @@
   cd pytest-$pkgver
   python setup.py egg_info
   # pdb tests: https://github.com/pytest-dev/pytest/issues/8161
-  PYTHONPATH="$PWD"/build/lib python src/pytest/__main__.py --deselect 
testing/test_debugging.py::TestPDB::test_pdb_interaction_doctest \
---deselect 
testing/test_debugging.py::TestPDB::test_pdb_with_injected_do_debug \
---deselect 
testing/test_debugging.py::TestPDB::test_pdb_continue_with_recursive_debug \
---deselect 
testing/test_debugging.py::test_pdb_suspends_fixture_capturing
+  PYTHONPATH="$PWD"/build/lib python src/pytest/__main__.py
 }
 
 package() {


[arch-commits] Commit in python-pytest/trunk (PKGBUILD)

2021-02-28 Thread Filipe LaĆ­ns via arch-commits
Date: Sunday, February 28, 2021 @ 20:47:33
  Author: ffy00
Revision: 876063

upgpkg: python-pytest 6.2.2-1

Modified:
  python-pytest/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-02-28 20:44:38 UTC (rev 876062)
+++ PKGBUILD2021-02-28 20:47:33 UTC (rev 876063)
@@ -2,7 +2,7 @@
 # Contributor: Felix Kaiser 
 
 pkgname=python-pytest
-pkgver=6.2.1
+pkgver=6.2.2
 pkgrel=1
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
@@ -17,7 +17,7 @@
   'python-decorator' 'python-docutils' 'python-jinja' 
'python-numpy' 'python-pexpect'
   'python-pygments' 'python-twisted' 'python-pytest-xdist')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest/archive/$pkgver.tar.gz;)
-sha512sums=('c6816d9007e19276741ccf20d5c303b7dc1a66a0332fed81cda5ab1f1c68db5cdbe85c8dfeacbdf02482fe7ee4e0f72839912194b1f60c8c17a0b69b4faa1942')
+sha512sums=('c7b6dfee858984ca842147face869c7a47edd41aa95054de0edaaae7990ce9f8a1a3f4caa9a1b298cd6aebf6961e4a93b6662991866f0970e7a37fb79756f298')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver