Date: Friday, November 4, 2022 @ 22:58:32
Author: felixonmars
Revision: 1341885
archrelease: copy trunk to community-any
Added:
python-sphinxcontrib-towncrier/repos/community-any/PKGBUILD
(from rev 1341884, python-sphinxcontrib-towncrier/trunk/PKGBUILD)
Deleted:
python-sphinxcontrib-towncrier/repos/community-any/PKGBUILD
----------+
PKGBUILD | 73 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 36 insertions(+), 37 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-11-04 22:58:23 UTC (rev 1341884)
+++ PKGBUILD 2022-11-04 22:58:32 UTC (rev 1341885)
@@ -1,37 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-sphinxcontrib-towncrier
-pkgver=0.3.1a0
-pkgrel=1
-pkgdesc="An RST directive for injecting a Towncrier-generated changelog draft
containing fragments for the unreleased (next) project version"
-url="https://github.com/sphinx-contrib/sphinxcontrib-towncrier"
-license=('BSD')
-arch=('any')
-depends=('python-sphinx' 'towncrier')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-xdist')
-source=("https://github.com/sphinx-contrib/sphinxcontrib-towncrier/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('4aad34852b3d8b4bcb3603aeefce4fdb1b908baab358031639430c3c63fc3728817bfa8d5b71b79e6df79efc1a75ebde62089c3eed4956869d16133ce6657ad7')
-
-prepare() {
- cd sphinxcontrib-towncrier-$pkgver
- sed -i '/pytest_cov/d;/--cov/d' pytest.ini
-}
-
-build() {
- cd sphinxcontrib-towncrier-$pkgver
- python setup.py build
-}
-
-check() {
- cd sphinxcontrib-towncrier-$pkgver
- python setup.py egg_info
- PYTHONPATH="$PWD"/src pytest
-}
-
-package() {
- cd sphinxcontrib-towncrier-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: python-sphinxcontrib-towncrier/repos/community-any/PKGBUILD (from rev
1341884, python-sphinxcontrib-towncrier/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-11-04 22:58:32 UTC (rev 1341885)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-sphinxcontrib-towncrier
+pkgver=0.3.1a0
+pkgrel=2
+pkgdesc="An RST directive for injecting a Towncrier-generated changelog draft
containing fragments for the unreleased (next) project version"
+url="https://github.com/sphinx-contrib/sphinxcontrib-towncrier"
+license=('BSD')
+arch=('any')
+depends=('python-sphinx' 'towncrier')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-setuptools-scm'
+ 'python-setuptools-scm-git-archive' 'python-wheel')
+checkdepends=('python-pytest-xdist')
+source=("https://github.com/sphinx-contrib/sphinxcontrib-towncrier/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('4aad34852b3d8b4bcb3603aeefce4fdb1b908baab358031639430c3c63fc3728817bfa8d5b71b79e6df79efc1a75ebde62089c3eed4956869d16133ce6657ad7')
+
+prepare() {
+ cd sphinxcontrib-towncrier-$pkgver
+ sed -i '/pytest_cov/d;/--cov/d' pytest.ini
+}
+
+build() {
+ cd sphinxcontrib-towncrier-$pkgver
+ python -m build -nw
+}
+
+check() {
+ cd sphinxcontrib-towncrier-$pkgver
+ PYTHONPATH="$PWD"/src pytest
+}
+
+package() {
+ cd sphinxcontrib-towncrier-$pkgver
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}