diff --git a/python-tox.spec b/python-tox.spec index 8e38a355a7e3e0154196b304949abc714d28cbe1..a32dd3c80524eca14368401c272f87cf9a5d9d08 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-tox -Version: 4.27.0 +Version: 4.32.0 Release: 1 Summary: Virtualenv-based automation of test activities License: MIT URL: https://tox.readthedocs.io -Source0: %{pypi_source tox} +Source0: https://files.pythonhosted.org/packages/source/t/tox/tox-%{version}.tar.gz BuildArch: noarch Requires: python3-devel @@ -20,6 +21,8 @@ BuildRequires: python3-editables BuildRequires: python3-hatch-vcs BuildRequires: python3-hatchling +BuildRequires: python3-build + %description At its core tox povides a convenient way to run arbitrary commands in isolated environments to serve as a single entry point for build, test and release activities. @@ -39,6 +42,17 @@ At its core tox povides a convenient way to run arbitrary commands in isolated e %prep %autosetup -p1 -n tox-%{version} + +# Fix setuptools_scm version issue +if [ -f pyproject.toml ]; then + sed -i '/^version *=/d' pyproject.toml + sed -i '/^\[project\]/a version = "%{version}"' pyproject.toml + sed -i '/dynamic *= *\[.*version.*\]/d' pyproject.toml + if grep -q '^\[tool\.setuptools_scm\]' pyproject.toml; then + sed -i '/^\[tool\.setuptools_scm\]/,/^\[/ {/^write_to *=/d}' pyproject.toml + sed -i '/^\[tool\.setuptools_scm\]/a fallback_version = "%{version}"' pyproject.toml + fi +fi sed -i '/:: 3.14/d' pyproject.toml %build @@ -46,6 +60,12 @@ export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_build %install +export PYTHONDONTWRITEBYTECODE=1 + +# Clean __pycache__ directories and .pyc/.pyo files +find %{buildroot} -name '*.py[co]' -delete +find %{buildroot} -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_install %files -n python3-tox @@ -57,6 +77,9 @@ export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %doc README.md %changelog +* Thu Nov 27 2025 zhangzeyang0718 - 4.32.0-1 +- Update package to version 4.32.0 + * Fri Aug 08 2025 dongqi - 4.27.0-1 - Update to version 4.27.0 Feat: include free_threaded flag in result-json diff --git a/tox-4.27.0.tar.gz b/tox-4.27.0.tar.gz deleted file mode 100644 index e9c750197ec1023c60c27c91042f48723823350a..0000000000000000000000000000000000000000 Binary files a/tox-4.27.0.tar.gz and /dev/null differ diff --git a/tox-4.32.0.tar.gz b/tox-4.32.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a5c23e460c29720659f23471a23827e1e80cbd34 Binary files /dev/null and b/tox-4.32.0.tar.gz differ