Date: Monday, May 15, 2023 @ 09:00:38
Author: grawlinson
Revision: 1461796
archrelease: copy trunk to community-any
Added:
python-sphinx-prompt/repos/community-any/PKGBUILD
(from rev 1461795, python-sphinx-prompt/trunk/PKGBUILD)
python-sphinx-prompt/repos/community-any/pyproject.toml-template.patch
(from rev 1461795, python-sphinx-prompt/trunk/pyproject.toml-template.patch)
python-sphinx-prompt/repos/community-any/remove-unnecessary-dependencies.patch
(from rev 1461795,
python-sphinx-prompt/trunk/remove-unnecessary-dependencies.patch)
Deleted:
python-sphinx-prompt/repos/community-any/PKGBUILD
---------------------------------------+
PKGBUILD | 114 +++++++++++++++++++-------------
pyproject.toml-template.patch | 12 +++
remove-unnecessary-dependencies.patch | 27 +++++++
3 files changed, 107 insertions(+), 46 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-15 08:59:39 UTC (rev 1461795)
+++ PKGBUILD 2023-05-15 09:00:38 UTC (rev 1461796)
@@ -1,46 +0,0 @@
-# Maintainer: George Rawlinson <[email protected]>
-
-pkgname=python-sphinx-prompt
-pkgver=1.5.0
-pkgrel=2
-pkgdesc='Sphinx directive to add unselectable prompt'
-arch=('any')
-url='https://github.com/sbrunner/sphinx-prompt'
-license=('BSD')
-depends=(
- 'python'
- 'python-sphinx'
- 'python-pygments'
- 'python-docutils'
-)
-makedepends=(
- 'git'
- 'python-build'
- 'python-installer'
- 'python-wheel'
- 'python-setuptools'
-)
-_commit='427351db81469d8065b4632ae201c9d26e1f8062'
-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
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}
Copied: python-sphinx-prompt/repos/community-any/PKGBUILD (from rev 1461795,
python-sphinx-prompt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-15 09:00:38 UTC (rev 1461796)
@@ -0,0 +1,68 @@
+# Maintainer: George Rawlinson <[email protected]>
+
+pkgname=python-sphinx-prompt
+pkgver=1.6.0
+pkgrel=1
+pkgdesc='Sphinx directive to add unselectable prompt'
+arch=('any')
+url='https://github.com/sbrunner/sphinx-prompt'
+license=('BSD')
+depends=(
+ 'python'
+ 'python-sphinx'
+ 'python-pygments'
+ 'python-docutils'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-poetry-core'
+)
+_commit='d24b0dc68ddb6ae93b3f8dabe2080809a1a1e603'
+source=(
+ "$pkgname::git+$url#commit=$_commit"
+ 'pyproject.toml-template.patch'
+ 'remove-unnecessary-dependencies.patch'
+)
+b2sums=('SKIP'
+
'a82f3e76a5237d30803e319305f48a0c9530ceee268a79e93a47d1bf1ff133789199d16a5bf75679d5f15d5247498bfcd9f06908b30681cd59e9b1e6e3364586'
+
'2f0c3b6e92c907151f408f730dd8c77aeb3a72401b87284248e7cbf604ebb5403553ed3026dc4c573a8cd8f7388cec69ce207f3c89c955b05eaf1fd4721137c3')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # manually set version
+ patch -p1 -i "$srcdir/pyproject.toml-template.patch"
+
+ # remove useless dependencies
+ patch -p1 -i "$srcdir/remove-unnecessary-dependencies.patch"
+}
+
+build() {
+ cd "$pkgname"
+
+ # set version
+ sed -e "s/@PKGVER@/$pkgver/" -i pyproject.toml
+
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd "$pkgname"
+
+ 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/sphinx_prompt-$pkgver.dist-info/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
Copied: python-sphinx-prompt/repos/community-any/pyproject.toml-template.patch
(from rev 1461795, python-sphinx-prompt/trunk/pyproject.toml-template.patch)
===================================================================
--- pyproject.toml-template.patch (rev 0)
+++ pyproject.toml-template.patch 2023-05-15 09:00:38 UTC (rev 1461796)
@@ -0,0 +1,12 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -12,7 +12,7 @@ strict = true
+
+ [tool.poetry]
+ name = "sphinx-prompt"
+-version = "1.5.0"
++version = "@PKGVER@"
+ description = "Sphinx directive to add unselectable prompt"
+ readme = "README.rst"
+ authors = ["Stéphane Brunner <[email protected]>"]
+
Copied:
python-sphinx-prompt/repos/community-any/remove-unnecessary-dependencies.patch
(from rev 1461795,
python-sphinx-prompt/trunk/remove-unnecessary-dependencies.patch)
===================================================================
--- remove-unnecessary-dependencies.patch (rev 0)
+++ remove-unnecessary-dependencies.patch 2023-05-15 09:00:38 UTC (rev
1461796)
@@ -0,0 +1,27 @@
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -40,7 +40,7 @@ keywords = ["sphinx", "shell", "prompt"]
+ packages = [{ include = "sphinx_prompt" }, { include =
"sphinx_prompt/py.typed" }]
+
+ [tool.poetry.dependencies]
+-python = ">=3.8,<3.11"
++python = ">=3.8"
+ Sphinx = "6.1.3"
+ pygments = "2.14.0"
+ docutils = "0.19"
+@@ -51,14 +51,5 @@ pytest = "7.2.1"
+ types-docutils = "0.19.1.2"
+
+ [build-system]
+-requires = ["poetry-core>=1.0.0", "poetry-plugin-tweak-dependencies-version",
"poetry-dynamic-versioning"]
++requires = ["poetry-core>=1.0.0"]
+ build-backend = "poetry.core.masonry.api"
+-
+-[tool.poetry-plugin-tweak-dependencies-version]
+-default = "present"
+-sphinx = "major"
+-
+-[tool.poetry-dynamic-versioning]
+-enable = true
+-vcs = "git"
+-pattern = "^((?P<epoch>\\d+)!)?(?P<base>\\d+(\\.\\d+)*)"