Date: Thursday, April 6, 2023 @ 14:00:26
  Author: felixonmars
Revision: 1439109

archrelease: copy trunk to community-staging-any

Added:
  python-markdown/repos/community-staging-any/
  python-markdown/repos/community-staging-any/PKGBUILD
    (from rev 1439107, python-markdown/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-markdown/repos/community-staging-any/PKGBUILD (from rev 1439107, 
python-markdown/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 14:00:26 UTC (rev 1439109)
@@ -0,0 +1,52 @@
+# Maintainer: Kyle Keen <[email protected]>
+# Maintainer: Caleb Maclennan <[email protected]>
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Angel Velasquez <[email protected]>
+# Contributor: Andrew Antle <andrew dot antle at gmail dot com>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Chaiwat Suttipongsakul <cwt at bashell dot com>
+
+pkgname=python-markdown
+_commit='be1c2839dd587a858f91c710e56667cba9f5329d'
+pkgver=3.4.3
+pkgrel=2
+pkgdesc="Python implementation of John Gruber's Markdown"
+arch=('any')
+url='https://python-markdown.github.io/'
+license=('BSD')
+depends=('python')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
+optdepends=('python-yaml: parse Python in YAML metadata')
+checkdepends=('python-yaml')
+source=("$pkgname::git+https://github.com/Python-Markdown/markdown#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd "$pkgname"
+
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "$pkgname"
+
+  [[ $(python -c "import markdown; print(markdown.__version__)") == "$pkgver" 
]]
+  [[ $(python -c "import markdown; print(markdown.markdown('*test*'))") == 
"<p><em>test</em></p>" ]]
+
+  python -m unittest discover tests
+}
+
+package() {
+  cd "$pkgname"
+
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.md
+}

Reply via email to