diff options
Diffstat (limited to 'user/py3-iniconfig')
-rw-r--r-- | user/py3-iniconfig/APKBUILD | 32 | ||||
-rw-r--r-- | user/py3-iniconfig/version.patch | 23 |
2 files changed, 55 insertions, 0 deletions
diff --git a/user/py3-iniconfig/APKBUILD b/user/py3-iniconfig/APKBUILD new file mode 100644 index 000000000..773284ec6 --- /dev/null +++ b/user/py3-iniconfig/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Justin Berthault <justin.berthault@zaclys.net> +# Maintainer: Zach van Rijn <me@zv.io> +pkgname=py3-iniconfig +_pyname=iniconfig +pkgver=1.1.1 +pkgrel=0 +pkgdesc="Simple INI configuration parsing for Python" +url="https://github.com/RonnyPfannschmidt/iniconfig" +arch="noarch" +options="!check" # Requires PyTest, which requires iniconfig. +license="MIT" +depends="python3" +makedepends="py3-py" +source="https://files.pythonhosted.org/packages/source/i/$_pyname/$_pyname-$pkgver.tar.gz + version.patch + " +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py test +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="c9341db7e3ec2204b6a674fca7824cbeb492e3576d5ac3f084b234c82842b28f2f6acbfdb812e183f4334a95b990551f942a4caf548f5ce7ef14885f931535ee iniconfig-1.1.1.tar.gz +bcc29e3ab250a8b9aaa496b2bb8f52a03f56faf8a73268c388959ee1090cd5fc86f11b5c6c339f1b9b9c9697984f3a956425b9d392507b69ec0e4aa543e97a92 version.patch" diff --git a/user/py3-iniconfig/version.patch b/user/py3-iniconfig/version.patch new file mode 100644 index 000000000..33bf819cf --- /dev/null +++ b/user/py3-iniconfig/version.patch @@ -0,0 +1,23 @@ +From: "A. Wilcox" <AWilcox@Wilcox-Tech.com> +Date: Sun, 12 Jun 2022 22:48:18 -0500 +Subject: [PATCH] Use correct version when packaging + +Using scm_version installs an egg of version 0.0.0 (or whatever the +containing Git repository describes as). We want to have the actual +version available when building packages. + +--- iniconfig-1.1.1/setup.py.old 2020-10-14 05:19:54.000000000 -0500 ++++ iniconfig-1.1.1/setup.py 2022-06-12 22:52:45.840000000 -0500 +@@ -14,11 +14,11 @@ + readme = fp.read() + setup( + name='iniconfig', ++ version='1.1.1', + packages=['iniconfig'], + package_dir={'': 'src'}, + description='iniconfig: brain-dead simple config-ini parsing', + long_description=readme, +- use_scm_version=True, + url='http://github.com/RonnyPfannschmidt/iniconfig', + license='MIT License', + platforms=['unix', 'linux', 'osx', 'cygwin', 'win32'], |