Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-traits


Commits:
6368ec0f by Jelle van der Waa at 2023-12-30T13:57:37+01:00
Switch to PEP517 build system

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,18 @@
+pkgbase = python-traits
+       pkgdesc = Explicitly typed attributes for Python
+       pkgver = 6.4.1
+       pkgrel = 3
+       url = https://github.com/enthought/traits
+       arch = x86_64
+       license = BSD
+       makedepends = python-setuptools
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
+       depends = python
+       optdepends = python-numpy: to support the trait types for arrays
+       optdepends = python-traitsui: to support Gui Views
+       source = 
traits-6.4.1.tar.gz::https://github.com/enthought/traits/archive/6.4.1.tar.gz
+       sha256sums = 
974b682d112dfb531136d1185fe8d5f05ffd9e54a76b6dcd9715de85655ee30c
+
+pkgname = python-traits


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=python-traits
 pkgver=6.4.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Explicitly typed attributes for Python"
 arch=('x86_64')
 url="https://github.com/enthought/traits";
@@ -10,20 +10,20 @@ license=('BSD')
 depends=('python')
 optdepends=('python-numpy: to support the trait types for arrays'
             'python-traitsui: to support Gui Views')
-makedepends=('python-setuptools')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 
'python-wheel')
 
source=("traits-${pkgver}.tar.gz::https://github.com/enthought/traits/archive/${pkgver}.tar.gz";)
 sha256sums=('974b682d112dfb531136d1185fe8d5f05ffd9e54a76b6dcd9715de85655ee30c')
 
 build() {
   cd traits-$pkgver
 
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
   cd traits-$pkgver
 
-  python setup.py install --root="$pkgdir"/ --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-traits/-/commit/6368ec0f8b2e777549847381e567cc878361d91f

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


Reply via email to