Date: Sunday, May 7, 2023 @ 08:21:42 Author: yan12125 Revision: 1459218
upgpkg: python-cfn-lint 0.77.4-1; switch to PEP 517 SOURCES.txt in egg-info is not reproducible if tests are run Modified: python-cfn-lint/trunk/PKGBUILD ----------+ PKGBUILD | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-05-07 08:15:29 UTC (rev 1459217) +++ PKGBUILD 2023-05-07 08:21:42 UTC (rev 1459218) @@ -2,10 +2,10 @@ pkgname=python-cfn-lint # https://github.com/aws-cloudformation/cfn-lint/blob/main/CHANGELOG.md -pkgver=0.77.2 +pkgver=0.77.4 # curl https://api.github.com/repos/aws-cloudformation/cfn-lint/git/ref/tags/v$pkgver | jq -r .object.sha -_tag=548ac3f86ba1fd0a65ba13268742c03e886997c0 -pkgrel=2 +_tag=cf0c7e1771c0242fe886862214d886219eeeffd3 +pkgrel=1 pkgdesc='CloudFormation Linter' arch=(any) url='https://github.com/aws-cloudformation/cfn-lint' @@ -14,7 +14,7 @@ python-jsonpatch python-jsonschema python-networkx python-junit-xml python-jschema-to-python python-sarif-om python-sympy python-regex) -makedepends=(git python-setuptools) +makedepends=(git python-build python-installer python-setuptools python-wheel) checkdepends=(python-pydot) optdepends=( 'python-pydot: for building graphs from templates' @@ -29,7 +29,7 @@ build() { cd cfn-lint - python setup.py build + python -m build --wheel --no-isolation } check() { @@ -36,10 +36,10 @@ cd cfn-lint # Tests in test/integration need the cfn-lint binary - python setup.py install_scripts --install-dir="$srcdir"/tmp_install + python -m installer --destdir="$PWD/tmp_install" dist/*.whl export PYTHONPATH="$PWD/src" - export PATH="$PATH:$srcdir/tmp_install" + export PATH="$PATH:$PWD/tmp_install/usr/bin" # Using unittest following upstream. `test/unit/module/core/test_run_cli.py` # fails if run after `test/unit/module/test_api.py`, which is the case for pytest. # The conflict among tests exist after https://github.com/aws-cloudformation/cfn-lint/pull/2646, @@ -49,7 +49,7 @@ package() { cd cfn-lint - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }
