From 7e6c4c26fa4b95fe165a24c022a01c9fc05e73bc Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Tue, 11 Jan 2022 21:36:39 +0000 Subject: user/py3-*: bunch of new py3 packages and updates. fixes #458, #459. --- user/py3-iniconfig/APKBUILD | 32 ++++++++++++++++++++++++++++++++ user/py3-iniconfig/version.patch | 23 +++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 user/py3-iniconfig/APKBUILD create mode 100644 user/py3-iniconfig/version.patch (limited to 'user/py3-iniconfig') 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 +# Maintainer: Zach van Rijn +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" +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'], -- cgit v1.2.3-70-g09d2