Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / python-gdstk
Commits: ad9afb49 by Rafael Fontenelle at 2024-02-28T20:59:05-03:00 Remove pytest-runner, use SPDX license, use pypa build and installer - - - - - fe170f2a by Daniel M. Capella at 2024-02-28T21:38:04-05:00 Bump SRCINFO - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -4,10 +4,13 @@ pkgbase = python-gdstk pkgrel = 1 url = https://github.com/heitzmann/gdstk arch = x86_64 - license = custom:BSL - checkdepends = python-pytest-runner + license = BSL-1.0 + checkdepends = python-pytest makedepends = git makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = cmake depends = python-numpy source = git+https://github.com/heitzmann/gdstk.git#commit=41f72281ca4ec9f1727cde702b88cc780ccdb27a ===================================== PKGBUILD ===================================== @@ -6,32 +6,33 @@ _commit=41f72281ca4ec9f1727cde702b88cc780ccdb27a pkgrel=1 pkgdesc="Python module for creating GDSII stream files, usually CAD layouts" url="https://github.com/heitzmann/gdstk" -license=('custom:BSL') +license=('BSL-1.0') arch=('x86_64') depends=('python-numpy') -makedepends=('git' 'python-setuptools' 'cmake') -checkdepends=('python-pytest-runner') +makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'cmake') +checkdepends=('python-pytest') source=("git+https://github.com/heitzmann/gdstk.git#commit=$_commit") sha512sums=('SKIP') prepare() { cd gdstk # Upstream wants to test CI :/ - sed -i 's/oldest-supported-numpy/numpy/' setup.py + sed -i 's/oldest-supported-numpy/numpy/' pyproject.toml } build() { cd gdstk - python setup.py build + python -m build --wheel --no-isolation } check() { cd gdstk - python setup.py pytest + local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))') + PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-$python_version" pytest } package() { cd gdstk - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-gdstk/-/compare/2a21314e54b4ab39ce3e5ec0f6e39579a1b782be...fe170f2a1a4755b80ed4973776c861a6978e50e2 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-gdstk/-/compare/2a21314e54b4ab39ce3e5ec0f6e39579a1b782be...fe170f2a1a4755b80ed4973776c861a6978e50e2 You're receiving this email because of your account on gitlab.archlinux.org.