[arch-commits] Commit in python-jaraco.envs/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Aug 13 14:45:10 UTC 2020
Date: Thursday, August 13, 2020 @ 14:45:10
Author: felixonmars
Revision: 677377
archrelease: copy trunk to community-any
Added:
python-jaraco.envs/repos/community-any/
python-jaraco.envs/repos/community-any/PKGBUILD
(from rev 677376, python-jaraco.envs/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-jaraco.envs/repos/community-any/PKGBUILD (from rev 677376, python-jaraco.envs/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-08-13 14:45:10 UTC (rev 677377)
@@ -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