[arch-commits] Commit in python-pipenv-to-requirements/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 20:48:25 UTC 2020


    Date: Monday, November 9, 2020 @ 20:48:25
  Author: felixonmars
Revision: 748236

archrelease: copy trunk to community-staging-any

Added:
  python-pipenv-to-requirements/repos/community-staging-any/
  python-pipenv-to-requirements/repos/community-staging-any/PKGBUILD
    (from rev 748234, python-pipenv-to-requirements/trunk/PKGBUILD)

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

Copied: python-pipenv-to-requirements/repos/community-staging-any/PKGBUILD (from rev 748234, python-pipenv-to-requirements/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 20:48:25 UTC (rev 748236)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pipenv-to-requirements
+pkgver=0.9.0
+pkgrel=2
+pkgdesc="Generate requirements[-dev].txt from Pipfile using pipenv"
+url="https://github.com/gsemet/pipenv-to-requirements"
+license=('MIT')
+arch=('any')
+depends=('python-pbr' 'python-pipenv')
+checkdepends=('python-pyfakefs' 'python-pytest-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gsemet/pipenv-to-requirements/archive/$pkgver.tar.gz")
+sha512sums=('f89be89e120cc3d9a543c8efc1ff4c517f3d47145133a7db2f842dcbf168099588a2d281b7fb69b6ddf63439fbdebafd683b258a349cc7ad50efd454495caf14')
+
+export PBR_VERSION=$pkgver
+
+build() {
+  cd pipenv-to-requirements-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pipenv-to-requirements-$pkgver
+  pytest
+}
+
+package() {
+  cd pipenv-to-requirements-$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