Felix Yan pushed to branch main at Arch Linux / Packaging / Packages /
python-flex
Commits:
e5be6b56 by Felix Yan at 2026-03-04T05:05:59+08:00
upgpkg: 6.14.1-16
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,13 +1,14 @@
pkgbase = python-flex
pkgdesc = Swagger schema validator
pkgver = 6.14.1
- pkgrel = 15
+ pkgrel = 16
url = https://github.com/pipermerriam/flex
arch = any
license = BSD
checkdepends = python-factory-boy
checkdepends = python-responses
checkdepends = python-pytest-httpbin
+ makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
@@ -20,11 +21,7 @@ pkgbase = python-flex
depends = python-strict-rfc3339
depends = python-click
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
+ source = git+https://github.com/pipermerriam/flex.git#tag=v6.14.1
+ sha512sums =
d932d339f8a798e55c40b193486e08123ef4dc6e2fa9bef3294f760a54852edbad470b947e185d11a3d6444c1eacd99f66004331ab58679b8e833d669d0aec82
pkgname = python-flex
=====================================
PKGBUILD
=====================================
@@ -2,41 +2,38 @@
pkgname=python-flex
pkgver=6.14.1
-pkgrel=15
+pkgrel=16
pkgdesc="Swagger schema validator"
url="https://github.com/pipermerriam/flex"
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-build' 'python-installer' 'python-setuptools'
'python-wheel')
+makedepends=('git' '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-pkg_resources-removal.patch::https://github.com/pipermerriam/flex/pull/240.patch)
-sha512sums=('7164f70db2095041f878e2be95467aefc7c5b0b38b9792bd74127dc0769f24e99dd6d5df48a076bfb819462aa8216fd16313e5ebfa0e881ea3094d38ad409c40'
-
'8f6dfeddeaa7b30df1e90af0be31382c283f67cc79c1ffb8c5fd22e87b679ce30df4ac82725d70bf2f58104316b169451e7862ccaec6f8f5c8d0f1e1c06cf7b1'
-
'40e012191cb7cc72d80b0bfef9437f817292fe89f83906dc252da0e19abf13c5dfcf2a5e5f930ca13996674f689ee76d6bb6c3a90621c6c913a263e0ba0fff8a')
+source=("git+https://github.com/pipermerriam/flex.git#tag=v$pkgver")
+sha512sums=('d932d339f8a798e55c40b193486e08123ef4dc6e2fa9bef3294f760a54852edbad470b947e185d11a3d6444c1eacd99f66004331ab58679b8e833d669d0aec82')
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
+ cd flex
+ git cherry-pick -n 2b8f16c5ff7fe4353eb530048fec52bbf95c5480 # werkzeug 2.1
compatibility
+ git cherry-pick -n 3d4b38aea81d47e228c8f5c9a4f90a8bc9b90ee8 # pkg_resources
removal
+ sed -i 's/<2/<3/' setup.py
}
build() {
- cd flex-$pkgver
+ cd flex
python -m build --wheel --no-isolation
}
check() {
- cd flex-$pkgver
+ cd flex
# https://github.com/pipermerriam/flex/issues/234
pytest --deselect
'tests/validation/request/test_request_parameter_validation.py::test_request_parameter_array_extraction[tsv-1\t2\t3]'
}
package() {
- cd flex-$pkgver
+ cd flex
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/-/commit/e5be6b566ec89970c0fafdf1dde845d8bc2e2c1f
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-flex/-/commit/e5be6b566ec89970c0fafdf1dde845d8bc2e2c1f
You're receiving this email because of your account on gitlab.archlinux.org.