Date: Thursday, April 6, 2023 @ 01:48:35
Author: felixonmars
Revision: 1438028
archrelease: copy trunk to community-staging-any
Added:
python-fields/repos/community-staging-any/
python-fields/repos/community-staging-any/PKGBUILD
(from rev 1438026, python-fields/trunk/PKGBUILD)
python-fields/repos/community-staging-any/python310.patch
(from rev 1438026, python-fields/trunk/python310.patch)
-----------------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
python310.patch | 12 ++++++++++++
2 files changed, 51 insertions(+)
Copied: python-fields/repos/community-staging-any/PKGBUILD (from rev 1438026,
python-fields/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 01:48:35 UTC (rev 1438028)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgbase=python-fields
+pkgname=python-fields
+pkgver=5.0.0
+pkgrel=14
+arch=('any')
+pkgdesc='A totally different take on container boilerplate'
+url='https://github.com/ionelmc/python-fields'
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-attrs' 'python-characteristic')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/ionelmc/python-fields/archive/v$pkgver.tar.gz"
+ python310.patch)
+sha512sums=('feaba23b98271936d6dae20b1001978483c0fe89ccf217637fac536ae5814c2c02bac1c3ddc2a86dc0d2419a3b3658871018c0ea4b7905e1c2649aa905b8e5a3'
+
'72876eba870204558d4f1a8216be5e2240406e669929605919b1adeb03a9cf230909d7658c26197189e61bd4005bcb00665c652bff6f14a97cdff881e6b45f80')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../python310.patch
+ sed -i 's/\[pytest\]/[tool:pytest]/;s/--benchmark-disable//' setup.cfg
+}
+
+build() {
+ cd "$srcdir"/python-fields-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-fields-$pkgver
+ python -m pytest --deselect tests/test_perf.py
+}
+
+package_python-fields() {
+ cd python-fields-$pkgver
+ python setup.py install --root "$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: python-fields/repos/community-staging-any/python310.patch (from rev
1438026, python-fields/trunk/python310.patch)
===================================================================
--- community-staging-any/python310.patch (rev 0)
+++ community-staging-any/python310.patch 2023-04-06 01:48:35 UTC (rev
1438028)
@@ -0,0 +1,12 @@
+diff -upr python-fields-5.0.0.orig/README.rst python-fields-5.0.0/README.rst
+--- python-fields-5.0.0.orig/README.rst 2016-04-13 23:51:23.000000000
+0300
++++ python-fields-5.0.0/README.rst 2021-12-02 05:18:29.428981402 +0200
+@@ -292,7 +292,7 @@ Ugly, inconsistent - you don't own the c
+ >>> MyContainer(field1=1, field2=2)
+ Traceback (most recent call last):
+ ...
+- TypeError: __init__() ... arguments...
++ TypeError: ...__init__() ... arguments...
+
+ This is bananas. You have to write your class *around* these quirks.
+