[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Thu Aug 13 14:45:01 UTC 2020


    Date: Thursday, August 13, 2020 @ 14:45:01
  Author: felixonmars
Revision: 677376

addpkg: python-jaraco.envs 2.0.0-1

Added:
  python-jaraco.envs/
  python-jaraco.envs/repos/
  python-jaraco.envs/trunk/
  python-jaraco.envs/trunk/PKGBUILD

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

Added: python-jaraco.envs/trunk/PKGBUILD
===================================================================
--- python-jaraco.envs/trunk/PKGBUILD	                        (rev 0)
+++ python-jaraco.envs/trunk/PKGBUILD	2020-08-13 14:45:01 UTC (rev 677376)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jaraco.envs
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="Classes for orchestrating Python (virtual) environments"
+url="https://github.com/jaraco/jaraco.envs"
+license=('MIT')
+arch=('any')
+depends=('python-path' 'python-virtualenv' 'python-tox')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-flake8')
+source=("https://github.com/jaraco/jaraco.envs/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('a834f72ae5b3e0633f1d794a28914e653807ba27a9184724a651ed8ee7d8d0541fef6d5888a47ac53f386dcd8b701d305ae68ddcf56bec5992e49272a641ea38')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  cd jaraco.envs-$pkgver
+  sed -i '/tox-venv/d' setup.cfg
+}
+
+build() {
+  cd jaraco.envs-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd jaraco.envs-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd jaraco.envs-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list