Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
python-networkx


Commits:
219539a6 by Antonio Rojas at 2023-10-29T11:07:03+01:00
upgpkg: 3.2.1-1: Update to 3.2.1

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,26 @@
+pkgbase = python-networkx
+       pkgdesc = Python package for the creation, manipulation, and study of 
the structure, dynamics, and functions of complex networks.
+       pkgver = 3.2.1
+       pkgrel = 1
+       url = https://networkx.org/
+       arch = any
+       license = BSD
+       checkdepends = python-pytest-runner
+       checkdepends = python-lxml
+       checkdepends = python-pydot
+       checkdepends = python-yaml
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-wheel
+       depends = python-numpy
+       depends = python-scipy
+       depends = python-matplotlib
+       depends = python-pandas
+       optdepends = python-lxml: for GraphML XML format
+       optdepends = python-pydot: for graph drawing and graph layout 
algorithms via GraphViz
+       optdepends = python-yaml: for YAML format reading and writing
+       optdepends = python-sympy: for polynomial algorithms
+       source = 
https://github.com/networkx/networkx/archive/networkx-3.2.1.tar.gz
+       sha512sums = 
4e64352c5b2746ba5722d9ac877ca13981cf0d109df5403d8f314ed07bb6c12cd0065217a3b13daefb62f5fc74ad2bc28db2839b0d57bca8a975a9da218fadb7
+
+pkgname = python-networkx


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 # Contributor: ClĂ©ment DEMOULINS <[email protected]>
 
 pkgname=python-networkx
-pkgver=3.1
+pkgver=3.2.1
 pkgrel=1
 pkgdesc='Python package for the creation, manipulation, and study of the 
structure, dynamics, and functions of complex networks.'
 arch=('any')
@@ -14,24 +14,25 @@ optdepends=('python-lxml: for GraphML XML format'
             'python-yaml: for YAML format reading and writing'
             'python-sympy: for polynomial algorithms')
 # python-pygraphviz: for graph drawing and graph layout algorithms via GraphViz
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel')
 checkdepends=('python-pytest-runner' 'python-lxml' 'python-pydot' 
'python-yaml')
 source=("https://github.com/networkx/networkx/archive/networkx-$pkgver.tar.gz";)
-sha512sums=('f393d572e4f3b2266c4a229ae17a5e0f71f874aa21c535f365b3d81c4ba8c0537e18c663f04a1d6886e8ab5663c702b25890cdbdcac0869fc375ede36d9cea70')
+sha512sums=('4e64352c5b2746ba5722d9ac877ca13981cf0d109df5403d8f314ed07bb6c12cd0065217a3b13daefb62f5fc74ad2bc28db2839b0d57bca8a975a9da218fadb7')
 
 build() {
   cd networkx-networkx-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd networkx-networkx-$pkgver
-  python setup.py pytest
+  pytest -v
 }
 
 package() {
   cd networkx-networkx-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -D -m 644 LICENSE.txt 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-  mv "$pkgdir"/usr/share/doc/networkx-$pkgver "$pkgdir"/usr/share/doc/$pkgname
+  mkdir -p "$pkgdir"/usr/share/doc/$pkgname
+  cp -r examples "$pkgdir"/usr/share/doc/$pkgname
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-networkx/-/commit/219539a667a6408f40dd6f729b6bd5d0b90c30bd

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


Reply via email to