diff --git a/srcpkgs/python3-distlib/template b/srcpkgs/python3-distlib/template index 717368cc11c5b7..4580e92d5125d8 100644 --- a/srcpkgs/python3-distlib/template +++ b/srcpkgs/python3-distlib/template @@ -1,7 +1,7 @@ # Template file for 'python3-distlib' pkgname=python3-distlib -version=0.3.9 -revision=2 +version=0.4.0 +revision=1 build_style=python3-pep517 hostmakedepends="python3-setuptools python3-wheel" depends="python3" @@ -12,7 +12,7 @@ license="Python-2.0" homepage="https://distlib.readthedocs.io/" changelog="https://raw.githubusercontent.com/pypa/distlib/master/CHANGES.rst" distfiles="${PYPI_SITE}/d/distlib/distlib-${version}.tar.gz" -checksum=a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403 +checksum=feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d # see: https://github.com/pypa/distlib/issues/161#issuecomment-1119511558 make_check_pre="env PYTHONHASHSEED=0" @@ -21,6 +21,9 @@ make_check_pre="env PYTHONHASHSEED=0" make_check_args=" --deselect tests/test_scripts.py::ScriptTestCase::test_script_run" +# see: https://github.com/pypa/distlib/issues/245#issuecomment-3068307380 +make_check_pre+=" SKIP_EXT_PACKAGE_DATA=1" + pre_check() { # this is testing `is_writable('/etc')`, which for us is `True` vsed -i -e "/self.assertFalse(self.fileop.is_writable/s/False/True/" tests/test_util.py diff --git a/srcpkgs/python3-dotenv/template b/srcpkgs/python3-dotenv/template index 9861d79d891e56..e4a7bd49b05076 100644 --- a/srcpkgs/python3-dotenv/template +++ b/srcpkgs/python3-dotenv/template @@ -1,13 +1,8 @@ # Template file for 'python3-dotenv' pkgname=python3-dotenv -version=1.1.0 -revision=2 -build_style=python3-module -# CLI tests and test_set_key_permission_error fail in xbps-src's build environment -make_check_args="-k not(test_run) - --deselect tests/test_cli.py::test_get_default_path - --deselect tests/test_main.py::test_set_key_permission_error - --deselect tests/test_main.py::test_set_key_unauthorized_file" +version=1.2.2 +revision=1 +build_style=python3-pep517 hostmakedepends="python3-setuptools" depends="python3-click" checkdepends="${depends} python3-ipython python3-mock python3-pytest python3-sh" @@ -17,7 +12,7 @@ license="BSD-3-Clause" homepage="https://github.com/theskumar/python-dotenv" changelog="https://raw.githubusercontent.com/theskumar/python-dotenv/main/CHANGELOG.md" distfiles="https://github.com/theskumar/python-dotenv/archive/refs/tags/v${version}.tar.gz" -checksum=2b9722774d3126917226cc39d0b63deb45bd9edacf8fa9b08aceee8e6d9a246d +checksum=58f0f1016f35872bf90649f28d8777ee4897bb88f9075c315f71dc485410002a post_install() { vlicense LICENSE diff --git a/srcpkgs/python3-filelock/template b/srcpkgs/python3-filelock/template index 42d2f6207e0449..316e4db15a19af 100644 --- a/srcpkgs/python3-filelock/template +++ b/srcpkgs/python3-filelock/template @@ -1,7 +1,7 @@ # Template file for 'python3-filelock' pkgname=python3-filelock -version=3.18.0 -revision=2 +version=3.29.0 +revision=1 build_style=python3-pep517 hostmakedepends="hatchling hatch-vcs" depends="python3" @@ -13,4 +13,4 @@ license="Unlicense" homepage="https://py-filelock.readthedocs.io/en/latest/" changelog="https://raw.githubusercontent.com/tox-dev/py-filelock/main/docs/changelog.rst" distfiles="${PYPI_SITE}/f/filelock/filelock-${version}.tar.gz" -checksum=adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2 +checksum=69974355e960702e789734cb4871f884ea6fe50bd8404051a3530bc07809cf90 diff --git a/srcpkgs/python3-platformdirs/template b/srcpkgs/python3-platformdirs/template index 018ef3ec5f4b3c..2bb851024ff73c 100644 --- a/srcpkgs/python3-platformdirs/template +++ b/srcpkgs/python3-platformdirs/template @@ -1,7 +1,7 @@ # Template file for 'python3-platformdirs' pkgname=python3-platformdirs -version=4.4.0 -revision=2 +version=4.10.0 +revision=1 build_style=python3-pep517 hostmakedepends="hatchling hatch-vcs" depends="python3" @@ -12,7 +12,7 @@ license="MIT" homepage="https://platformdirs.rtfd.io/" changelog="https://github.com/tox-dev/platformdirs/releases" distfiles="${PYPI_SITE}/p/platformdirs/platformdirs-${version}.tar.gz" -checksum=ca753cf4d81dc309bc67b0ea38fd15dc97bc30ce419a7f58d13eb3bf14c4febf +checksum=31e761a6a0ca04faf7353ea759bdba55652be214725111e5aac52dfa29d4bef7 make_check_pre="env PYTHONPATH=src" post_install() { diff --git a/srcpkgs/python3-pytest-env/template b/srcpkgs/python3-pytest-env/template index 59ec9b59d7cd05..673d747af697c4 100644 --- a/srcpkgs/python3-pytest-env/template +++ b/srcpkgs/python3-pytest-env/template @@ -1,18 +1,34 @@ # Template file for 'python3-pytest-env' pkgname=python3-pytest-env -version=1.1.5 -revision=3 +version=1.6.0 +revision=1 build_style=python3-pep517 hostmakedepends="hatchling hatch-vcs" -depends="python3-pytest" -checkdepends="python3-pytest" +depends="python3-pytest python3-dotenv" +checkdepends="$depends python3-pytest-mock" short_desc="Pytest plugin to add environment variables" maintainer="Gonzalo Tornaría " license="MIT" homepage="https://github.com/pytest-dev/pytest-env" changelog="https://github.com/pytest-dev/pytest-env/releases" distfiles="${PYPI_SITE}/p/pytest-env/pytest_env-${version}.tar.gz" -checksum=91209840aa0e43385073ac464a554ad2947cc2fd663a9debf88d03b01e0cc1cf +checksum=ac02d6fba16af54d61e311dd70a3c61024a4e966881ea844affc3c8f0bf207d3 + +pre_check() { + # These tests fail with pytest < 9 (see: https://github.com/pytest-dev/pytest-env/pull/189) + # tests/test_env.py::test_env_via_toml[pyproject toml via tool.pytest] + # tests/test_env.py::test_env_via_toml[pytest toml over pyproject toml] + # tests/test_env.py::test_env_via_toml[subdir pytest toml over parent pyproject toml] + # tests/test_env.py::test_env_via_pyproject_toml_bad[pytest.toml] + # tests/test_env.py::test_env_via_pyproject_toml_bad[.pytest.toml] + + # hack to workaround spaces in those + vsed -e '/id=.*pytest toml over/s/pytest toml/pytest.toml/' \ + -i tests/test_env.py + + # now the 5 tests can be deselected with this pattern + make_check_args="-k not((pytest.toml)or(tool.pytest))" +} post_install() { vlicense LICENSE diff --git a/srcpkgs/python3-pytest-env/template.orig b/srcpkgs/python3-pytest-env/template.orig new file mode 100644 index 00000000000000..c960920a8eddf8 --- /dev/null +++ b/srcpkgs/python3-pytest-env/template.orig @@ -0,0 +1,19 @@ +# Template file for 'python3-pytest-env' +pkgname=python3-pytest-env +version=1.6.0 +revision=1 +build_style=python3-pep517 +hostmakedepends="hatchling hatch-vcs" +depends="python3-pytest" +checkdepends="python3-pytest" +short_desc="Pytest plugin to add environment variables" +maintainer="Gonzalo Tornaría " +license="MIT" +homepage="https://github.com/pytest-dev/pytest-env" +changelog="https://github.com/pytest-dev/pytest-env/releases" +distfiles="${PYPI_SITE}/p/pytest-env/pytest_env-${version}.tar.gz" +checksum=ac02d6fba16af54d61e311dd70a3c61024a4e966881ea844affc3c8f0bf207d3 + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-python-discovery/template b/srcpkgs/python3-python-discovery/template new file mode 100644 index 00000000000000..31eb24f00d1807 --- /dev/null +++ b/srcpkgs/python3-python-discovery/template @@ -0,0 +1,19 @@ +# Template file for 'python3-python-discovery' +pkgname=python3-python-discovery +version=1.4.0 +revision=1 +build_style=python3-pep517 +hostmakedepends="hatchling hatch-vcs" +depends="python3-filelock python3-platformdirs" +checkdepends="$depends python3-pytest-xdist python3-pytest-mock" +short_desc="Python interpreter discovery" +maintainer="Gonzalo Tornaría " +license="MIT" +homepage="https://github.com/tox-dev/python-discovery" +changelog="https://github.com/tox-dev/python-discovery/releases" +distfiles="${PYPI_SITE}/p/python-discovery/python_discovery-${version}.tar.gz" +checksum=eb8bc7daad3c226c147e45bb4e970a1feb1bf4048ee178e6db59e197b8010ce3 + +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python3-virtualenv/template b/srcpkgs/python3-virtualenv/template index 8247fe0ff67d71..4efb4c56a18df8 100644 --- a/srcpkgs/python3-virtualenv/template +++ b/srcpkgs/python3-virtualenv/template @@ -1,10 +1,13 @@ # Template file for 'python3-virtualenv' pkgname=python3-virtualenv -version=20.31.2 -revision=2 +version=21.4.1 +revision=1 build_style=python3-pep517 +make_check_args=" + --deselect tests/unit/create/test_creator.py::test_venv_fails_not_inline" hostmakedepends="hatchling hatch-vcs" -depends="python3-platformdirs python3-distlib python3-filelock" +depends="python3-platformdirs python3-distlib python3-filelock + python3-python-discovery" checkdepends="${depends} python3-pytest-xdist python3-pytest-mock python3-flaky python3-pytest-env python3-pytest-timeout python3-time-machine python3-devel python3-pip python3-packaging" @@ -14,7 +17,7 @@ license="MIT" homepage="https://virtualenv.pypa.io/" changelog="https://virtualenv.pypa.io/en/latest/changelog.html" distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz" -checksum=e10c0a9d02835e592521be48b332b6caee6887f332c111aa79a09b9e79efc2af +checksum=2ca543c713b72840ceffd94e9bdedfbd09a661defa1f7f69e5429ad4059442e2 alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3" post_install() {