[arch-commits] Commit in python-setuptools-scm/repos/community-any (PKGBUILD PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sun Aug 14 05:02:40 UTC 2022
Date: Sunday, August 14, 2022 @ 05:02:39
Author: polyzen
Revision: 1266020
archrelease: copy trunk to community-any
Added:
python-setuptools-scm/repos/community-any/PKGBUILD
(from rev 1266019, python-setuptools-scm/trunk/PKGBUILD)
Deleted:
python-setuptools-scm/repos/community-any/PKGBUILD
----------+
PKGBUILD | 90 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 47 insertions(+), 43 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-14 01:57:33 UTC (rev 1266019)
+++ PKGBUILD 2022-08-14 05:02:39 UTC (rev 1266020)
@@ -1,43 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
-
-_name=setuptools_scm
-pkgname=python-setuptools-scm
-pkgver=7.0.4
-pkgrel=1
-pkgdesc="Handles managing your python package versions in scm metadata"
-arch=('any')
-url="https://github.com/pypa/setuptools_scm"
-license=('MIT')
-depends=('python-packaging' 'python-setuptools' 'python-tomli'
- 'python-typing_extensions')
-makedepends=('python-build' 'python-installer' 'python-wheel')
-checkdepends=('git' 'mercurial' 'python-pip' 'python-pytest'
- 'python-virtualenv')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('c27bc1f48593cfc9527251f1f0fc41ce282ea57bbc7fd5a1ea3acb99325fab4c')
-b2sums=('07acfccdbeb0c7f6a6773ff93fa10c35aa8cc2451ede42cce269e2278606fed4acd17e8fda8294ac84b596e776a5ba02ae5ef1203dff42738291798e624cd991')
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
- cd $_name-$pkgver
- python -m venv --system-site-packages test-env
- test-env/bin/python -m installer dist/*.whl
- PYTHONPATH="$PWD/test-env/$site_packages" test-env/bin/python -m pytest
-}
-
-package() {
- cd $_name-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- # Symlink license file
- local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
- install -d "$pkgdir"/usr/share/licenses/$pkgname
- ln -s "$site_packages"/setuptools_scm-$pkgver.dist-info/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-setuptools-scm/repos/community-any/PKGBUILD (from rev 1266019, python-setuptools-scm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-14 05:02:39 UTC (rev 1266020)
@@ -0,0 +1,47 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+
+_name=setuptools_scm
+pkgname=python-setuptools-scm
+pkgver=7.0.5
+pkgrel=1
+pkgdesc="Handles managing your python package versions in scm metadata"
+arch=('any')
+url="https://github.com/pypa/setuptools_scm"
+license=('MIT')
+depends=('python-packaging' 'python-setuptools' 'python-tomli'
+ 'python-typing_extensions')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+checkdepends=('git' 'mercurial' 'python-pip' 'python-pytest'
+ 'python-virtualenv')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
+ "https://raw.githubusercontent.com/pypa/setuptools_scm/v$pkgver/.git_archival.txt")
+sha256sums=('031e13af771d6f892b941adb6ea04545bbf91ebc5ce68c78aaf3fff6e1fb4844'
+ 'f145442cd29a4a4869c54d82f2e29e3db2e09e65140c6aeb735ef3f7c3077a4e')
+b2sums=('242809a32cd23d9d98e3326714d1435220907eacdb3127558987d0d8be95775b7f8ed284707421a9c52e401c1738c11a01782fee2c0635924122307d3308cc0c'
+ '204c07543d1c2a552aa2de95549fdef96307f4e8abef274b10685769704606209d52662946ba5883abf09c59ae7dae311936ed852a99e72d41c09f566d8d3ab4')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ ln ../.git_archival.txt test-env/lib/python3.10/site-packages/setuptools_scm
+ PYTHONPATH="$PWD/test-env/$site_packages" test-env/bin/python -m pytest
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/setuptools_scm-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list