From 0c462c7d05850627a51cf838286043b9bb1acd58 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 13 May 2022 02:10:50 -0400 Subject: [PATCH 01/18] New package: python3-execnet-1.9.0 --- srcpkgs/python3-execnet/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-execnet/template diff --git a/srcpkgs/python3-execnet/template b/srcpkgs/python3-execnet/template new file mode 100644 index 000000000000..0b3e869180fe --- /dev/null +++ b/srcpkgs/python3-execnet/template @@ -0,0 +1,19 @@ +# Template file for 'python3-execnet' +pkgname=python3-execnet +version=1.9.0 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-setuptools_scm" +checkdepends="python3-pytest" +short_desc="Distributed Python deployment and communication" +maintainer="classabbyamp " +license="MIT" +homepage="https://execnet.readthedocs.io/en/stable/" +changelog="https://raw.githubusercontent.com/pytest-dev/execnet/master/CHANGELOG.rst" +distfiles="${PYPI_SITE}/e/execnet/execnet-${version}.tar.gz" +checksum=8f694f3ba9cc92cab508b152dcfe322153975c29bda272e2fd7f3f00f36e47c5 + +post_install() { + vlicense LICENSE +} From a38797ccb04b85a8992d3e62c97456dce0277d8e Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 13 May 2022 02:11:12 -0400 Subject: [PATCH 02/18] New package: python3-pytest-forked-1.4.0 --- srcpkgs/python3-pytest-forked/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-pytest-forked/template diff --git a/srcpkgs/python3-pytest-forked/template b/srcpkgs/python3-pytest-forked/template new file mode 100644 index 000000000000..df82db9de161 --- /dev/null +++ b/srcpkgs/python3-pytest-forked/template @@ -0,0 +1,21 @@ +# Template file for 'python3-pytest-forked' +pkgname=python3-pytest-forked +version=1.4.0 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-setuptools_scm" +depends="python3-pytest" +short_desc="Run pytest tests in a forked subprocess" +maintainer="classabbyamp " +license="MIT" +homepage="https://github.com/pytest-dev/pytest-forked" +changelog="https://raw.githubusercontent.com/pytest-dev/pytest-forked/master/CHANGELOG.rst" +distfiles="${PYPI_SITE}/p/pytest-forked/pytest-forked-${version}.tar.gz" +checksum=8b67587c8f98cbbadfdd804539ed5455b6ed03802203485dd2f53c1422d7440e +# tests only work inside tox +make_check=no + +post_install() { + vlicense LICENSE +} From 856db1ed9bb8517c79e12ffff272a5dfb172d7d5 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Fri, 13 May 2022 02:11:49 -0400 Subject: [PATCH 03/18] New package: python3-pytest-xdist-2.5.0 --- srcpkgs/python3-pytest-xdist/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-pytest-xdist/template diff --git a/srcpkgs/python3-pytest-xdist/template b/srcpkgs/python3-pytest-xdist/template new file mode 100644 index 000000000000..36392a27d41d --- /dev/null +++ b/srcpkgs/python3-pytest-xdist/template @@ -0,0 +1,21 @@ +# Template file for 'python3-pytest-xdist' +pkgname=python3-pytest-xdist +version=2.5.0 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-setuptools_scm" +depends="python3-pytest python3-pytest-forked python3-execnet" +short_desc="Pytest plugin for distributed testing & loop-on-failures testing modes" +maintainer="classabbyamp " +license="MIT" +homepage="https://github.com/pytest-dev/pytest-xdist" +changelog="https://raw.githubusercontent.com/pytest-dev/pytest-xdist/master/CHANGELOG.rst" +distfiles="${PYPI_SITE}/p/pytest-xdist/pytest-xdist-${version}.tar.gz" +checksum=4580deca3ff04ddb2ac53eba39d76cb5dd5edeac050cb6fbc768b0dd712b4edf +# tests only work in tox +make_check=no + +post_install() { + vlicense LICENSE +} From bb5d35f4a3d4ce598f734af69b5fcb603a3941a4 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sat, 14 May 2022 15:23:13 -0400 Subject: [PATCH 04/18] common/build-style/python3-*: add support for pytest-xdist if python3-pytest-xdist is included in checkdepends, use $XBPS_MAKEJOBS to run tests in parallel. --- common/build-style/python3-module.sh | 6 +++++- common/build-style/python3-pep517.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/common/build-style/python3-module.sh b/common/build-style/python3-module.sh index 6ec5225d6aab..a0a694ee4a97 100644 --- a/common/build-style/python3-module.sh +++ b/common/build-style/python3-module.sh @@ -24,10 +24,14 @@ do_build() { } do_check() { + local testjobs if python3 -c 'import pytest' >/dev/null 2>&1; then + if python3 -c 'import xdist' >/dev/null 2>&1; then + testjobs="-n $XBPS_MAKEJOBS" + fi PYTHONPATH="$(cd build/lib* && pwd)" \ ${make_check_pre} \ - python3 -m pytest ${make_check_args} ${make_check_target} + python3 -m pytest ${testjobs} ${make_check_args} ${make_check_target} else # Fall back to deprecated setup.py test orchestration without pytest if [ -z "$make_check_target" ]; then diff --git a/common/build-style/python3-pep517.sh b/common/build-style/python3-pep517.sh index 62cfac7d67d3..1eeb4172492e 100644 --- a/common/build-style/python3-pep517.sh +++ b/common/build-style/python3-pep517.sh @@ -13,8 +13,12 @@ do_build() { } do_check() { + local testjobs if python3 -c 'import pytest' >/dev/null 2>&1; then - ${make_check_pre} python3 -m pytest ${make_check_args} ${make_check_target} + if python3 -c 'import xdist' >/dev/null 2>&1; then + testjobs="-n $XBPS_MAKEJOBS" + fi + ${make_check_pre} python3 -m pytest ${testjobs} ${make_check_args} ${make_check_target} else msg_warn "Unable to determine tests for PEP517 Python templates" return 0 From 692f73f894e0e0ac920ca0ac8efdb5b416e48aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 19:53:57 +0200 Subject: [PATCH 05/18] New package: python3-Cerberus-1.3.2 --- srcpkgs/python3-Cerberus/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-Cerberus/template diff --git a/srcpkgs/python3-Cerberus/template b/srcpkgs/python3-Cerberus/template new file mode 100644 index 000000000000..cb59a8389b90 --- /dev/null +++ b/srcpkgs/python3-Cerberus/template @@ -0,0 +1,20 @@ +# Template file for 'python3-Cerberus' +pkgname=python3-Cerberus +version=1.3.2 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-pytest" +short_desc="Lightweight, extensible data validation library for Python" +maintainer="Jan Christian Grünhage " +license="ISC" +homepage="http://python-cerberus.org" +changelog="https://raw.githubusercontent.com/pyeve/cerberus/master/CHANGES.rst" +distfiles="${PYPI_SITE}/C/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=302e6694f206dd85cb63f13fd5025b31ab6d38c99c50c6d769f8fa0b0f299589 + +post_install() { + vlicense LICENSE +} From 37958fa6f9673c041efed7fb88a74212d5dc6a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 10 May 2022 16:04:50 +0200 Subject: [PATCH 06/18] python3-ansible-compat: update to 2.1.0. --- srcpkgs/python3-ansible-compat/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-ansible-compat/template b/srcpkgs/python3-ansible-compat/template index 5b5b64154f3f..8f94ac5735ae 100644 --- a/srcpkgs/python3-ansible-compat/template +++ b/srcpkgs/python3-ansible-compat/template @@ -1,7 +1,7 @@ # Template file for 'python3-ansible-compat' pkgname=python3-ansible-compat -version=2.0.2 -revision=2 +version=2.1.0 +revision=1 wrksrc="${pkgname/python3-/}-${version}" build_style=python3-pep517 hostmakedepends="python3-wheel python3-setuptools_scm" @@ -11,7 +11,7 @@ maintainer="Jan Christian Grünhage " license="MIT" homepage="https://github.com/ansible-community/ansible-compat" distfiles="${PYPI_SITE}/a/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" -checksum=c651995dc323ef145bab857fee6540febc881fb71b7feafe8163d49e273163a5 +checksum=62bae1bb5c20663d5ee1bfec04f073c08be721040af9ef5bddc7904e6678d184 post_patch() { vsed -e "/setuptools_scm_git_archive/d" -i pyproject.toml From bfa48f24125b88fce6b3e664196e78f720438332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 20:07:15 +0200 Subject: [PATCH 07/18] New package: python3-click-help-colors-0.9.1 --- srcpkgs/python3-click-help-colors/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-click-help-colors/template diff --git a/srcpkgs/python3-click-help-colors/template b/srcpkgs/python3-click-help-colors/template new file mode 100644 index 000000000000..901ea5cb5cf1 --- /dev/null +++ b/srcpkgs/python3-click-help-colors/template @@ -0,0 +1,20 @@ +# Template file for 'python3-click-help-colors' +pkgname=python3-click-help-colors +version=0.9.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-click" +checkdepends="${depends} python3-pytest" +short_desc="Colorization of help messages in Click" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/click-contrib/click-help-colors" +changelog="https://raw.githubusercontent.com/click-contrib/click-help-colors/master/CHANGES.rst" +distfiles="${PYPI_SITE}/c/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=78cbcf30cfa81c5fc2a52f49220121e1a8190cd19197d9245997605d3405824d + +post_install() { + vlicense LICENSE.txt +} From 94a668e2ff80d0505eaf7dd2355a3a0766bdeb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 20:29:56 +0200 Subject: [PATCH 08/18] New package: python3-jinja2-time-0.2.0 --- ...se-of-Arrow.replace-with-Arrow.shift.patch | 32 +++++++++++++++++++ srcpkgs/python3-jinja2-time/template | 20 ++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 srcpkgs/python3-jinja2-time/patches/0001-fix-substitute-use-of-Arrow.replace-with-Arrow.shift.patch create mode 100644 srcpkgs/python3-jinja2-time/template diff --git a/srcpkgs/python3-jinja2-time/patches/0001-fix-substitute-use-of-Arrow.replace-with-Arrow.shift.patch b/srcpkgs/python3-jinja2-time/patches/0001-fix-substitute-use-of-Arrow.replace-with-Arrow.shift.patch new file mode 100644 index 000000000000..ed63fcae62d5 --- /dev/null +++ b/srcpkgs/python3-jinja2-time/patches/0001-fix-substitute-use-of-Arrow.replace-with-Arrow.shift.patch @@ -0,0 +1,32 @@ +From 65d0605323a957ca8b753788ba9ae6f6506fc2b3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= + +Date: Thu, 9 Jun 2022 20:26:45 +0200 +Subject: [PATCH] fix: substitute use of Arrow.replace with Arrow.shift + +--- + jinja2_time/jinja2_time.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/jinja2_time/jinja2_time.py b/jinja2_time/jinja2_time.py +index ce713cb..717c8a0 100755 +--- a/jinja2_time/jinja2_time.py ++++ b/jinja2_time/jinja2_time.py +@@ -19,11 +19,11 @@ class TimeExtension(Extension): + d = arrow.now(timezone) + + # Parse replace kwargs from offset and include operator +- replace_params = {} ++ shift_params = {} + for param in offset.split(','): + interval, value = param.split('=') +- replace_params[interval.strip()] = float(operator + value.strip()) +- d = d.replace(**replace_params) ++ shift_params[interval.strip()] = float(operator + value.strip()) ++ d = d.shift(**shift_params) + + if datetime_format is None: + datetime_format = self.environment.datetime_format +-- +2.36.1 + diff --git a/srcpkgs/python3-jinja2-time/template b/srcpkgs/python3-jinja2-time/template new file mode 100644 index 000000000000..ca0762607534 --- /dev/null +++ b/srcpkgs/python3-jinja2-time/template @@ -0,0 +1,20 @@ +# Template file for 'python3-jinja2-time' +pkgname=python3-jinja2-time +version=0.2.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-Jinja2 python3-Arrow" +checkdepends="${depends} python3-pytest python3-freezegun" +short_desc="Jinja2 Extension for Dates and Times" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/hackebrot/jinja2-time" +changelog="https://github.com/hackebrot/jinja2-time/raw/main/HISTORY.rst" +distfiles="${PYPI_SITE}/j/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40 + +post_install() { + vlicense LICENSE +} From 6f53875f1981be9ea02270cba7547d3976693fd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 20:50:25 +0200 Subject: [PATCH 09/18] New package: python3-dparse-0.5.1 --- srcpkgs/python3-dparse/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-dparse/template diff --git a/srcpkgs/python3-dparse/template b/srcpkgs/python3-dparse/template new file mode 100644 index 000000000000..137b51d7ac7d --- /dev/null +++ b/srcpkgs/python3-dparse/template @@ -0,0 +1,20 @@ +# Template file for 'python3-dparse' +pkgname=python3-dparse +version=0.5.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-packaging python3-yaml python3-toml" +checkdepends="${depends} python3-pytest python3-pipenv" +short_desc="Parser for Python dependency files" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/pyupio/dparse" +changelog="https://raw.githubusercontent.com/pyupio/dparse/master/HISTORY.rst" +distfiles="${PYPI_SITE}/d/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=a1b5f169102e1c894f9a7d5ccf6f9402a836a5d24be80a986c7ce9eaed78f367 + +post_install() { + vlicense LICENSE +} From 332575fd62a00ae9e956112d24a9a6ab01e68701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 20:54:30 +0200 Subject: [PATCH 10/18] New package: safety-1.10.3 --- srcpkgs/safety/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/safety/template diff --git a/srcpkgs/safety/template b/srcpkgs/safety/template new file mode 100644 index 000000000000..ee451a9bc45e --- /dev/null +++ b/srcpkgs/safety/template @@ -0,0 +1,19 @@ +# Template file for 'safety' +pkgname=safety +version=1.10.3 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-click python3-requests python3-packaging python3-dparse python3-ruamel.yaml" +checkdepends="${depends} python3-pytest python3-pytest-cov" +short_desc="Vulnerability scanning for Python dependencies" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://pyup.io/safety/" +changelog="https://github.com/pyupio/safety/raw/develop/CHANGELOG.md" +distfiles="${PYPI_SITE}/s/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=30e394d02a20ac49b7f65292d19d38fa927a8f9582cdfd3ad1adbbc66c641ad5 + +post_install() { + vlicense LICENSE +} From 410602ffc3a4606e0772a773db7aba20a6c3a4f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 21:08:51 +0200 Subject: [PATCH 11/18] New package: cookiecutter-2.1.1 --- srcpkgs/cookiecutter/template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 srcpkgs/cookiecutter/template diff --git a/srcpkgs/cookiecutter/template b/srcpkgs/cookiecutter/template new file mode 100644 index 000000000000..602ed7a9a64e --- /dev/null +++ b/srcpkgs/cookiecutter/template @@ -0,0 +1,26 @@ +# Template file for 'cookiecutter' +pkgname=cookiecutter +version=2.1.1 +revision=1 +build_style=python3-module +make_check_args="--deselect tests/vcs/test_clone.py::test_clone_handles_repo_typo + --deselect tests/vcs/test_clone.py::test_clone_handles_repo_typo + --deselect tests/vcs/test_clone.py::test_clone_handles_branch_typo + --deselect tests/vcs/test_clone.py::test_clone_handles_branch_typo + --deselect tests/vcs/test_clone.py::test_clone_unknown_subprocess_error" +hostmakedepends="python3-setuptools" +depends="python3-binaryornot python3-Jinja2 python3-click python3-yaml + python3-jinja2-time python3-slugify python3-requests" +checkdepends="${depends} python3-pytest python3-pytest-cov python3-pytest-mock + python3-freezegun safety pre-commit" +short_desc="CLI utility to create projects from cookiecutters (project templates)" +maintainer="Jan Christian Grünhage " +license="BSD-3-Clause" +homepage="https://github.com/cookiecutter/cookiecutter" +changelog="https://github.com/cookiecutter/cookiecutter/raw/master/HISTORY.md" +distfiles="${PYPI_SITE}/c/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=f3982be8d9c53dac1261864013fdec7f83afd2e42ede6f6dd069c5e149c540d5 + +post_install() { + vlicense LICENSE +} From d885a2ef2629a937e04e13a7079faa332d42b877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 21:50:21 +0200 Subject: [PATCH 12/18] New package: python3-ansi2html-1.7.0 --- srcpkgs/python3-ansi2html/template | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 srcpkgs/python3-ansi2html/template diff --git a/srcpkgs/python3-ansi2html/template b/srcpkgs/python3-ansi2html/template new file mode 100644 index 000000000000..4a50e1b42098 --- /dev/null +++ b/srcpkgs/python3-ansi2html/template @@ -0,0 +1,21 @@ +# Template file for 'python3-ansi2html' +pkgname=python3-ansi2html +version=1.7.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-pep517 +make_check_args="--deselect tests/test_ansi2html.py::TestAnsi2HTML::test_command_script" +hostmakedepends="python3-setuptools python3-wheel" +depends="python3-importlib_metadata" +checkdepends="${depends} python3-pytest python3-pytest-cov python3-mock" +short_desc="Convert text with ansi color codes to HTML" +maintainer="Jan Christian Grünhage " +license="LGPL-3.0-or-later" +homepage="https://github.com/pycontribs/ansi2html" +changelog="https://github.com/pycontribs/ansi2html/raw/main/CHANGELOG.rst" +distfiles="${PYPI_SITE}/a/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=69316be8c68ac91c5582d397c2890e69c993cc7cda52062ac7e45fcb660d8edc + +post_patch() { + vsed -e "/name =/a version = ${version}" -e "/use_scm_version/d" -i setup.cfg +} From e3ab6fdc85b6b7755c06e7acdf8a751bd5901d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 22:35:04 +0200 Subject: [PATCH 13/18] New package: python3-pytest-metadata-2.0.1 --- srcpkgs/python3-pytest-metadata/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-pytest-metadata/template diff --git a/srcpkgs/python3-pytest-metadata/template b/srcpkgs/python3-pytest-metadata/template new file mode 100644 index 000000000000..ac02fc3290f0 --- /dev/null +++ b/srcpkgs/python3-pytest-metadata/template @@ -0,0 +1,18 @@ +# Template file for 'python3-pytest-metadata' +pkgname=python3-pytest-metadata +version=2.0.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-pep517 +hostmakedepends="python3-poetry-core" +depends="python3-pytest" +checkdepends="${depends}" +short_desc="Pytest plugin for test session metadata" +maintainer="Jan Christian Grünhage " +license="MPL-2.0" +homepage="https://github.com/pytest-dev/pytest-metadata" +changelog="https://github.com/pytest-dev/pytest-metadata/raw/master/CHANGES.rst" +distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=5cdb6aeea8ba9109181cf9f149c8a3ae1430ff7e44506a8f866af8a98ca46301 +# Requires itself to be installed for it's own tests running properly +make_check=no From a06575ae6a1d9b858361dd2ff58cba1b20d6b006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 23:48:35 +0200 Subject: [PATCH 14/18] New package: python3-pytest-rerunfailures-10.2 --- srcpkgs/python3-pytest-rerunfailures/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/python3-pytest-rerunfailures/template diff --git a/srcpkgs/python3-pytest-rerunfailures/template b/srcpkgs/python3-pytest-rerunfailures/template new file mode 100644 index 000000000000..b1aff984ada1 --- /dev/null +++ b/srcpkgs/python3-pytest-rerunfailures/template @@ -0,0 +1,16 @@ +# Template file for 'python3-pytest-rerunfailures' +pkgname=python3-pytest-rerunfailures +version=10.2 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-pytest python3-pytest-xdist" +checkdepends="${depends}" +short_desc="Pytest plugin for re-running flaky tests" +maintainer="Jan Christian Grünhage " +license="MPL-2.0" +homepage="https://github.com/pytest-dev/pytest-rerunfailures" +changelog="https://github.com/pytest-dev/pytest-rerunfailures/raw/master/CHANGES.rst" +distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=9e1e1bad51e07642c5bbab809fc1d4ec8eebcb7de86f90f1a26e6ef9de446697 From 253dc746d739d8e4d146a58891c995a2ab26d9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Thu, 9 Jun 2022 23:56:33 +0200 Subject: [PATCH 15/18] New package: python3-pytest-html-3.1.1 --- srcpkgs/python3-pytest-html/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-pytest-html/template diff --git a/srcpkgs/python3-pytest-html/template b/srcpkgs/python3-pytest-html/template new file mode 100644 index 000000000000..65315edf5f8d --- /dev/null +++ b/srcpkgs/python3-pytest-html/template @@ -0,0 +1,18 @@ +# Template file for 'python3-pytest-html' +pkgname=python3-pytest-html +version=3.1.1 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-pep517 +hostmakedepends="python3-setuptools_scm python3-toml python3-wheel" +depends="python3-pytest python3-pytest-metadata" +checkdepends="${depends} python3-pytest-xdist python3-pytest-rerunfailures + python3-ansi2html python3-pytest-mock python3-pytest-cov" +short_desc="Pytest plugin for generating HTML reports for pytest results" +maintainer="Jan Christian Grünhage " +license="MPL-2.0" +homepage="https://github.com/pytest-dev/pytest-html" +distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=3ee1cf319c913d19fe53aeb0bc400e7b0bc2dbeb477553733db1dad12eb75ee3 +# Requires itself to be installed for it's own tests running properly +make_check=no From dee2e8db474ad654e758fe0282d90e05efcbcf72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 10 Jun 2022 00:03:17 +0200 Subject: [PATCH 16/18] New package: python3-pytest-plus-0.2 --- srcpkgs/python3-pytest-plus/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-pytest-plus/template diff --git a/srcpkgs/python3-pytest-plus/template b/srcpkgs/python3-pytest-plus/template new file mode 100644 index 000000000000..4e79a72cde2f --- /dev/null +++ b/srcpkgs/python3-pytest-plus/template @@ -0,0 +1,19 @@ +# Template file for 'python3-pytest-plus' +pkgname=python3-pytest-plus +version=0.2 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3-more-itertools" +checkdepends="python3-pytest-html" +short_desc="Pytest plus plugin, extending functionality" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/pytest-dev/pytest-plus" +distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=eb0e11b52c617460bfaae788b82bcfd25efad9472895b240f182a8850757b6c5 + +post_install() { + vlicense LICENSE +} From 313e06fdbb6051d1392520684360f0d7809c1623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 10 Jun 2022 00:10:25 +0200 Subject: [PATCH 17/18] New package: python3-pytest-testinfra-6.7.0 --- srcpkgs/python3-pytest-testinfra/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-pytest-testinfra/template diff --git a/srcpkgs/python3-pytest-testinfra/template b/srcpkgs/python3-pytest-testinfra/template new file mode 100644 index 000000000000..18d4ab28ff94 --- /dev/null +++ b/srcpkgs/python3-pytest-testinfra/template @@ -0,0 +1,17 @@ +# Template file for 'python3-pytest-testinfra' +pkgname=python3-pytest-testinfra +version=6.7.0 +revision=1 +wrksrc="${pkgname/python3-/}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3-pytest" +short_desc="Test your infrastructure using pytest" +maintainer="Jan Christian Grünhage " +license="Apache-2.0" +homepage="https://testinfra.readthedocs.io/" +changelog="https://github.com/pytest-dev/pytest-testinfra/raw/master/CHANGELOG.rst" +distfiles="${PYPI_SITE}/p/${pkgname/python3-/}/${pkgname/python3-/}-${version}.tar.gz" +checksum=dfde1ce0f1f7cc0dd5c62a29d0f986f3a98a8c144bbcbaebdf7eeeaf16163ec1 +# Requires outdated ansible +make_check=no From e3a838534964b17c5bb123ec433df0284ad872a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Fri, 10 Jun 2022 00:24:39 +0200 Subject: [PATCH 18/18] New package: molecule-3.6.1 --- srcpkgs/molecule/template | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 srcpkgs/molecule/template diff --git a/srcpkgs/molecule/template b/srcpkgs/molecule/template new file mode 100644 index 000000000000..704a4b60be40 --- /dev/null +++ b/srcpkgs/molecule/template @@ -0,0 +1,57 @@ +# Template file for 'molecule' +pkgname=molecule +version=3.6.1 +revision=1 +build_style=python3-pep517 +make_check_args="--deselect src/molecule/test/functional/test_command.py::test_command_check + --deselect src/molecule/test/functional/test_command.py::test_command_cleanup + --deselect src/molecule/test/functional/test_command.py::test_command_converge + --deselect src/molecule/test/functional/test_command.py::test_command_create + --deselect src/molecule/test/functional/test_command.py::test_command_destroy + --deselect src/molecule/test/functional/test_command.py::test_command_idempotence + --deselect src/molecule/test/functional/test_command.py::test_command_lint + --deselect src/molecule/test/functional/test_command.py::test_command_list_with_format_plain + --deselect src/molecule/test/functional/test_command.py::test_command_prepare + --deselect src/molecule/test/functional/test_command.py::test_command_side_effect + --deselect src/molecule/test/functional/test_command.py::test_command_syntax + --deselect src/molecule/test/functional/test_command.py::test_command_test + --deselect src/molecule/test/functional/test_command.py::test_command_verify + --deselect src/molecule/test/unit/test_api.py::test_cli_mol + --deselect src/molecule/test/unit/command/test_base.py::test_command_completion + --deselect src/molecule/test/unit/command/test_base.py::test_command_completion + --deselect src/molecule/test/unit/command/test_base.py::test_command_completion + --deselect src/molecule/test/functional/test_command.py::test_command_check + --deselect src/molecule/test/functional/test_command.py::test_command_cleanup + --deselect src/molecule/test/functional/test_command.py::test_command_converge + --deselect src/molecule/test/functional/test_command.py::test_command_create + --deselect src/molecule/test/functional/test_command.py::test_command_destroy + --deselect src/molecule/test/functional/test_command.py::test_command_idempotence + --deselect src/molecule/test/functional/test_command.py::test_command_lint + --deselect src/molecule/test/functional/test_command.py::test_command_prepare + --deselect src/molecule/test/functional/test_command.py::test_command_side_effect + --deselect src/molecule/test/functional/test_command.py::test_command_syntax + --deselect src/molecule/test/functional/test_command.py::test_command_test + --deselect src/molecule/test/functional/test_command.py::test_command_verify" +hostmakedepends="python3-wheel python3-toml" +depends="python3-ansible-compat python3-Cerberus python3-click + python3-click-help-colors cookiecutter python3-enrich python3-Jinja2 + python3-packaging python3-pluggy python3-yaml python3-rich ansible-core + python3-yamllint" +checkdepends="${depends} python3-ansi2html python3-coverage python3-filelock + python3-pexpect python3-pytest python3-pytest-cov python3-pytest-html + python3-pytest-mock python3-pytest-plus python3-pytest-testinfra + python3-pytest-xdist" +short_desc="Development and testing helper for ansible" +maintainer="Jan Christian Grünhage " +license="MIT" +homepage="https://github.com/ansible-community/molecule" +distfiles="${PYPI_SITE}/m/molecule/molecule-${version}.tar.gz" +checksum=3b7d5ba2978c15a034df8c7aa59dec5436f7d3260d1f9db2c78ae14ae3a9deeb + +post_patch() { + vsed -e "/name =/a version = ${version}" -e "/use_scm_version/d" -i setup.cfg +} + +post_install() { + vlicense LICENSE +}