diff --git a/.fmf/version b/.fmf/version deleted file mode 100644 index d00491f..0000000 --- a/.fmf/version +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/.gitignore b/.gitignore index e377e37..bfab053 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1 @@ -/setuptools_scm-*.tar.gz -/setuptools_scm-*/ -/setuptools-scm-8.0.1.tar.gz -/setuptools-scm-8.0.2.tar.gz -/setuptools-scm-8.0.3.tar.gz -/setuptools-scm-8.0.4.tar.gz +SOURCES/setuptools_scm-8.3.1.tar.gz diff --git a/.python3.14-setuptools_scm.metadata b/.python3.14-setuptools_scm.metadata new file mode 100644 index 0000000..3f70ced --- /dev/null +++ b/.python3.14-setuptools_scm.metadata @@ -0,0 +1 @@ +e420e07b68b6e8bf25050deabdb1f08074c2b720 SOURCES/setuptools_scm-8.3.1.tar.gz diff --git a/changelog b/SPECS/python3.14-setuptools_scm.spec similarity index 73% rename from changelog rename to SPECS/python3.14-setuptools_scm.spec index 56bd6a2..0ad0619 100644 --- a/changelog +++ b/SPECS/python3.14-setuptools_scm.spec @@ -1,3 +1,97 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global python3_pkgversion 3.14 + +%bcond tests 0 + +Name: python%{python3_pkgversion}-setuptools_scm +Version: 8.3.1 +Release: %autorelease +Summary: Blessed package to manage your versions by SCM tags + +# SPDX +License: MIT +URL: https://github.com/pypa/setuptools_scm/ +Source: %{pypi_source setuptools_scm} + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +%if %{with tests} +BuildRequires: git-core +# Don't pull mercurial into RHEL just to test this work with it +%if %{undefined rhel} +BuildRequires: mercurial +%endif +%endif + +%description -n python%{python3_pkgversion}-setuptools_scm +Setuptools_scm handles managing your Python package versions in SCM metadata. +It also handles file finders for the supported SCMs. + + +# We don't package the [rich] extra on RHELs, to avoid pulling rich into the buildroot +%pyproject_extras_subpkg -n python%{python3_pkgversion}-setuptools_scm toml%{!?rhel:,rich} + + +%prep +%autosetup -p1 -n setuptools_scm-%{version} +%if %{defined rhel} +# Remove unnecessary test dependencies: +# rich is listed in both [rich] and [test] extras, so we need to be more careful +sed -Ei '/^test = \[/,/^\]/ { /"(rich|build|wheel)",/d }' pyproject.toml +# Don't blow up all of the tests by failing to report the installed version of build +sed -Ei '0,/VERSION_PKGS/{s/, "(build|wheel)"//g}' testing/conftest.py +%endif + + +%generate_buildrequires +# Note: We only pull in the [rich] extra when running tests. +# This is to make the new Python version bootstrapping simpler +# as setuptools_scm is an early package and rich is a late one. +%pyproject_buildrequires %{?with_tests:-x test %{!?rhel:-x rich}} + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files setuptools_scm + + +%if %{with tests} +%check +# test_pip_download tries to download from the internet +# test_pyproject_missing_setup_hook_works requires build +%pytest -v -k 'not test_pip_download%{?rhel: and not test_pyproject_missing_setup_hook_works}' +%endif + + +%files -n python%{python3_pkgversion}-setuptools_scm -f %{pyproject_files} +%doc README.md + + +%changelog +## START: Generated by rpmautospec +* Fri Nov 28 2025 Lukáš Zachar - 8.3.1-3 +- Adjust gating + +* Fri Nov 28 2025 Tomáš Hrnčiar - 8.3.1-2 +- Convert from Fedora for the Python 3.14 stack in RHEL + +* Fri Nov 28 2025 Tomáš Hrnčiar - 8.3.1-1 +- RHEL: Rename SPEC to python3.14-setuptools_scm.spec + * Tue Sep 26 2023 Lumír Balhar - 8.0.3-1 - Update to 8.0.3 (rhbz#2239825) @@ -223,3 +317,5 @@ Resolves: rhbz#2001028 * Mon Sep 14 2015 Orion Poplawski - 1.7.0-1 - Initial package + +## END: Generated by rpmautospec diff --git a/gating.yaml b/gating.yaml deleted file mode 100644 index 2c7ed80..0000000 --- a/gating.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- !Policy -product_versions: - - rhel-* -decision_context: osci_compose_gate -rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plan.fmf b/plan.fmf deleted file mode 100644 index 8dd1b50..0000000 --- a/plan.fmf +++ /dev/null @@ -1,14 +0,0 @@ -execute: - how: tmt - -environment: - pybasever: '3.14' - -discover: - - name: local repo - how: shell - tests: - - name: import_test - test: python${pybasever} -c "import setuptools_scm" - require: - - python${pybasever}-setuptools_scm diff --git a/python3.14-setuptools_scm.spec b/python3.14-setuptools_scm.spec deleted file mode 100644 index bd9760a..0000000 --- a/python3.14-setuptools_scm.spec +++ /dev/null @@ -1,75 +0,0 @@ -%global python3_pkgversion 3.14 - -%bcond tests 0 - -Name: python%{python3_pkgversion}-setuptools_scm -Version: 8.3.1 -Release: %autorelease -Summary: Blessed package to manage your versions by SCM tags - -# SPDX -License: MIT -URL: https://github.com/pypa/setuptools_scm/ -Source: %{pypi_source setuptools_scm} - -BuildArch: noarch - -BuildRequires: python%{python3_pkgversion}-devel -%if %{with tests} -BuildRequires: git-core -# Don't pull mercurial into RHEL just to test this work with it -%if %{undefined rhel} -BuildRequires: mercurial -%endif -%endif - -%description -n python%{python3_pkgversion}-setuptools_scm -Setuptools_scm handles managing your Python package versions in SCM metadata. -It also handles file finders for the supported SCMs. - - -# We don't package the [rich] extra on RHELs, to avoid pulling rich into the buildroot -%pyproject_extras_subpkg -n python%{python3_pkgversion}-setuptools_scm toml%{!?rhel:,rich} - - -%prep -%autosetup -p1 -n setuptools_scm-%{version} -%if %{defined rhel} -# Remove unnecessary test dependencies: -# rich is listed in both [rich] and [test] extras, so we need to be more careful -sed -Ei '/^test = \[/,/^\]/ { /"(rich|build|wheel)",/d }' pyproject.toml -# Don't blow up all of the tests by failing to report the installed version of build -sed -Ei '0,/VERSION_PKGS/{s/, "(build|wheel)"//g}' testing/conftest.py -%endif - - -%generate_buildrequires -# Note: We only pull in the [rich] extra when running tests. -# This is to make the new Python version bootstrapping simpler -# as setuptools_scm is an early package and rich is a late one. -%pyproject_buildrequires %{?with_tests:-x test %{!?rhel:-x rich}} - - -%build -%pyproject_wheel - - -%install -%pyproject_install -%pyproject_save_files setuptools_scm - - -%if %{with tests} -%check -# test_pip_download tries to download from the internet -# test_pyproject_missing_setup_hook_works requires build -%pytest -v -k 'not test_pip_download%{?rhel: and not test_pyproject_missing_setup_hook_works}' -%endif - - -%files -n python%{python3_pkgversion}-setuptools_scm -f %{pyproject_files} -%doc README.md - - -%changelog -%autochangelog diff --git a/sources b/sources deleted file mode 100644 index 618f2d6..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (setuptools_scm-8.3.1.tar.gz) = e924abf81c7ee466241c5d66c39b416c8b308f01df9e1498c55ad6ed9812fbf883d8bcafd6fdcdcb96c5ec42b868ae04088de1870ca09a650fa07eb3ea9901c8