[arch-commits] Commit in python-sphinx-theme-builder/repos/community-any (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Mon Aug 1 07:02:57 UTC 2022


    Date: Monday, August 1, 2022 @ 07:02:56
  Author: arojas
Revision: 1259577

archrelease: copy trunk to community-any

Added:
  python-sphinx-theme-builder/repos/community-any/PKGBUILD
    (from rev 1259576, python-sphinx-theme-builder/trunk/PKGBUILD)
Deleted:
  python-sphinx-theme-builder/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   86 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 40 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-01 07:02:47 UTC (rev 1259576)
+++ PKGBUILD	2022-08-01 07:02:56 UTC (rev 1259577)
@@ -1,46 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=sphinx-theme-builder
-pkgname=python-$_pkgname
-pkgver=0.2.0a12
-pkgrel=2
-pkgdesc='Python build backend for Sphinx themes'
-arch=('any')
-url='https://github.com/pradyunsg/sphinx-theme-builder'
-license=('BSD')
-depends=('python' 'python-packaging' 'python-rich' 'python-tomli' 'python-nodeenv' 'python-setuptools' 'python-pep621')
-optdepends=('python-build: CLI'
-            'python-click: CLI'
-            'python-sphinx-autobuild: CLI')
-makedepends=('python-setuptools' 'python-dephell')
-checkdepends=('python-pytest' 'python-build' 'python-click' 'python-sphinx-autobuild')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('58aa883d200ac26f357b1d1b0df500b0a4a05cbc143e97532eb32e5a422f2db2d33d6bb27445964f6833e2c9538115e85517245b16fd1cb6f538ab39122bc5b3')
-
-prepare() {
-  cd $_pkgname-$pkgver
-
-  dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-  cd $_pkgname-$pkgver
-
-  python setup.py build
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  PYTHONPATH=src pytest
-}
-
-package() {
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-sphinx-theme-builder/repos/community-any/PKGBUILD (from rev 1259576, python-sphinx-theme-builder/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-01 07:02:56 UTC (rev 1259577)
@@ -0,0 +1,40 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=sphinx-theme-builder
+pkgname=python-$_pkgname
+pkgver=0.2.0b1
+pkgrel=1
+pkgdesc='Python build backend for Sphinx themes'
+arch=('any')
+url='https://github.com/pradyunsg/sphinx-theme-builder'
+license=('BSD')
+depends=('python' 'python-packaging' 'python-rich' 'python-tomli' 'python-nodeenv' 'python-setuptools' 'python-pep621' 'python-pyproject-metadata')
+optdepends=('python-build: CLI'
+            'python-click: CLI'
+            'python-sphinx-autobuild: CLI')
+makedepends=('python-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest' 'python-click' 'python-sphinx-autobuild')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('dd7a5ff4f0765abc0ed92d6588e9d46e40c521787340578016a2dc9acc6f0da1eb40ad7eb08ca76901ce724db47a126132d6d6a96041b36f9000d5299d36e246')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=src pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list