Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / 
python-mechanize


Commits:
8dc901fe by loqs at 2026-02-14T17:07:30+00:00
SPDX license identifier

https://github.com/python-mechanize/mechanize/blob/v0.4.10/LICENSE

- - - - -
6409cc67 by loqs at 2026-02-14T17:09:06+00:00
Use PEP 517 for building

Related https://archlinux.org/todo/use-pep-517-for-building-if-supported/.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -5,11 +5,14 @@ pkgbase = python-mechanize
        epoch = 1
        url = https://github.com/python-mechanize/mechanize
        arch = any
-       license = BSD
+       license = BSD-3-Clause
        checkdepends = python-zope-interface
        checkdepends = python-twisted
-       makedepends = python-setuptools
        makedepends = git
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python-html5lib
        optdepends = python-html5-parser: faster parsing of HTML
        source = 
git+https://github.com/python-mechanize/mechanize#tag=v0.4.10?signed


=====================================
PKGBUILD
=====================================
@@ -13,9 +13,9 @@ epoch=1
 pkgdesc='Stateful programmatic web browsing in Python'
 arch=('any')
 url="https://github.com/python-mechanize/mechanize";
-license=('BSD')
+license=('BSD-3-Clause')
 depends=('python-html5lib')
-makedepends=('python-setuptools' 'git')
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 checkdepends=('python-zope-interface' 'python-twisted')
 optdepends=('python-html5-parser: faster parsing of HTML')
 source=("git+$url#tag=v$pkgver?signed")
@@ -31,7 +31,7 @@ prepare() {
 build() {
   cd $_pkgname
 
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -43,6 +43,6 @@ check() {
 package() {
   cd $_pkgname
 
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-mechanize/-/compare/7783d91a572d32868cbdc8bcabc781ecefdd0418...6409cc67305dcfba3b5bfa55cefa1e417386785e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-mechanize/-/compare/7783d91a572d32868cbdc8bcabc781ecefdd0418...6409cc67305dcfba3b5bfa55cefa1e417386785e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to