diff --git a/-2025.11.12.tar.gz b/-2025.11.12.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/2025.11.12.tar.gz b/2025.11.12.tar.gz deleted file mode 100644 index b437e5c364d482d53557dd89828448993fd0e24b..0000000000000000000000000000000000000000 Binary files a/2025.11.12.tar.gz and /dev/null differ diff --git a/python-nox.spec b/python-nox.spec index 4a55203ba5643003fee3a3b7e653132c4b9456f0..c83ded8fdc43972563ebdf877d0f53fd823e8ec6 100644 --- a/python-nox.spec +++ b/python-nox.spec @@ -1,3 +1,5 @@ +%global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-nox Version: 2025.11.12 Release: 1 @@ -5,9 +7,17 @@ Summary: Flexible test automation License: Apache-2.0 URL: https://github.com/wntrblm/nox -Source0: https://github.com/wntrblm/nox/archive/refs/tags/%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/-//-%{version}.tar.gz BuildArch: noarch +BuildRequires: python3-build +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + %description Nox is a command-line tool that automates testing in multiple Python environments, similar to tox. Unlike tox, Nox uses a standard Python @@ -17,12 +27,6 @@ file for configuration. Summary: Flexible test automation Provides: python-nox -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm -BuildRequires: python3-pip -BuildRequires: python3-wheel -BuildRequires: python3-hatchling %description -n python3-nox Nox is a command-line tool that automates testing in multiple Python @@ -32,6 +36,17 @@ file for configuration. %prep %autosetup -n nox-%{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 + # Use the newest tox 4 sed -i 's/"tox<4"/"tox"/' pyproject.toml @@ -39,9 +54,16 @@ sed -i 's/"tox<4"/"tox"/' pyproject.toml sed -i "s/2\.7/%python3_version/;s/27/%python3_version_nodots/" tests/test_tox_to_nox.py %build +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-nox @@ -53,6 +75,9 @@ sed -i "s/2\.7/%python3_version/;s/27/%python3_version_nodots/" tests/test_tox_t %{python3_sitelib}/nox/ %changelog +* Thu Nov 27 2025 zhangzeyang0718 - 2025.11.12-1 +- Update package to version 2025.11.12 + * Fri Nov 21 2025 wuzhaomin - 2025.11.12-1 - update package to 2025.11.12 - Fix(types): tighten type for venv_backend