Date: Thursday, April 6, 2023 @ 03:01:50
  Author: felixonmars
Revision: 1438186

archrelease: copy trunk to community-staging-any

Added:
  python-docker/repos/community-staging-any/
  python-docker/repos/community-staging-any/PKGBUILD
    (from rev 1438184, python-docker/trunk/PKGBUILD)

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

Copied: python-docker/repos/community-staging-any/PKGBUILD (from rev 1438184, 
python-docker/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 03:01:50 UTC (rev 1438186)
@@ -0,0 +1,44 @@
+# Maintainer: Andrew Crerar <[email protected]>
+# Maintainer: Morten Linderud <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Hideaki Takahashi <[email protected]>
+# Contributor: Vincent Demeester <[email protected]>
+# Contributor: Josh VanderLinden <[email protected]>
+
+pkgname=python-docker
+pkgver=6.0.1
+pkgrel=4
+pkgdesc="A Python library for the Docker Engine API"
+arch=('any')
+url="https://github.com/docker/docker-py";
+license=("Apache")
+depends=('python-packaging' 'python-requests' 'python-urllib3' 
'python-websocket-client')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-setuptools-scm' 'python-wheel')
+checkdepends=('flake8' 'python-coverage' 'python-paramiko' 'python-pytest'
+'python-pytest-cov' 'python-pytest-timeout')
+optdepends=('python-paramiko: for connections using the SSH protocol')
+provides=('python-docker-py')
+conflicts=('python-docker-py')
+replaces=('python-docker-py')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/docker/docker-py/archive/$pkgver.tar.gz";)
+sha512sums=('86d15c612ce8aeab44559eee476d11f80b41f18c52a77029c5d4ce465ce9ea8bcad0f057c68964318d0d542601e9b5cbdd1297e9c4de0c437bb09d680d8bc8cb')
+
+prepare() {
+  sed -i 's/==.*$//' docker-py-"$pkgver"/{,test-}requirements.txt
+}
+
+build() {
+  cd docker-py-"$pkgver"
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd docker-py-"$pkgver"
+  py.test --cov=docker tests/unit
+}
+
+package() {
+  cd docker-py-"$pkgver"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+}

Reply via email to