David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-markdown2


Commits:
13e85426 by David Runge at 2024-05-05T20:59:07+02:00
Switch to PEP517

Signed-off-by: David Runge <[email protected]>

- - - - -
f6e4fce8 by David Runge at 2024-05-05T21:06:24+02:00
Use upstream provided way of testing instead of tox

Signed-off-by: David Runge <[email protected]>

- - - - -
9333a49a by David Runge at 2024-05-05T21:06:53+02:00
Add nvchecker integration

Signed-off-by: David Runge <[email protected]>

- - - - -


3 changed files:

- .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -5,8 +5,10 @@ pkgbase = python-markdown2
        url = https://github.com/trentm/python-markdown2
        arch = any
        license = MIT
-       checkdepends = python-tox-current-env
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python
        depends = python-pygments
        source = 
python-markdown2-2.4.12.tar.gz::https://github.com/trentm/python-markdown2/archive/2.4.12.tar.gz


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,3 @@
+[python-markdown2]
+source = "pypi"
+pypi = "markdown2"


=====================================
PKGBUILD
=====================================
@@ -8,29 +8,23 @@ arch=('any')
 url='https://github.com/trentm/python-markdown2'
 license=('MIT')
 depends=('python' 'python-pygments')
-makedepends=('python-setuptools')
-checkdepends=('python-tox-current-env')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 
sha512sums=('ca794292c877f332fd252846f761744c7a00aeac72201a6c4c069f81484a46965a3c79bb00c05ad7978deafc48fc769a8c3cf05a80aeba1ea9b353ef4fa910d4')
 
 build() {
   cd $pkgname-$pkgver
-
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd $pkgname-$pkgver
-
-  local python_version=$(python -c 'import sys; print("".join(map(str, 
sys.version_info[:2])))')
-  tox -e "py${python_version}" --current-env
+  cd $pkgname-$pkgver/test
+  python testall.py
 }
 
 package() {
   cd $pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-markdown2/-/compare/42d581d79aa05ce4df15edd3e8f418e57fada378...9333a49af3fd6c68da52369c6457e3df5656c3cd

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-markdown2/-/compare/42d581d79aa05ce4df15edd3e8f418e57fada378...9333a49af3fd6c68da52369c6457e3df5656c3cd
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to