Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages /
python-trio-asyncio
Commits:
542125a5 by Maxime Gauduin at 2023-12-27T13:40:15+01:00
drop setup.py
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,16 +1,21 @@
pkgbase = python-trio-asyncio
pkgdesc = A re-implementation of the asyncio mainloop on top of Trio
pkgver = 0.13.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/python-trio/trio-asyncio
arch = any
license = APACHE
license = MIT
makedepends = git
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
+ makedepends = python-wheel
depends = python
- depends = python-async_generator
+ depends = python-attrs
+ depends = python-exceptiongroup
depends = python-outcome
+ depends = python-sniffio
depends = python-trio
source =
git+https://github.com/python-trio/trio-asyncio.git#tag=b3b9ddef2ebc29e4cdbf869d792da91dbd46a2af
sha256sums = SKIP
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=python-trio-asyncio
pkgver=0.13.0
-pkgrel=2
+pkgrel=3
pkgdesc='A re-implementation of the asyncio mainloop on top of Trio'
arch=(any)
url=https://github.com/python-trio/trio-asyncio
@@ -12,13 +12,18 @@ license=(
)
depends=(
python
- python-async_generator
+ python-attrs
+ python-exceptiongroup
python-outcome
+ python-sniffio
python-trio
)
makedepends=(
git
+ python-build
+ python-installer
python-setuptools
+ python-wheel
)
_tag=b3b9ddef2ebc29e4cdbf869d792da91dbd46a2af
source=(git+https://github.com/python-trio/trio-asyncio.git#tag=${_tag})
@@ -35,16 +40,15 @@ pkgver() {
build() {
cd trio-asyncio
- python setup.py build
+ python -m build --wheel --no-isolation
}
package() {
- cd trio-asyncio
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ python -m installer --destdir="${pkgdir}" trio-asyncio/dist/*.whl
local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
rm -rf "${pkgdir}"${site_packages}/tests
- install -Dm 644 LICENSE -t
"${pkgdir}"/usr/share/licenses/python-trio-asyncio/
- install -Dm 644 LICENSE.MIT -t
"${pkgdir}"/usr/share/licenses/python-trio-asyncio/
+ install -Dm 644 trio-asyncio/LICENSE -t
"${pkgdir}"/usr/share/licenses/python-trio-asyncio/
+ install -Dm 644 trio-asyncio/LICENSE.MIT -t
"${pkgdir}"/usr/share/licenses/python-trio-asyncio/
}
# vim: ts=2 sw=2 et:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-trio-asyncio/-/commit/542125a54e48476d9a04a3d3cdc1abb39e1f3613
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-trio-asyncio/-/commit/542125a54e48476d9a04a3d3cdc1abb39e1f3613
You're receiving this email because of your account on gitlab.archlinux.org.