Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages / 
python-graphql-core


Commits:
f65ca68d by Maxime Gauduin at 2023-12-27T11:26:42+01:00
drop setup.py

- - - - -


2 changed files:

- + .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,21 @@
+pkgbase = python-graphql-core
+       pkgdesc = GraphQL base implementation for Python
+       pkgver = 3.2.3
+       pkgrel = 3
+       url = https://github.com/graphql-python/graphql-core
+       arch = any
+       license = MIT
+       makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-poetry-core
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python-six
+       depends = python-promise
+       depends = python-rx
+       depends = python-typing_extensions
+       source = 
git+https://github.com/graphql-python/graphql-core.git#tag=430ee891a52d239adadf133d873fdca2a3fe009b
+       sha256sums = SKIP
+
+pkgname = python-graphql-core


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=python-graphql-core
 pkgver=3.2.3
-pkgrel=2
+pkgrel=3
 pkgdesc='GraphQL base implementation for Python'
 url=https://github.com/graphql-python/graphql-core
 arch=(any)
@@ -11,10 +11,15 @@ depends=(
   python-six
   python-promise
   python-rx
+  python-typing_extensions
 )
 makedepends=(
   git
+  python-build
+  python-installer
+  python-poetry-core
   python-setuptools
+  python-wheel
 )
 _tag=430ee891a52d239adadf133d873fdca2a3fe009b
 source=(git+https://github.com/graphql-python/graphql-core.git#tag=${_tag})
@@ -22,21 +27,17 @@ sha256sums=(SKIP)
 
 pkgver() {
   cd graphql-core
-
   git describe --tags | sed 's/^v//'
 }
 
 build() {
   cd graphql-core
-
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package() {
-  cd graphql-core
-
-  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
-  install -Dm 644 LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-graphql-core/
+  python -m installer --destdir="${pkgdir}" graphql-core/dist/*.whl
+  install -Dm 644 graphql-core/LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-graphql-core/
 }
 
 # vim: ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-graphql-core/-/commit/f65ca68dd5d9195f59e6f51673baea43ad8d58cb

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


Reply via email to