Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions srcpkgs/hatch-nodejs-version/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'hatch-nodejs-version'
pkgname=hatch-nodejs-version
version=0.3.2
revision=4
version=0.4.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling"
depends="hatchling"
Expand All @@ -12,7 +12,7 @@ license="MIT"
homepage="https://github.com/agoose77/hatch-nodejs-version"
changelog="https://github.com/agoose77/hatch-nodejs-version/releases"
distfiles="https://github.com/agoose77/hatch-nodejs-version/archive/refs/tags/v${version}.tar.gz"
checksum=c01dae87afcb7b6db421b5248154de26c556e569e2631e9f146bc5c78447eee6
checksum=c48b44fb67efa2c1e82f31ac9b5fd1b8213578510d541599a4c55ff4c7f372d5

post_install() {
vlicense LICENSE.txt
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/hatchling/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'hatchling'
pkgname=hatchling
version=1.28.0
version=1.29.0
revision=1
build_style=python3-pep517
_deps="python3-editables python3-packaging python3-pathspec python3-pluggy
Expand All @@ -13,7 +13,7 @@ license="MIT"
homepage="https://hatch.pypa.io/latest/"
changelog="https://raw.githubusercontent.com/pypa/hatch/master/docs/history/hatchling.md"
distfiles="${PYPI_SITE}/h/hatchling/hatchling-${version}.tar.gz"
checksum=4d50b02aece6892b8cd0b3ce6c82cb218594d3ec5836dbde75bf41a21ab004c8
checksum=793c31816d952cee405b83488ce001c719f325d9cda69f1fc4cd750527640ea6

post_install() {
vlicense LICENSE.txt
Expand Down
6 changes: 3 additions & 3 deletions srcpkgs/python3-cachetools/template
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Template file for 'python3-cachetools'
pkgname=python3-cachetools
version=6.2.4
version=7.1.4
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
hostmakedepends="python3-setuptools_scm"
depends="python3"
checkdepends="python3-pytest"
short_desc="Python3 extensible memoizing collections and decorators"
Expand All @@ -12,7 +12,7 @@ license="MIT"
homepage="https://github.com/tkem/cachetools/"
changelog="https://raw.githubusercontent.com/tkem/cachetools/master/CHANGELOG.rst"
distfiles="${PYPI_SITE}/c/cachetools/cachetools-${version}.tar.gz"
checksum=82c5c05585e70b6ba2d3ae09ea60b79548872185d2f24ae1f2709d37299fd607
checksum=437f55a4e0c1b01a4f3077cc470e6991d47430970e36fbcb77e2be0df4fc1cd6

post_install() {
vlicense LICENSE
Expand Down
6 changes: 3 additions & 3 deletions srcpkgs/python3-coverage/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'python3-coverage'
pkgname=python3-coverage
version=7.9.1
revision=2
version=7.14.0
revision=1
build_style=python3-pep517
# this counts files but our installed package has fewer files
make_check_args="--deselect tests/test_testing.py::test_all_our_source_files"
Expand All @@ -14,7 +14,7 @@ license="Apache-2.0"
homepage="https://github.com/nedbat/coveragepy"
changelog="https://raw.githubusercontent.com/nedbat/coveragepy/master/CHANGES.rst"
distfiles="${PYPI_SITE}/c/coverage/coverage-${version}.tar.gz"
checksum=6cf43c78c4282708a28e466316935ec7489a9c487518a77fa68f716c67909cec
checksum=057a6af2f160a85384cde4ab36f0d2777bae1057bae255f95413cdd382aa5c74

pre_check() {
# required setup, see tox.ini
Expand Down
9 changes: 6 additions & 3 deletions srcpkgs/python3-distlib/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand All @@ -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
Expand Down
13 changes: 4 additions & 9 deletions srcpkgs/python3-dotenv/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions srcpkgs/python3-editables/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'python3-editables'
pkgname=python3-editables
version=0.5
revision=3
version=0.6
revision=1
build_style=python3-pep517
hostmakedepends="python3-flit_core"
depends="python3"
Expand All @@ -12,7 +12,7 @@ license="MIT"
homepage="https://github.com/pfmoore/editables"
changelog="https://github.com/pfmoore/editables/raw/main/CHANGELOG.md"
distfiles="https://github.com/pfmoore/editables/archive/refs/tags/${version}.tar.gz"
checksum=1ff2663aa1669eb89115a38e2d4067c21bb847e7006f72bf979a1a91b8bc2304
checksum=766d9b40616dbcf5cc920e9db26dd915de999cfab75768ff05b3ebf9c389acb2

post_install() {
vlicense LICENSE.txt
Expand Down
6 changes: 3 additions & 3 deletions srcpkgs/python3-filelock/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
4 changes: 2 additions & 2 deletions srcpkgs/python3-pathspec/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'python3-pathspec'
pkgname=python3-pathspec
version=1.0.3
version=1.1.1
revision=1
build_style=python3-pep517
hostmakedepends="python3-flit_core"
Expand All @@ -12,4 +12,4 @@ license="MPL-2.0"
homepage="https://github.com/cpburnz/python-pathspec"
changelog="https://raw.githubusercontent.com/cpburnz/python-pathspec/master/CHANGES.rst"
distfiles="${PYPI_SITE}/p/pathspec/pathspec-${version}.tar.gz"
checksum=bac5cf97ae2c2876e2d25ebb15078eb04d76e4b98921ee31c6f85ade8b59444d
checksum=17db5ecd524104a120e173814c90367a96a98d07c45b2e10c2f3919fff91bf5a
6 changes: 3 additions & 3 deletions srcpkgs/python3-platformdirs/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'python3-platformdirs'
pkgname=python3-platformdirs
version=4.4.0
revision=2
version=4.9.6
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3"
Expand All @@ -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=3bfa75b0ad0db84096ae777218481852c0ebc6c727b3168c1b9e0118e458cf0a
make_check_pre="env PYTHONPATH=src"

post_install() {
Expand Down
9 changes: 5 additions & 4 deletions srcpkgs/python3-pytest-cov/template
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Template file for 'python3-pytest-cov'
pkgname=python3-pytest-cov
version=6.2.1
revision=2
version=7.1.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools"
make_check_args="--deselect tests/test_pytest_cov.py::test_celery"
hostmakedepends="hatchling hatch-fancy-pypi-readme"
depends="python3-pytest python3-coverage python3-pluggy"
checkdepends="$depends python3-fields python3-process-tests
python3-pytest-xdist python3-virtualenv"
Expand All @@ -13,7 +14,7 @@ license="MIT"
homepage="https://pytest-cov.readthedocs.io/en/latest/"
changelog="https://raw.githubusercontent.com/pytest-dev/pytest-cov/master/CHANGELOG.rst"
distfiles="${PYPI_SITE}/p/pytest-cov/pytest_cov-${version}.tar.gz"
checksum=25cc6cc0a5358204b8108ecedc51a9b57b34cc6b8c967cc2c01a4e00d8a67da2
checksum=30674f2b5f6351aa09702a9c8c364f6a01c27aae0c1366ae8016160d1efc56b2

do_check() {
# Running via PYTHONPATH breaks a few tests so we use a venv
Expand Down
33 changes: 33 additions & 0 deletions srcpkgs/python3-pytest-cov/template.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Template file for 'python3-pytest-cov'
pkgname=python3-pytest-cov
version=7.1.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling"
depends="python3-pytest python3-coverage python3-pluggy"
checkdepends="$depends python3-fields python3-process-tests
python3-pytest-xdist python3-virtualenv"
short_desc="Pytest plugin for measuring coverage"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="MIT"
homepage="https://pytest-cov.readthedocs.io/en/latest/"
changelog="https://raw.githubusercontent.com/pytest-dev/pytest-cov/master/CHANGELOG.rst"
distfiles="${PYPI_SITE}/p/pytest-cov/pytest_cov-${version}.tar.gz"
checksum=30674f2b5f6351aa09702a9c8c364f6a01c27aae0c1366ae8016160d1efc56b2

do_check() {
# Running via PYTHONPATH breaks a few tests so we use a venv
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
python3 -m venv --system-site-packages --without-pip "${testdir}"

local testpy="${testdir}/bin/python3"
"${testpy}" -m installer dist/*.whl
# see: https://github.com/pytest-dev/pytest-cov/issues/517
PYTHONPATH="/${py3_sitelib}" PYTHONUSERBASE=/usr \
PATH="${testdir}/bin:${PATH}" "${testpy}" -m pytest -n ${XBPS_MAKEJOBS} \
${make_check_args} ${make_check_target}
}

post_install() {
vlicense LICENSE
}
26 changes: 21 additions & 5 deletions srcpkgs/python3-pytest-env/template
Original file line number Diff line number Diff line change
@@ -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 <tornaria@cmat.edu.uy>"
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
Expand Down
19 changes: 19 additions & 0 deletions srcpkgs/python3-pytest-env/template.orig
Original file line number Diff line number Diff line change
@@ -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 <tornaria@cmat.edu.uy>"
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
}
19 changes: 19 additions & 0 deletions srcpkgs/python3-python-discovery/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Template file for 'python3-python-discovery'
pkgname=python3-python-discovery
version=1.3.1
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 <tornaria@cmat.edu.uy>"
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=62f6db28064c9613e7ca76cb3f00c38c839a07c31c00dfe7ed0986493d2150a6

post_install() {
vlicense LICENSE
}
6 changes: 3 additions & 3 deletions srcpkgs/python3-tomli-w/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'python3-tomli-w'
pkgname=python3-tomli-w
version=1.0.0
revision=5
version=1.2.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-flit_core"
depends="python3"
Expand All @@ -12,7 +12,7 @@ license="MIT"
homepage="https://github.com/hukkin/tomli-w"
changelog="https://github.com/hukkin/tomli-w/raw/master/CHANGELOG.md"
distfiles="https://github.com/hukkin/tomli-w/archive/refs/tags/${version}.tar.gz"
checksum=4fe1fb4696899c01356ef4e028c975103abf62e5fa9472f31f1714100f1b065d
checksum=3b423098831faf35be897c5018c93e7c67eabf95d3359e1d5e97e5a4c0265ace

post_install() {
vlicense LICENSE
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/python3-trove-classifiers/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'python3-trove-classifiers'
pkgname=python3-trove-classifiers
version=2026.1.14.14
version=2026.5.22.10
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel python3-calver"
Expand All @@ -12,4 +12,4 @@ license="Apache-2.0"
homepage="https://github.com/pypa/trove-classifiers"
changelog="https://github.com/pypa/trove-classifiers/releases"
distfiles="${PYPI_SITE}/t/trove-classifiers/trove_classifiers-${version}.tar.gz"
checksum=00492545a1402b09d4858605ba190ea33243d361e2b01c9c296ce06b5c3325f3
checksum=5477e9974e91904fb2cfa4a7581ab6e2f30c2c38d847fd00ed866080748101d5
11 changes: 7 additions & 4 deletions srcpkgs/python3-virtualenv/template
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Template file for 'python3-virtualenv'
pkgname=python3-virtualenv
version=20.31.2
revision=2
version=21.3.3
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"
Expand All @@ -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=f5bda277e553b1c2b3c1a8debfc30496e1288cc93ce6b7b71b3280047e317328
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3"

post_install() {
Expand Down
Loading