[arch-commits] Commit in python-fields/repos/community-staging-any (3 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Thu Dec 2 03:20:30 UTC 2021
Date: Thursday, December 2, 2021 @ 03:20:30
Author: foutrelis
Revision: 1061566
archrelease: copy trunk to community-staging-any
Added:
python-fields/repos/community-staging-any/PKGBUILD
(from rev 1061565, python-fields/trunk/PKGBUILD)
python-fields/repos/community-staging-any/python310.patch
(from rev 1061565, python-fields/trunk/python310.patch)
Deleted:
python-fields/repos/community-staging-any/PKGBUILD
-----------------+
PKGBUILD | 74 ++++++++++++++++++++++++++++--------------------------
python310.patch | 12 ++++++++
2 files changed, 51 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 03:20:25 UTC (rev 1061565)
+++ PKGBUILD 2021-12-02 03:20:30 UTC (rev 1061566)
@@ -1,35 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-fields
-pkgname=python-fields
-pkgver=5.0.0
-pkgrel=12
-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")
-sha512sums=('feaba23b98271936d6dae20b1001978483c0fe89ccf217637fac536ae5814c2c02bac1c3ddc2a86dc0d2419a3b3658871018c0ea4b7905e1c2649aa905b8e5a3')
-
-prepare() {
- sed -i 's/\[pytest\]/[tool:pytest]/;s/--benchmark-disable//' python-fields-$pkgver/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/PKGBUILD (from rev 1061565, python-fields/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-02 03:20:30 UTC (rev 1061566)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-fields
+pkgname=python-fields
+pkgver=5.0.0
+pkgrel=13
+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 1061565, python-fields/trunk/python310.patch)
===================================================================
--- python310.patch (rev 0)
+++ python310.patch 2021-12-02 03:20:30 UTC (rev 1061566)
@@ -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.
+
More information about the arch-commits
mailing list