Date: Sunday, May 7, 2023 @ 08:22:08
Author: yan12125
Revision: 1459219
archrelease: copy trunk to community-any
Added:
python-cfn-lint/repos/community-any/PKGBUILD
(from rev 1459218, python-cfn-lint/trunk/PKGBUILD)
Deleted:
python-cfn-lint/repos/community-any/PKGBUILD
----------+
PKGBUILD | 110 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 55 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-07 08:21:42 UTC (rev 1459218)
+++ PKGBUILD 2023-05-07 08:22:08 UTC (rev 1459219)
@@ -1,55 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-
-pkgname=python-cfn-lint
-# https://github.com/aws-cloudformation/cfn-lint/blob/main/CHANGELOG.md
-pkgver=0.77.2
-# curl
https://api.github.com/repos/aws-cloudformation/cfn-lint/git/ref/tags/v$pkgver
| jq -r .object.sha
-_tag=548ac3f86ba1fd0a65ba13268742c03e886997c0
-pkgrel=2
-pkgdesc='CloudFormation Linter'
-arch=(any)
-url='https://github.com/aws-cloudformation/cfn-lint'
-license=('custom:MIT No Attribution')
-depends=(python python-yaml python-aws-sam-translator
- python-jsonpatch python-jsonschema python-networkx
- python-junit-xml python-jschema-to-python python-sarif-om
- python-sympy python-regex)
-makedepends=(git python-setuptools)
-checkdepends=(python-pydot)
-optdepends=(
- 'python-pydot: for building graphs from templates'
-)
-source=("git+https://github.com/aws-cloudformation/cfn-lint.git#tag=$_tag")
-sha256sums=('SKIP')
-
-pkgver() {
- cd cfn-lint
- git describe --tags | sed 's/^v//'
-}
-
-build() {
- cd cfn-lint
- python setup.py build
-}
-
-check() {
- cd cfn-lint
-
- # Tests in test/integration need the cfn-lint binary
- python setup.py install_scripts --install-dir="$srcdir"/tmp_install
-
- export PYTHONPATH="$PWD/src"
- export PATH="$PATH:$srcdir/tmp_install"
- # 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,
- # where the new runner.transform() pollutes environment variables via
transform.transform_template()
- python -m unittest discover test
-}
-
-package() {
- cd cfn-lint
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
-}
Copied: python-cfn-lint/repos/community-any/PKGBUILD (from rev 1459218,
python-cfn-lint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-07 08:22:08 UTC (rev 1459219)
@@ -0,0 +1,55 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-cfn-lint
+# https://github.com/aws-cloudformation/cfn-lint/blob/main/CHANGELOG.md
+pkgver=0.77.4
+# curl
https://api.github.com/repos/aws-cloudformation/cfn-lint/git/ref/tags/v$pkgver
| jq -r .object.sha
+_tag=cf0c7e1771c0242fe886862214d886219eeeffd3
+pkgrel=1
+pkgdesc='CloudFormation Linter'
+arch=(any)
+url='https://github.com/aws-cloudformation/cfn-lint'
+license=('custom:MIT No Attribution')
+depends=(python python-yaml python-aws-sam-translator
+ python-jsonpatch python-jsonschema python-networkx
+ python-junit-xml python-jschema-to-python python-sarif-om
+ python-sympy python-regex)
+makedepends=(git python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pydot)
+optdepends=(
+ 'python-pydot: for building graphs from templates'
+)
+source=("git+https://github.com/aws-cloudformation/cfn-lint.git#tag=$_tag")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd cfn-lint
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd cfn-lint
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd cfn-lint
+
+ # Tests in test/integration need the cfn-lint binary
+ python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+
+ export PYTHONPATH="$PWD/src"
+ 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,
+ # where the new runner.transform() pollutes environment variables via
transform.transform_template()
+ python -m unittest discover test
+}
+
+package() {
+ cd cfn-lint
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}