Date: Sunday, March 26, 2023 @ 15:26:18
Author: arojas
Revision: 1429269
archrelease: copy trunk to community-any
Added:
python-pydocstyle/repos/community-any/PKGBUILD
(from rev 1429268, python-pydocstyle/trunk/PKGBUILD)
Deleted:
python-pydocstyle/repos/community-any/PKGBUILD
----------+
PKGBUILD | 68 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 37 insertions(+), 31 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-26 15:26:09 UTC (rev 1429268)
+++ PKGBUILD 2023-03-26 15:26:18 UTC (rev 1429269)
@@ -1,31 +0,0 @@
-# Maintainer: Morten Linderud <[email protected]>
-
-pkgname=python-pydocstyle
-pkgver=6.3.0
-pkgrel=1
-pkgdesc="Docstring style checker"
-arch=("any")
-url="http://www.pydocstyle.org/"
-license=("MIT")
-depends=("python-snowballstemmer")
-makedepends=("python-build" "python-installer" "python-poetry-core")
-checkdepends=("python-pytest" "python-pytest-runner" "python-pip"
"python-snowballstemmer")
-source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pydocstyle/archive/${pkgver}.tar.gz")
-sha256sums=('29ed0e8b1abe5f4590132f456b6f9cbf0866b89fabf836bc9474fde706e2e13e')
-
-build() {
- cd "pydocstyle-${pkgver}"
- python -m build --wheel --no-isolation
-}
-
-check() {
- cd "pydocstyle-${pkgver}"
- PYTHONPATH="$PWD"/src \
- pytest -k 'not test_integration'
-}
-
-package() {
- cd "pydocstyle-${pkgver}"
- python -m installer --destdir="${pkgdir}/" dist/*.whl
- install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
Copied: python-pydocstyle/repos/community-any/PKGBUILD (from rev 1429268,
python-pydocstyle/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-03-26 15:26:18 UTC (rev 1429269)
@@ -0,0 +1,37 @@
+# Maintainer: Morten Linderud <[email protected]>
+
+pkgname=python-pydocstyle
+pkgver=6.3.0
+pkgrel=2
+pkgdesc="Docstring style checker"
+arch=("any")
+url="http://www.pydocstyle.org/"
+license=("MIT")
+depends=("python-snowballstemmer")
+makedepends=("python-build" "python-installer" "python-poetry-core")
+checkdepends=("python-pytest" "python-pytest-runner" "python-pip"
"python-snowballstemmer")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pydocstyle/archive/${pkgver}.tar.gz")
+sha256sums=('29ed0e8b1abe5f4590132f456b6f9cbf0866b89fabf836bc9474fde706e2e13e')
+
+prepare() {
+ cd "pydocstyle-${pkgver}"
+ # Fix version number in metadata
+ sed -e "s|^version = .*|version = \"$pkgver\"|" -i pyproject.toml
+}
+
+build() {
+ cd "pydocstyle-${pkgver}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "pydocstyle-${pkgver}"
+ PYTHONPATH="$PWD"/src \
+ pytest -k 'not test_integration'
+}
+
+package() {
+ cd "pydocstyle-${pkgver}"
+ python -m installer --destdir="${pkgdir}/" dist/*.whl
+ install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}