[arch-commits] Commit in python-cattrs/repos/community-any (PKGBUILD PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Wed Jun 29 07:38:41 UTC 2022
Date: Wednesday, June 29, 2022 @ 07:38:41
Author: alerque
Revision: 1239875
archrelease: copy trunk to community-any
Added:
python-cattrs/repos/community-any/PKGBUILD
(from rev 1239874, python-cattrs/trunk/PKGBUILD)
Deleted:
python-cattrs/repos/community-any/PKGBUILD
----------+
PKGBUILD | 81 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 41 insertions(+), 40 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-29 07:38:33 UTC (rev 1239874)
+++ PKGBUILD 2022-06-29 07:38:41 UTC (rev 1239875)
@@ -1,40 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-
-_pipname=cattrs
-pkgname=python-${_pipname,,}
-pkgver=1.10.0
-pkgrel=3
-pkgdesc='Complex custom class converters for attrs'
-arch=(any)
-url="https://github.com/Tinche/$_pipname"
-license=(MIT)
-depends=(python
- python-attrs)
-makedepends=(python-setuptools)
-# PyPi source release currently missing tests
-# checkdepends=(python-pytest)
-_archive="$_pipname-$pkgver"
-source=("https://files.pythonhosted.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
-sha256sums=('211800f725cdecedcbcf4c753bbd22d248312b37d130f06045434acb7d9b34e1')
-
-# prepare() {
-# cd "$_archive"
-# # Upstream test suite uses addopts to run benchmarks, drop them
-# sed -i -e '/^addopts/d' pyproject.toml
-# }
-
-build() {
- cd "$_archive"
- python setup.py build
-}
-
-# check() {
-# cd "$_archive"
-# pytest
-# }
-
-package() {
- cd "$_archive"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
-}
Copied: python-cattrs/repos/community-any/PKGBUILD (from rev 1239874, python-cattrs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-06-29 07:38:41 UTC (rev 1239875)
@@ -0,0 +1,41 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+_pipname=cattrs
+pkgname=python-${_pipname,,}
+pkgver=22.1.0
+pkgrel=1
+pkgdesc='Complex custom class converters for attrs'
+arch=(any)
+url="https://github.com/Tinche/$_pipname"
+license=(MIT)
+depends=(python
+ python-attrs)
+makedepends=(python-{build,installer,wheel}
+ python-poetry)
+# checkdepends=(python-pytest)
+_archive="$_pipname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
+# source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('94b67b64cf92c994f8784c40c082177dc916e0489a73a9a36b24eb18a9db40c6')
+
+prepare() {
+ cd "$_archive"
+ # Upstream test suite uses addopts to run benchmarks, drop them
+ sed -i -e '/^addopts/d' pyproject.toml
+}
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+# check() {
+# cd "$_archive"
+# pytest
+# }
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
More information about the arch-commits
mailing list