[arch-commits] Commit in python-python-socks/repos/community-any (PKGBUILD PKGBUILD)
Jonas Witschel
diabonas at gemini.archlinux.org
Tue Apr 5 13:21:05 UTC 2022
Date: Tuesday, April 5, 2022 @ 13:21:05
Author: diabonas
Revision: 1181436
archrelease: copy trunk to community-any
Added:
python-python-socks/repos/community-any/PKGBUILD
(from rev 1181435, python-python-socks/trunk/PKGBUILD)
Deleted:
python-python-socks/repos/community-any/PKGBUILD
----------+
PKGBUILD | 83 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 42 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-05 13:20:49 UTC (rev 1181435)
+++ PKGBUILD 2022-04-05 13:21:05 UTC (rev 1181436)
@@ -1,41 +0,0 @@
-# Maintainer: Jonas Witschel <diabonas at archlinux.org>
-pkgname=python-python-socks
-pkgver=2.0.3
-_tag=55f744af9066682165c354897055508eb4c19877 # git rev-parse "v$pkgver"
-pkgrel=1
-pkgdesc='Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python'
-arch=('any')
-url='https://github.com/romis2012/python-socks'
-license=('APACHE')
-depends=('python')
-makedepends=('git' 'python-setuptools')
-checkdepends=('python-async-timeout' 'python-curio' 'python-flask' 'python-pytest'
- 'python-pytest-asyncio' 'python-pytest-trio' 'python-trio' 'python-yarl')
-optdepends=('python-async-timeout: asyncio support'
- 'python-curio: curio support'
- 'python-trio: trio support')
-provides=('python-python_socks')
-replaces=('python-python_socks')
-source=("git+$url.git?signed#tag=$_tag")
-sha512sums=('SKIP')
-validpgpkeys=('706A8935FED55F3BFB7C188B5EEAD7400A5D80ED') # Roman Snegirev <rsng at mail.ru>
-
-pkgver() {
- cd "${pkgname#python-}"
- git describe | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
-}
-
-build() {
- cd "${pkgname#python-}"
- python setup.py build
-}
-
-check() {
- cd "${pkgname#python-}"
- pytest
-}
-
-package() {
- cd "${pkgname#python-}"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
Copied: python-python-socks/repos/community-any/PKGBUILD (from rev 1181435, python-python-socks/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-05 13:21:05 UTC (rev 1181436)
@@ -0,0 +1,42 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-python-socks
+pkgver=2.0.3
+_tag=55f744af9066682165c354897055508eb4c19877 # git rev-parse "v$pkgver"
+pkgrel=2
+pkgdesc='Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python'
+arch=('any')
+url='https://github.com/romis2012/python-socks'
+license=('APACHE')
+depends=('python')
+makedepends=('git' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-anyio' 'python-async-timeout' 'python-curio' 'python-flask' 'python-pytest'
+ 'python-pytest-asyncio' 'python-pytest-trio' 'python-trio' 'python-yarl')
+optdepends=('python-anyio: anyio support'
+ 'python-async-timeout: asyncio support'
+ 'python-curio: curio support'
+ 'python-trio: trio support')
+provides=('python-python_socks')
+replaces=('python-python_socks')
+source=("git+$url.git?signed#tag=$_tag")
+sha512sums=('SKIP')
+validpgpkeys=('706A8935FED55F3BFB7C188B5EEAD7400A5D80ED') # Roman Snegirev <rsng at mail.ru>
+
+pkgver() {
+ cd "${pkgname#python-}"
+ git describe | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${pkgname#python-}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "${pkgname#python-}"
+ pytest
+}
+
+package() {
+ cd "${pkgname#python-}"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}
More information about the arch-commits
mailing list