Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
python-hypothesis-fspaths


Commits:
3df2c77f by Rafael Fontenelle at 2024-03-01T01:11:21-05:00
Remove pytest-runner, use pypa build and installer

- - - - -
3537e8fb by Daniel M. Capella at 2024-03-01T01:11:21-05:00
Add SRCINFO

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,17 @@
+pkgbase = python-hypothesis-fspaths
+       pkgdesc = Hypothesis extension for generating filesystem paths
+       pkgver = 0.1.0
+       pkgrel = 9
+       url = https://github.com/lazka/hypothesis-fspaths
+       arch = any
+       license = MIT
+       checkdepends = python-pytest
+       makedepends = python-setuptools
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
+       depends = python-hypothesis
+       source = 
python-hypothesis-fspaths-0.1.0.tar.gz::https://github.com/lazka/hypothesis-fspaths/archive/v0.1.0.tar.gz
+       sha512sums = 
26c6b347e2f4123239f2f1e64346b9a5162b8a3ae993b498d9f5f7edf5dbc2007906b7fcb3423b5906423ed7e3fd2d7e67049e7e1319e9f6646d80c06d7941c4
+
+pkgname = python-hypothesis-fspaths


=====================================
PKGBUILD
=====================================
@@ -8,23 +8,30 @@ url="https://github.com/lazka/hypothesis-fspaths";
 license=('MIT')
 arch=('any')
 depends=('python-hypothesis')
-makedepends=('python-setuptools' 'python-pytest-runner')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+checkdepends=('python-pytest')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/lazka/hypothesis-fspaths/archive/v$pkgver.tar.gz";)
 
sha512sums=('26c6b347e2f4123239f2f1e64346b9a5162b8a3ae993b498d9f5f7edf5dbc2007906b7fcb3423b5906423ed7e3fd2d7e67049e7e1319e9f6646d80c06d7941c4')
 
+prepare() {
+  cd hypothesis-fspaths-$pkgver
+  # remove superfluous dependency from 'setup_requires'
+  sed -i '/pytest-runner/d' setup.py
+}
+
 build() {
   cd hypothesis-fspaths-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd hypothesis-fspaths-$pkgver
-  python setup.py pytest
+  pytest
 }
 
 package() {
   cd hypothesis-fspaths-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-hypothesis-fspaths/-/compare/4b2894081d3094f426404d7d936c80b4a246c5f7...3537e8fbee1feef2801593d84d34b2310edbfed7

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-hypothesis-fspaths/-/compare/4b2894081d3094f426404d7d936c80b4a246c5f7...3537e8fbee1feef2801593d84d34b2310edbfed7
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to