Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages / 
python-agate-excel


Commits:
f2f2a201 by loqs at 2026-01-30T20:43:55+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,9 +5,12 @@ pkgbase = python-agate-excel
        url = https://agate-excel.readthedocs.org
        arch = any
        license = MIT
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
        makedepends = python-sphinx
        makedepends = python-sphinx-furo
+       makedepends = python-wheel
        depends = python
        depends = python-agate
        depends = python-olefile


=====================================
PKGBUILD
=====================================
@@ -16,16 +16,19 @@ _pydeps=(agate
          xlrd)
 depends=(python
          "${_pydeps[@]/#/python-}")
-makedepends=(python-setuptools
+makedepends=(python-build
+             python-installer
+             python-setuptools
              python-sphinx
-             python-sphinx-furo)
+             python-sphinx-furo
+             python-wheel)
 _archive="$_pyname-$pkgver"
 
source=("$_archive.tar.gz::https://github.com/wireservice/$_pyname/archive/$pkgver.tar.gz";)
 sha256sums=('1c3df325257c6f5047dc1ce7475caa109565f0ae98379e39e1bd83503617153e')
 
 build() {
        cd "$_archive"
-       python setup.py build
+       python -m build --wheel --no-isolation
        make -C docs html
        local _rtd_theme_path="$(python -c 'import sphinx_rtd_theme; 
print(sphinx_rtd_theme.get_html_theme_path())')"
        rm -rvf docs/_build/html/_static
@@ -39,7 +42,7 @@ check() {
 
 package() {
        cd "$_archive"
-       python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+       python -m installer --destdir="$pkgdir" dist/*.whl
        install -dm0755 "$pkgdir/usr/share/doc/"
        cp -rv docs/_build/html "$pkgdir/usr/share/doc/$pkgname"
        install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-agate-excel/-/commit/f2f2a20155cc3d3ddfd14c1d534f04461f80fe27

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-agate-excel/-/commit/f2f2a20155cc3d3ddfd14c1d534f04461f80fe27
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to