Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / python-flex
Commits: 7345b6a9 by loqs at 2026-02-06T21:39:19+00:00 Use PEP 517 for building Related https://archlinux.org/todo/use-pep-517-for-building-if-supported/. - - - - - ed215d00 by loqs at 2026-03-03T20:52:03+00:00 Remove pkg_resources Related https://archlinux.org/todo/python-pkg_resources-deprecation/. - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -8,7 +8,10 @@ pkgbase = python-flex checkdepends = python-factory-boy checkdepends = python-responses checkdepends = python-pytest-httpbin + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python-six depends = python-yaml depends = python-validate-email @@ -19,7 +22,9 @@ pkgbase = python-flex depends = python-jsonpointer source = python-flex-6.14.1.tar.gz::https://github.com/pipermerriam/flex/archive/v6.14.1.tar.gz source = python-flex-werkzeug-2.1.patch::https://github.com/pipermerriam/flex/pull/236.patch + source = python-flex-pkg_resources-removal.patch::https://github.com/pipermerriam/flex/pull/240.patch sha512sums = 7164f70db2095041f878e2be95467aefc7c5b0b38b9792bd74127dc0769f24e99dd6d5df48a076bfb819462aa8216fd16313e5ebfa0e881ea3094d38ad409c40 sha512sums = 8f6dfeddeaa7b30df1e90af0be31382c283f67cc79c1ffb8c5fd22e87b679ce30df4ac82725d70bf2f58104316b169451e7862ccaec6f8f5c8d0f1e1c06cf7b1 + sha512sums = 40e012191cb7cc72d80b0bfef9437f817292fe89f83906dc252da0e19abf13c5dfcf2a5e5f930ca13996674f689ee76d6bb6c3a90621c6c913a263e0ba0fff8a pkgname = python-flex ===================================== PKGBUILD ===================================== @@ -9,21 +9,24 @@ license=('BSD') arch=('any') depends=('python-six' 'python-yaml' 'python-validate-email' 'python-rfc3987' 'python-requests' 'python-strict-rfc3339' 'python-click' 'python-jsonpointer') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') checkdepends=('python-factory-boy' 'python-responses' 'python-pytest-httpbin') source=("$pkgname-$pkgver.tar.gz::https://github.com/pipermerriam/flex/archive/v$pkgver.tar.gz" - $pkgname-werkzeug-2.1.patch::https://github.com/pipermerriam/flex/pull/236.patch) + $pkgname-werkzeug-2.1.patch::https://github.com/pipermerriam/flex/pull/236.patch + $pkgname-pkg_resources-removal.patch::https://github.com/pipermerriam/flex/pull/240.patch) sha512sums=('7164f70db2095041f878e2be95467aefc7c5b0b38b9792bd74127dc0769f24e99dd6d5df48a076bfb819462aa8216fd16313e5ebfa0e881ea3094d38ad409c40' - '8f6dfeddeaa7b30df1e90af0be31382c283f67cc79c1ffb8c5fd22e87b679ce30df4ac82725d70bf2f58104316b169451e7862ccaec6f8f5c8d0f1e1c06cf7b1') + '8f6dfeddeaa7b30df1e90af0be31382c283f67cc79c1ffb8c5fd22e87b679ce30df4ac82725d70bf2f58104316b169451e7862ccaec6f8f5c8d0f1e1c06cf7b1' + '40e012191cb7cc72d80b0bfef9437f817292fe89f83906dc252da0e19abf13c5dfcf2a5e5f930ca13996674f689ee76d6bb6c3a90621c6c913a263e0ba0fff8a') prepare() { patch -d flex-$pkgver -p1 < $pkgname-werkzeug-2.1.patch + patch -d flex-$pkgver -p1 < $pkgname-pkg_resources-removal.patch sed -i 's/<2/<3/' flex-$pkgver/setup.py } build() { cd flex-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -34,6 +37,6 @@ check() { package() { cd flex-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + 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-flex/-/compare/b6844c894169c62811587bcf909f749430caf7a5...ed215d005593a643d4d7518764a5b09bf0084fbc -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-flex/-/compare/b6844c894169c62811587bcf909f749430caf7a5...ed215d005593a643d4d7518764a5b09bf0084fbc You're receiving this email because of your account on gitlab.archlinux.org.
