From b75b20bab47b639ceeb1e81c8346a3861faef2ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 16 Jul 2021 12:35:13 +0200 Subject: [PATCH 1/7] New package: python3-enrich-1.2.6 --- srcpkgs/python3-enrich/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-enrich/template diff --git a/srcpkgs/python3-enrich/template b/srcpkgs/python3-enrich/template new file mode 100644 index 000000000000..67c7cc53c45f --- /dev/null +++ b/srcpkgs/python3-enrich/template @@ -0,0 +1,19 @@ +# Template file for 'python3-enrich' +pkgname=python3-enrich +version=1.2.6 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm python3-wheel python3-rich" +depends="python3-rich" +checkdepends="python3-pytest python3-pytest-mock ${depends}" +short_desc="Extended variant of the rich library for python" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/pycontribs/enrich" +distfiles="${PYPI_SITE}/e/enrich/enrich-${version}.tar.gz" +checksum=0e99ff57d87f7b5def0ca79917e88fb9351aa0d52e228ee38bff7cd858315fe4 + +post_install() { + vlicense LICENSE +} From ae67478c4a9180fe16de42fbd443398173014099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 16 Jul 2021 12:35:21 +0200 Subject: [PATCH 2/7] New package: python3-bracex-2.1.1 --- srcpkgs/python3-bracex/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-bracex/template diff --git a/srcpkgs/python3-bracex/template b/srcpkgs/python3-bracex/template new file mode 100644 index 000000000000..cd4c7583b412 --- /dev/null +++ b/srcpkgs/python3-bracex/template @@ -0,0 +1,18 @@ +# Template file for 'python3-bracex' +pkgname=python3-bracex +version=2.1.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +checkdepends="python3-pytest" +short_desc="Bash style brace expansion for Python" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/facelessuser/bracex" +distfiles="${PYPI_SITE}/b/bracex/bracex-${version}.tar.gz" +checksum=01f715cd0ed7a622ec8b32322e715813f7574de531f09b70f6f3b2c10f682425 + +post_install() { + vlicense LICENSE.md +} From 2b2c46ee95eff915907782f05ea9b8a0ad4231da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 16 Jul 2021 12:36:07 +0200 Subject: [PATCH 3/7] New package: python3-wcmatch-8.2 --- srcpkgs/python3-wcmatch/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-wcmatch/template diff --git a/srcpkgs/python3-wcmatch/template b/srcpkgs/python3-wcmatch/template new file mode 100644 index 000000000000..b86391dc67d0 --- /dev/null +++ b/srcpkgs/python3-wcmatch/template @@ -0,0 +1,21 @@ +# Template file for 'python3-wcmatch' +pkgname=python3-wcmatch +version=8.2 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +make_check_args="--deselect tests/test_globmatch.py::TestTilde::test_tilde_globmatch_no_realpath +--deselect tests/test_globmatch.py::TestTilde::test_tilde_globmatch_no_tilde" +hostmakedepends="python3-setuptools" +depends="python3-bracex" +checkdepends="python3-pytest ${depends}" +short_desc="Wilcard File Name matching library" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/facelessuser/wcmatch" +distfiles="${PYPI_SITE}/w/wcmatch/wcmatch-${version}.tar.gz" +checksum=4d54ddb506c90b5a5bba3a96a1cfb0bb07127909e19046a71d689ddfb18c3617 + +post_install() { + vlicense LICENSE.md +} From 91950334ec9257ab6bf450c922da8010c3acf230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 16 Jul 2021 12:37:00 +0200 Subject: [PATCH 4/7] New package: python3-typeguard-2.13.0 --- srcpkgs/python3-typeguard/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-typeguard/template diff --git a/srcpkgs/python3-typeguard/template b/srcpkgs/python3-typeguard/template new file mode 100644 index 000000000000..8110d6a1fc13 --- /dev/null +++ b/srcpkgs/python3-typeguard/template @@ -0,0 +1,17 @@ +# Template file for 'python3-typeguard' +pkgname=python3-typeguard +version=2.13.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +short_desc="Run-time type checker for python" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/agronholm/typeguard" +distfiles="${PYPI_SITE}/t/typeguard/typeguard-${version}.tar.gz" +checksum=04e38f92eb59410c9375d3be23df65e0a7643f2e8bcbd421423d808d2f9e99df + +post_install() { + vlicense LICENSE +} From ffe4962f5b7f4477dc23cf900a2917ca3d321450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 16 Jul 2021 12:38:15 +0200 Subject: [PATCH 5/7] New package: python3-tenacity-8.0.1 --- srcpkgs/python3-tenacity/template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/python3-tenacity/template diff --git a/srcpkgs/python3-tenacity/template b/srcpkgs/python3-tenacity/template new file mode 100644 index 000000000000..75c165588077 --- /dev/null +++ b/srcpkgs/python3-tenacity/template @@ -0,0 +1,15 @@ +# Template file for 'python3-tenacity' +pkgname=python3-tenacity +version=8.0.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm python3-wheel" +depends="python3-Sphinx python3-tornado python3-typeguard" +checkdepends="python3-pytest ${depends}" +short_desc="General-purpose retrying library for Python" +maintainer="Jan Christian Grünhage " +license="Apache-2.0" +homepage="https://github.com/jd/tenacity" +distfiles="${PYPI_SITE}/t/tenacity/tenacity-${version}.tar.gz" +checksum=43242a20e3e73291a28bcbcacfd6e000b02d3857a9a9fff56b297a27afdc932f From 5bac7b21364c81b4d31e5d5b6edf2254d3781775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 12 Oct 2021 19:29:34 +0200 Subject: [PATCH 6/7] python3-yamllint: rename to yamllint, update to 1.26.3. --- srcpkgs/python3-yamllint | 1 + srcpkgs/python3-yamllint/template | 20 -------------------- srcpkgs/yamllint/template | 30 ++++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 20 deletions(-) create mode 120000 srcpkgs/python3-yamllint delete mode 100644 srcpkgs/python3-yamllint/template create mode 100644 srcpkgs/yamllint/template diff --git a/srcpkgs/python3-yamllint b/srcpkgs/python3-yamllint new file mode 120000 index 000000000000..c0085f7fd2f7 --- /dev/null +++ b/srcpkgs/python3-yamllint @@ -0,0 +1 @@ +yamllint \ No newline at end of file diff --git a/srcpkgs/python3-yamllint/template b/srcpkgs/python3-yamllint/template deleted file mode 100644 index 201a7b34423a..000000000000 --- a/srcpkgs/python3-yamllint/template +++ /dev/null @@ -1,20 +0,0 @@ -# Template file for 'python3-yamllint' -pkgname=python3-yamllint -version=1.15.0 -revision=5 -wrksrc="yamllint-${version}" -build_style=python3-module -hostmakedepends="python3-setuptools" -depends="python3-pathspec python3-setuptools python3-yaml" -checkdepends="python3-pathspec python3-yaml" -short_desc="Python3 linter for YAML files" -maintainer="Jan Christian Grünhage " -license="GPL-3.0-or-later" -homepage="https://github.com/adrienverge/yamllint" -distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=9c27608ec61777f83c2cb29158b247a02079ad2aebb86522dd941397e3e78f6a -conflicts="python-yamllint>=0" - -do_check() { - python3 setup.py test -} diff --git a/srcpkgs/yamllint/template b/srcpkgs/yamllint/template new file mode 100644 index 000000000000..18d158832de8 --- /dev/null +++ b/srcpkgs/yamllint/template @@ -0,0 +1,30 @@ +# Template file for 'yamllint' +pkgname=yamllint +version=1.26.3 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-pathspec python3-setuptools python3-yaml" +checkdepends="python3-pathspec python3-yaml" +short_desc="Python 3 linter for YAML files" +maintainer="Jan Christian Grünhage " +license="GPL-3.0-or-later" +homepage="https://github.com/adrienverge/yamllint" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=a12b134d360c8655c831c018162fd058dac308f62462b14c24125171c5822610 +conflicts="python-yamllint>=0" + +case "$XBPS_TARGET_MACHINE" in + # See CI failure in https://github.com/void-linux/void-packages/runs/3882770805?check_suite_focus=true + *-musl) + make_check_args="--deselect tests/test_cli.py::CommandLineTestCase::test_run_with_locale + --deselect tests/rules/test_key_ordering.py::KeyOrderingTestCase::test_locale_accents + --deselect tests/rules/test_key_ordering.py::KeyOrderingTestCase::test_locale_case" + ;; +esac + +python3-yamllint_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - transitional dummy package" + build_style=meta +} From 2fa4e328c593472d8497508b33060ec8aa146f38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 16 Jul 2021 12:39:28 +0200 Subject: [PATCH 7/7] python3-ansible-lint: rename to ansible-lint, update to 5.2.0. --- srcpkgs/ansible-lint/template | 29 +++++++++++++++++++++++++++ srcpkgs/python3-ansible-lint | 1 + srcpkgs/python3-ansible-lint/template | 24 ---------------------- 3 files changed, 30 insertions(+), 24 deletions(-) create mode 100644 srcpkgs/ansible-lint/template create mode 120000 srcpkgs/python3-ansible-lint delete mode 100644 srcpkgs/python3-ansible-lint/template diff --git a/srcpkgs/ansible-lint/template b/srcpkgs/ansible-lint/template new file mode 100644 index 000000000000..7dfcf4d69d8b --- /dev/null +++ b/srcpkgs/ansible-lint/template @@ -0,0 +1,29 @@ +# Template file for 'ansible-lint' +pkgname=ansible-lint +version=5.2.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools_scm python3-wheel" +depends="ansible-core yamllint python3-six python3-yaml python3-ruamel.yaml python3-tenacity python3-enrich python3-wcmatch" +short_desc="Linter for Ansible files" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/ansible-community/ansible-lint" +distfiles="${PYPI_SITE}/a/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=79020356d93f503d2cc869a7270e3c04316d510e33b6264edc08c7d0db0e8061 +make_check=no + +post_patch() { + # scm versioning is broken in this release + vsed -e "/name =/a version = ${version}" -e "/setuptools_scm/d" -i setup.cfg +} + +post_install() { + vlicense LICENSE +} + +python3-ansible-lint_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - transitional dummy package" + build_style=meta +} diff --git a/srcpkgs/python3-ansible-lint b/srcpkgs/python3-ansible-lint new file mode 120000 index 000000000000..09ee8035c500 --- /dev/null +++ b/srcpkgs/python3-ansible-lint @@ -0,0 +1 @@ +ansible-lint \ No newline at end of file diff --git a/srcpkgs/python3-ansible-lint/template b/srcpkgs/python3-ansible-lint/template deleted file mode 100644 index 93f631fa6a17..000000000000 --- a/srcpkgs/python3-ansible-lint/template +++ /dev/null @@ -1,24 +0,0 @@ -# Template file for 'python3-ansible-lint' -pkgname=python3-ansible-lint -version=4.3.5 -revision=3 -wrksrc="ansible-lint-${version}" -build_style=python3-module -hostmakedepends="python3-setuptools" -depends="ansible python3-six python3-yaml python3-ruamel.yaml" -short_desc="Linter for Ansible files" -maintainer="Jan Christian Grünhage " -license="MIT" -homepage="https://github.com/willthames/ansible-lint" -changelog="https://raw.githubusercontent.com/willthames/ansible-lint/master/CHANGELOG.md" -distfiles="${PYPI_SITE}/a/ansible-lint/ansible-lint-${version}.tar.gz" -checksum=bec230cf5fcc4d976246d4170da3ae289715f99185529ca8bba4b3c173035656 - -post_patch() { - # scm versioning is broken in this release - vsed -e "/name =/a version = ${version}" -e "/setuptools_scm/d" -i setup.cfg -} - -post_install() { - vlicense LICENSE -}