Date: Thursday, May 11, 2023 @ 21:14:55
Author: grawlinson
Revision: 1460010
archrelease: copy trunk to community-any
Added:
python-flake8-docstrings/repos/community-any/PKGBUILD
(from rev 1460009, python-flake8-docstrings/trunk/PKGBUILD)
Deleted:
python-flake8-docstrings/repos/community-any/PKGBUILD
----------+
PKGBUILD | 79 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 46 insertions(+), 33 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-11 21:14:18 UTC (rev 1460009)
+++ PKGBUILD 2023-05-11 21:14:55 UTC (rev 1460010)
@@ -1,33 +0,0 @@
-# Maintainer: Daniel M. Capella <[email protected]>
-# Contributor: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>
-
-_name=flake8-docstrings
-pkgname=python-flake8-docstrings
-pkgver=1.6.0
-pkgrel=4
-pkgdesc='Plugin to Flake8 to include checks provided by pydocstyle'
-arch=('any')
-url=https://gitlab.com/pycqa/flake8-docstrings
-license=('MIT')
-depends=('flake8' 'python-pydocstyle')
-makedepends=('python-build' 'python-installer' 'python-setuptools'
- 'python-wheel')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('9fe7c6a306064af8e62a055c2f61e9eb1da55f84bb39caef2b84ce53708ac34b')
-b2sums=('ee147e27f226675a2a59375b9e7812d111a34bef1bc35843096f8e7ca9cd94ac805ca49a8d83d1f6d7a78dbf6338a0a1270d668b51775a2b91ad7c3172ad41da')
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-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"/flake8_docstrings-$pkgver.dist-info/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-flake8-docstrings/repos/community-any/PKGBUILD (from rev
1460009, python-flake8-docstrings/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-11 21:14:55 UTC (rev 1460010)
@@ -0,0 +1,46 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Daniel M. Capella <[email protected]>
+# Contributor: Pieter Goetschalckx <3.14.e.ter <at> gmail <dot> com>
+
+pkgname=python-flake8-docstrings
+pkgver=1.7.0
+pkgrel=1
+pkgdesc='Plugin to flake8 to include checks provided by pydocstyle'
+arch=('any')
+url='https://github.com/pycqa/flake8-docstrings'
+license=('MIT')
+depends=('python' 'flake8' 'python-pydocstyle')
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel'
+)
+_commit='cd8a6e79f276b8b9d085776e5c2d8fc256f77e30'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ install -d "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s "$site_packages/flake8_docstrings-$pkgver.dist-info/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}