summaryrefslogtreecommitdiff
path: root/user/py3-configargparse
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2018-12-29 21:59:07 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2018-12-29 21:59:07 +0000
commit1d5bbfe40b832dccae70c9c3570e4e165f15d8ad (patch)
treeed952e2b60755e98a21270db253e7e0af6642510 /user/py3-configargparse
parentc999dc9826ec3ac419865778b19f4ba2e710a50f (diff)
parente4a73a3d14a57d6ba40fccb850ee3b27a4e9f962 (diff)
downloadpackages-1d5bbfe40b832dccae70c9c3570e4e165f15d8ad.tar.gz
packages-1d5bbfe40b832dccae70c9c3570e4e165f15d8ad.tar.bz2
packages-1d5bbfe40b832dccae70c9c3570e4e165f15d8ad.tar.xz
packages-1d5bbfe40b832dccae70c9c3570e4e165f15d8ad.zip
Merge branch 'add-certbot' into 'master'
Add certbot and dependencies This branch brings Certbot support to Adélie Linux. Tests were supported in packages where it was reasonable, avoiding long dependency chains (AKA rabbit holes). Some highlights: * Effort was made to ensure everything worked with Python 3; * Python 2.x-only libraries were worked around or removed from dependencies where possible; * Packages were made to defer to system files (such as zoneinfo and ca-cert files) where possible; * Packages were added in dependency-stack order; all dependencies for a package should've been added before the higher level package. There are a lot of packages here, so there may be some edge cases that the runtime testing of certbot did not catch. I was able to successfully receive a brand new wildcard + bare domain (SAN) Let's Encrypt certificate and serve a website over the network to a machine running Firefox 63.0.1. **EDIT 2018-11-28:** I've gone through each APKBUILD and addressed the common pitfalls I noticed in addition to the comments already issued. Packages were version-bumped where possible. See merge request !113
Diffstat (limited to 'user/py3-configargparse')
-rw-r--r--user/py3-configargparse/APKBUILD37
-rw-r--r--user/py3-configargparse/python3.patch11
2 files changed, 48 insertions, 0 deletions
diff --git a/user/py3-configargparse/APKBUILD b/user/py3-configargparse/APKBUILD
new file mode 100644
index 000000000..2cb311647
--- /dev/null
+++ b/user/py3-configargparse/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: zlg <zlg+adelie@zlg.space>
+pkgname=py3-configargparse
+_pkgname=ConfigArgParse
+pkgver=0.13.0
+pkgrel=0
+pkgdesc="A drop-in replacement for argparse"
+url="https://github.com/bw2/ConfigArgParse"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="python3-dev python3-tests"
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/bw2/$_pkgname/archive/$pkgver.tar.gz
+ python3.patch"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python3 setup.py test
+}
+
+package() {
+ mkdir -p "$pkgdir"
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="797c5edbc51353797204152b5c908ddb4e883a98f247430448d774957fd841286ea1a3cb87db3186e683a65f566cfce0a815e4bd558b9c823d9226d856341ca9 py3-configargparse-0.13.0.tar.gz
+df324cbc12d0d5cf3cf8bfe494e358d366d8a7891183e9a7922d5331f86e30cbe5810b709ad93dfd41f33cd08c1d87371b9aa13c92d7637d4459d83db41be33f python3.patch"
diff --git a/user/py3-configargparse/python3.patch b/user/py3-configargparse/python3.patch
new file mode 100644
index 000000000..b102e166f
--- /dev/null
+++ b/user/py3-configargparse/python3.patch
@@ -0,0 +1,11 @@
+--- a/setup.py 2018-02-04 10:00:01.000000000 -0800
++++ b/setup.py 2018-11-20 21:08:21.339299614 -0800
+@@ -78,7 +78,7 @@
+ 'ordereddict',
+ ])
+ tests_require.extend([
+- 'unittest2',
++ 'unittest',
+ ])
+
+