Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
python-setuptools-rust


Commits:
f2046c47 by Felix Yan at 2023-09-03T20:14:44+03:00
upgpkg: 1.7.0-1

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -4,37 +4,38 @@
 # Contributor: Clayton Craft <clayton at craftyguy dot net>
 
 pkgname=python-setuptools-rust
-pkgver=1.6.0
+pkgver=1.7.0
+_commit=6a27c47174017ad29385f8431888d2a65766e7d4
 pkgrel=1
 pkgdesc="Compile and distribute Python extensions written in rust as easily as 
if they were written in C."
 arch=('any')
 license=('MIT')
 url="https://github.com/PyO3/setuptools-rust";
 depends=('rust' 'python-setuptools' 'python-semantic-version' 
'python-typing-extensions')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 
'python-setuptools-scm')
 checkdepends=('python-pytest' 'python-pytest-benchmark' 
'python-beautifulsoup4' 'python-lxml' 'python-cffi')
-source=("https://github.com/PyO3/setuptools-rust/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('93945d06e8cb38c5764fa8ec12b039111b3ee677dfe66350a4f554f1c1622885a0dcef34a1b429172859bca1081df8b82c05ce81b6714c6d43cfa073ade75785')
+source=("git+https://github.com/PyO3/setuptools-rust.git#commit=$_commit";)
+sha512sums=('SKIP')
 
 build() {
-  cd setuptools-rust-$pkgver
-  python setup.py build
+  cd setuptools-rust
+  python -m build -nw
 }
 
 check() {
-  cd setuptools-rust-$pkgver
-  python setup.py egg_info
+  cd setuptools-rust
   for _dir in examples/*; do
     pushd $_dir
-    PYTHONPATH="$PWD/../.." python setup.py build
-    [[ -d tests || -d test ]] && 
PYTHONPATH="$PWD/build/lib:build/lib.linux-$CARCH-cpython-311" pytest
+    PYTHONPATH="$PWD/../.." python -m build -nw
+    python -m installer -d tmp_install dist/*.whl
+    [[ -d tests || -d test ]] && 
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.11/site-packages" pytest tests
     popd
   done
   pytest --doctest-modules setuptools_rust
 }
 
 package() {
-  cd setuptools-rust-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
+  cd setuptools-rust
+  python -m installer -d "$pkgdir" dist/*.whl
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-setuptools-rust/-/commit/f2046c47ea7fa164b1caf61d0d7d34198f3cc650

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-setuptools-rust/-/commit/f2046c47ea7fa164b1caf61d0d7d34198f3cc650
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to