Date: Sunday, April 9, 2023 @ 04:08:57
  Author: felixonmars
Revision: 1443090

archrelease: copy trunk to community-staging-any

Added:
  python-python-socks/repos/community-staging-any/
  python-python-socks/repos/community-staging-any/PKGBUILD
    (from rev 1443088, python-python-socks/trunk/PKGBUILD)
  python-python-socks/repos/community-staging-any/keys/

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: python-python-socks/repos/community-staging-any/PKGBUILD (from rev 
1443088, python-python-socks/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-09 04:08:57 UTC (rev 1443090)
@@ -0,0 +1,42 @@
+# Maintainer: Jonas Witschel <diabo...@archlinux.org>
+pkgname=python-python-socks
+pkgver=2.0.3
+_tag=55f744af9066682165c354897055508eb4c19877 # git rev-parse "v$pkgver"
+pkgrel=3
+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-setuptools' 
'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 
<r...@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
+}

Reply via email to