summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoratomlong2021-11-12 21:59:21 +0800
committeratomlong2021-11-12 21:59:21 +0800
commit9823e68da2b4dd73dfbd081997c1c494da85699f (patch)
tree04bc268cd7646e6410db05c5f4471989be274d73
downloadaur-9823e68da2b4dd73dfbd081997c1c494da85699f.tar.gz
Initial commit.
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD33
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..ceb02b30eba2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-envs
+ pkgdesc = Easy access of environment variables from Python.
+ pkgver = 1.3
+ pkgrel = 1
+ url = https://pypi.org/project/envs
+ arch = any
+ license = Apache
+ checkdepends = python-pytest
+ checkdepends = python-pytest-runner
+ checkdepends = python-pytest-mock
+ checkdepends = python-pytest-timeout
+ makedepends = python-setuptools
+ makedepends = git
+ depends = python-click
+ depends = python-jinja
+ depends = python-terminaltables
+ source = envs::git+https://github.com/capless/envs.git#tag=3bfd12ee46c4da92d0cdf68a183531ffdeb5ea73
+ sha256sums = SKIP
+
+pkgname = python-envs
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..8f23f3887b25
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Atom Long <atom.long@hotmail.com>
+
+_pkgname=envs
+pkgname=python-envs
+pkgver=1.3
+pkgrel=1
+pkgdesc='Easy access of environment variables from Python.'
+url='https://pypi.org/project/envs'
+arch=('any')
+license=('Apache')
+depends=('python-click' 'python-jinja' 'python-terminaltables')
+makedepends=('python-setuptools' 'git')
+checkdepends=('python-pytest' 'python-pytest-runner' 'python-pytest-mock' 'python-pytest-timeout')
+_tag=3bfd12ee46c4da92d0cdf68a183531ffdeb5ea73
+source=(${_pkgname}::"git+https://github.com/capless/envs.git#tag=${_tag}")
+sha256sums=('SKIP')
+
+build() {
+ cd ${_pkgname}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkgname}
+ python setup.py test
+}
+
+package() {
+ cd ${_pkgname}
+ python setup.py install --root="${pkgdir}" -O1 --skip-build
+}
+
+# vim: ts=2 sw=2 et: