Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages / 
python-pytest-trio


Commits:
074e096f by Maxime Gauduin at 2023-12-27T13:56:17+01:00
drop setup.py

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,25 @@
+pkgbase = python-pytest-trio
+       pkgdesc = Pytest plugin for Trio
+       pkgver = 0.8.0
+       pkgrel = 4
+       url = https://github.com/python-trio/pytest-trio
+       arch = any
+       license = APACHE
+       license = MIT
+       checkdepends = python-pytest-cov
+       checkdepends = python-trio-asyncio
+       makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python
+       depends = python-exceptiongroup
+       depends = python-hypothesis
+       depends = python-outcome
+       depends = python-pytest
+       depends = python-trio
+       source = 
git+https://github.com/python-trio/pytest-trio.git#tag=250ec45f5d72eca78ab0ea2d1571667d2c51f8b5
+       b2sums = SKIP
+
+pkgname = python-pytest-trio


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=python-pytest-trio
 pkgver=0.8.0
-pkgrel=3
+pkgrel=4
 pkgdesc='Pytest plugin for Trio'
 arch=(any)
 url=https://github.com/python-trio/pytest-trio
@@ -12,14 +12,18 @@ license=(
 )
 depends=(
   python
-  python-async_generator
+  python-exceptiongroup
   python-hypothesis
+  python-outcome
   python-pytest
   python-trio
 )
 makedepends=(
   git
+  python-build
+  python-installer
   python-setuptools
+  python-wheel
 )
 checkdepends=(
   python-pytest-cov
@@ -29,6 +33,11 @@ _tag=250ec45f5d72eca78ab0ea2d1571667d2c51f8b5
 source=(git+https://github.com/python-trio/pytest-trio.git#tag=${_tag})
 b2sums=(SKIP)
 
+prepare() {
+  cd pytest-trio
+  git cherry-pick -n 9cda20bbb966fe1e4ae51921d566c668654ee5e1
+}
+
 pkgver() {
   cd pytest-trio
   git describe --tags | sed 's/^v//'
@@ -36,19 +45,18 @@ pkgver() {
 
 build() {
   cd pytest-trio
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd pytest-trio
-  PYTHONPATH="." PYTEST_PLUGINS="pytest_trio.plugin" python -m pytest
+  PYTHONPATH="." python -m pytest
 }
 
 package() {
-  cd pytest-trio
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-pytest-trio/
-  install -Dm 644 LICENSE.MIT -t 
"${pkgdir}"/usr/share/licenses/python-pytest-trio/
+  python -m installer --destdir="${pkgdir}" pytest-trio/dist/*.whl
+  install -Dm 644 pytest-trio/LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-pytest-trio/
+  install -Dm 644 pytest-trio/LICENSE.MIT -t 
"${pkgdir}"/usr/share/licenses/python-pytest-trio/
 }
 
 # vim: ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-trio/-/commit/074e096f379959c91a2333b9e79ce43962e4ff38

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytest-trio/-/commit/074e096f379959c91a2333b9e79ce43962e4ff38
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to