Date: Wednesday, December 28, 2022 @ 10:49:30 Author: dvzrv Revision: 1370305
upgpkg: python-selinux 0.3.0-1: Upgrade to 0.3.0. Switch back to pypi sdist tarball for sources as no patches are required. Remove unneeded prepare(). Modified: python-selinux/trunk/PKGBUILD Deleted: python-selinux/trunk/python-selinux-0.2.1-dependencies.patch -----------------------------------------+ PKGBUILD | 30 +++++++-------------------- python-selinux-0.2.1-dependencies.patch | 33 ------------------------------ 2 files changed, 8 insertions(+), 55 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-12-28 10:49:30 UTC (rev 1370304) +++ PKGBUILD 2022-12-28 10:49:30 UTC (rev 1370305) @@ -2,40 +2,26 @@ _name=selinux pkgname=python-selinux -pkgver=0.2.1 -_commit=dde60d08158f594933cc42a8fe2200ee88d890b5 # refs/tags/0.2.1 -pkgrel=8 +pkgver=0.3.0 +pkgrel=1 pkgdesc="Pure-python selinux shim module for use in virtualenvs" arch=(any) url="https://github.com/pycontribs/selinux" license=(MIT) depends=(python-distro) -makedepends=(git python-build python-installer python-setuptools python-setuptools-scm python-wheel) -# switch to git sources to not backport own patches: https://github.com/pypa/setuptools/issues/3672 -source=( - git+https://github.com/pycontribs/selinux#tag=$_commit - # https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz - $pkgname-0.2.1-dependencies.patch -) -sha512sums=('SKIP' - 'cadabec154eec83aae9184a51c0289b0c7c45e6b7987b6281fe745e5b298b878f9cd73e2acf63e7e874253b2ab100fb4e903068ee3c605536bd7248d6ff91307') -b2sums=('SKIP' - '1cdd908ef1c9f4ed7294f44e87bfa8a31bb3e57b0dea3c0d41cdb7141a80788c59ac25dedaab9857a74844aac46c80e95f96e9abafc01dc5ffa400dc4ec0dd37') +makedepends=(python-build python-installer python-setuptools python-setuptools-scm python-wheel) +source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) +sha512sums=('4af1649868f180a4549cfbdbf380a85100fa7e99b815b94d9069fbf05f7ca5377fc6acfed526621c1b4c6a781fd13df864ab194b14314ba4d4375f5b6230800e') +b2sums=('f46b26e4af2ad33cdb3fa54e1d0033aba8f00db0ce6845b3440a86430107456e7a55b67da5fad56bcc85c8b3efe18439e510ca1dcdb8cc473966c597534b944e') -prepare() { - # remove unneeded build system and runtime requirements - # https://github.com/pycontribs/selinux/pull/54 - patch -Np1 -d $_name -i ../$pkgname-0.2.1-dependencies.patch -} - build() { - cd $_name + cd $_name-$pkgver export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python -m build --wheel --no-isolation } package() { - cd $_name + cd $_name-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/" Deleted: python-selinux-0.2.1-dependencies.patch =================================================================== --- python-selinux-0.2.1-dependencies.patch 2022-12-28 10:49:30 UTC (rev 1370304) +++ python-selinux-0.2.1-dependencies.patch 2022-12-28 10:49:30 UTC (rev 1370305) @@ -1,33 +0,0 @@ -diff --git c/pyproject.toml w/pyproject.toml -index c95e6d1..a53c5d8 100644 ---- c/pyproject.toml -+++ w/pyproject.toml -@@ -1,9 +1,6 @@ - [build-system] - requires = [ -- "pip>=19.1.1", -- "setuptools >= 41.0.0", -- "setuptools_scm >= 1.15.0", -- "setuptools_scm_git_archive >= 1.0", -- "wheel", -+ "setuptools >= 45.0.0", -+ "setuptools_scm[toml] >= 7.0.0", - ] - build-backend = "setuptools.build_meta" -diff --git c/setup.cfg w/setup.cfg -index adbc4b2..fee0bce 100644 ---- c/setup.cfg -+++ w/setup.cfg -@@ -60,11 +60,9 @@ include_package_data = True - zip_safe = True - install_requires = - distro>=1.3.0 -- setuptools>=39.0 - - # These are required during `setup.py` run: - setup_requires = -- setuptools_scm >= 1.15.0 -- setuptools_scm_git_archive >= 1.0 -+ setuptools_scm >= 7.0.0 - [options.packages.find] - where = .
