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


Commits:
8fa51f9f by Rafael Fontenelle at 2024-02-28T21:34:04-03:00
Remove pytest-runner, use pypa build and installer

- - - - -
e52d1bf1 by Daniel M. Capella at 2024-02-28T21:44:48-05:00
Add SRCINFO

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,22 @@
+pkgbase = python-geocoder
+       pkgdesc = A simple and consistent geocoding library
+       pkgver = 1.38.1
+       pkgrel = 5
+       url = https://github.com/DenisCarriere/geocoder
+       arch = any
+       license = MIT
+       checkdepends = python-pytest
+       checkdepends = python-requests-mock
+       makedepends = python-setuptools
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
+       depends = python-requests
+       depends = python-ratelim
+       depends = python-click
+       depends = python-six
+       depends = python-future
+       source = 
https://pypi.io/packages/source/g/geocoder/geocoder-1.38.1.tar.gz
+       sha512sums = 
e6308b3a918fe2d61bbaa3ad0b0aa2039757a78146acb497fd98e57d4315541dd56a76b482d22823b314e8a093ab8b6759d7aadb6a9c8ab3ee39473e36b218cb
+
+pkgname = python-geocoder


=====================================
PKGBUILD
=====================================
@@ -8,23 +8,23 @@ url="https://github.com/DenisCarriere/geocoder";
 license=('MIT')
 arch=('any')
 depends=('python-requests' 'python-ratelim' 'python-click' 'python-six' 
'python-future')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-requests-mock')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
+checkdepends=('python-pytest' 'python-requests-mock')
 source=("https://pypi.io/packages/source/g/geocoder/geocoder-$pkgver.tar.gz";)
 
sha512sums=('e6308b3a918fe2d61bbaa3ad0b0aa2039757a78146acb497fd98e57d4315541dd56a76b482d22823b314e8a093ab8b6759d7aadb6a9c8ab3ee39473e36b218cb')
 
 build() {
   cd geocoder-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd geocoder-$pkgver
-  python setup.py pytest || echo "Some tests require API key"
+  pytest || echo "Some tests require API key"
 }
 
 package() {
   cd geocoder-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-geocoder/-/compare/fcd235749106345cab014865d0514823c05e3b60...e52d1bf10cd61b4bf1cd900a3f270db2ff8940e0

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-geocoder/-/compare/fcd235749106345cab014865d0514823c05e3b60...e52d1bf10cd61b4bf1cd900a3f270db2ff8940e0
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to