2018-07-30 00:19:55 +00:00
|
|
|
%bcond_without tests
|
2017-08-15 16:29:32 +00:00
|
|
|
|
2021-01-29 18:21:24 +00:00
|
|
|
Name: python-setuptools_scm
|
2022-12-18 14:10:54 +00:00
|
|
|
Version: 7.1.0
|
2023-05-30 23:59:50 +00:00
|
|
|
Release: 4%{?dist}
|
2019-08-15 15:10:36 +00:00
|
|
|
Summary: Blessed package to manage your versions by SCM tags
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2023-05-24 08:35:36 +00:00
|
|
|
# SPDX
|
2015-10-21 15:13:26 +00:00
|
|
|
License: MIT
|
2018-01-20 09:00:48 +00:00
|
|
|
URL: https://pypi.python.org/pypi/setuptools_scm
|
2021-01-29 18:21:24 +00:00
|
|
|
Source0: %{pypi_source setuptools_scm}
|
2015-10-21 15:13:26 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2017-08-15 16:29:32 +00:00
|
|
|
|
2021-01-29 18:21:24 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
2017-08-15 16:29:32 +00:00
|
|
|
%if %{with tests}
|
2015-10-21 15:13:26 +00:00
|
|
|
BuildRequires: git-core
|
2023-05-24 08:24:30 +00:00
|
|
|
# Don't pull mercurial into RHEL just to test this work with it
|
2023-06-01 07:58:21 +00:00
|
|
|
# Mercurial uses imp module which was removed in Python 3.12,
|
|
|
|
# we skip the tests until it is fixed in mercurial
|
|
|
|
%if 0%{?fedora} && 0%{?fedora} < 39
|
2015-10-21 15:13:26 +00:00
|
|
|
BuildRequires: mercurial
|
2017-08-15 16:29:32 +00:00
|
|
|
%endif
|
2023-05-24 08:35:06 +00:00
|
|
|
# Manually listed test dependencies from tox.ini, to avoid pulling tox into RHEL
|
2023-05-30 23:59:50 +00:00
|
|
|
# Omit virtualenv, used only for test_distlib_setuptools_works skipped below (requires internet)
|
2023-05-24 08:35:06 +00:00
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
BuildRequires: python3dist(setuptools) >= 45
|
2023-05-24 08:24:30 +00:00
|
|
|
%endif
|
2015-10-21 15:13:26 +00:00
|
|
|
|
|
|
|
%description
|
2021-01-29 18:21:24 +00:00
|
|
|
Setuptools_scm handles managing your Python package versions in SCM metadata.
|
2019-08-15 15:10:36 +00:00
|
|
|
It also handles file finders for the supported SCMs.
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2021-01-29 18:21:24 +00:00
|
|
|
|
|
|
|
%package -n python%{python3_pkgversion}-setuptools_scm
|
2018-01-20 08:58:24 +00:00
|
|
|
Summary: %{summary}
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2021-01-29 18:21:24 +00:00
|
|
|
%description -n python%{python3_pkgversion}-setuptools_scm
|
|
|
|
Setuptools_scm handles managing your Python package versions in SCM metadata.
|
2019-08-15 15:10:36 +00:00
|
|
|
It also handles file finders for the supported SCMs.
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2021-01-29 18:21:24 +00:00
|
|
|
|
|
|
|
%pyproject_extras_subpkg -n python%{python3_pkgversion}-setuptools_scm toml
|
|
|
|
|
2020-07-10 15:14:23 +00:00
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
%prep
|
2021-01-29 18:21:24 +00:00
|
|
|
%autosetup -p1 -n setuptools_scm-%{version}
|
|
|
|
# In case of a bootstrap loop between toml and setuptools_scm, do:
|
|
|
|
# rm pyproject.toml
|
|
|
|
# That way, toml is not fetched to parse the file.
|
|
|
|
# That only works assuming the backend in the file remains the default backend.
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
2023-05-24 08:35:06 +00:00
|
|
|
%pyproject_buildrequires
|
2021-01-29 18:21:24 +00:00
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
|
|
|
|
%build
|
2021-01-29 18:21:24 +00:00
|
|
|
%pyproject_wheel
|
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
|
|
|
|
%install
|
2021-01-29 18:21:24 +00:00
|
|
|
%pyproject_install
|
|
|
|
%pyproject_save_files setuptools_scm
|
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2017-08-15 16:29:32 +00:00
|
|
|
%if %{with tests}
|
2015-10-21 15:13:26 +00:00
|
|
|
%check
|
2021-03-22 14:10:45 +00:00
|
|
|
# Both of the skipped tests try to download from the internet
|
2023-05-24 08:35:06 +00:00
|
|
|
%pytest -v -k 'not test_pip_download and not test_distlib_setuptools_works'
|
2019-11-16 22:37:35 +00:00
|
|
|
%endif
|
2015-10-21 15:13:26 +00:00
|
|
|
|
2021-01-29 18:21:24 +00:00
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-setuptools_scm -f %{pyproject_files}
|
2018-07-30 00:19:55 +00:00
|
|
|
%license LICENSE
|
2018-01-20 09:00:57 +00:00
|
|
|
%doc README.rst
|
2021-01-29 18:21:24 +00:00
|
|
|
|
2017-04-10 15:35:04 +00:00
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
%changelog
|
2023-05-30 23:59:50 +00:00
|
|
|
* Tue May 30 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 7.1.0-4
|
|
|
|
- Drop unused python-virtualenv test dependency
|
|
|
|
|
2023-05-24 08:35:06 +00:00
|
|
|
* Wed May 24 2023 Miro Hrončok <mhroncok@redhat.com> - 7.1.0-3
|
|
|
|
- Drop the build dependency on tox
|
2023-05-24 08:35:36 +00:00
|
|
|
- Verify the license tag is SDPX
|
2023-05-24 08:35:06 +00:00
|
|
|
|
2023-01-20 17:14:30 +00:00
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 7.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
2022-12-18 14:10:54 +00:00
|
|
|
* Sat Dec 17 2022 Miro Hrončok <mhroncok@redhat.com> - 7.1.0-1
|
|
|
|
- Update to 7.1.0
|
|
|
|
Resolves: rhbz#2154548
|
|
|
|
|
2022-08-06 02:46:59 +00:00
|
|
|
* Sat Aug 06 2022 Charalampos Stratakis <cstratak@redhat.com> - 7.0.5-1
|
|
|
|
- Update to 7.0.5
|
|
|
|
Resolves: rhbz#2106018
|
|
|
|
|
2022-07-22 22:16:21 +00:00
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 7.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
2022-07-01 14:06:29 +00:00
|
|
|
* Fri Jul 01 2022 Charalampos Stratakis <cstratak@redhat.com> - 7.0.4-1
|
|
|
|
- Update to 7.0.4
|
|
|
|
Resolves: rhbz#2103092
|
|
|
|
|
2022-06-29 11:34:01 +00:00
|
|
|
* Wed Jun 29 2022 Lumír Balhar <lbalhar@redhat.com> - 7.0.3-1
|
|
|
|
- Update to 7.0.3
|
|
|
|
Resolves: rhbz#2099730
|
|
|
|
|
2022-06-14 07:04:54 +00:00
|
|
|
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 6.4.2-3
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
2022-06-13 14:13:20 +00:00
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 6.4.2-2
|
|
|
|
- Bootstrap for Python 3.11
|
|
|
|
|
2022-02-18 00:54:08 +00:00
|
|
|
* Thu Feb 17 2022 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 6.4.2-1
|
|
|
|
- Update to latest version (#2041601)
|
|
|
|
|
2022-01-21 15:27:47 +00:00
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.3.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-09-20 11:39:17 +00:00
|
|
|
* Mon Sep 20 2021 Lumír Balhar <lbalhar@redhat.com> - 6.3.2-1
|
|
|
|
- Update to 6.3.2
|
|
|
|
Resolves: rhbz#2001028
|
|
|
|
|
2021-07-23 09:26:42 +00:00
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-03 13:06:30 +00:00
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 6.0.1-3
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-06-02 08:34:10 +00:00
|
|
|
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 6.0.1-2
|
|
|
|
- Bootstrap for Python 3.10
|
|
|
|
|
2021-03-22 14:10:45 +00:00
|
|
|
* Mon Mar 22 2021 Charalampos Stratakis <cstratak@redhat.com> - 6.0.1-1
|
|
|
|
- Update to 6.0.1
|
|
|
|
- Fixes: rhbz#1939828
|
|
|
|
|
2021-01-29 17:56:12 +00:00
|
|
|
* Fri Jan 29 2021 Miro Hrončok <mhroncok@redhat.com> - 5.0.1-1
|
|
|
|
- Update to 5.0.1
|
|
|
|
- Fixes: rhbz#1907070
|
|
|
|
|
2021-01-27 13:21:11 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-02 10:37:35 +00:00
|
|
|
* Wed Dec 2 2020 Miro Hrončok <mhroncok@redhat.com> - 4.1.2-4
|
|
|
|
- BuildRequire six explicitly, for tests
|
|
|
|
|
2020-07-29 03:50:31 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-07-10 15:14:23 +00:00
|
|
|
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 4.1.2-2
|
|
|
|
- Add setuptools_scm[toml] subpackage
|
|
|
|
|
2020-06-01 14:23:53 +00:00
|
|
|
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 4.1.2-1
|
|
|
|
- Update to 4.1.2 (#1839497)
|
|
|
|
|
2020-05-23 07:26:00 +00:00
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.0-3
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
2020-05-22 01:48:11 +00:00
|
|
|
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.0-2
|
|
|
|
- Bootstrap for Python 3.9
|
|
|
|
|
2020-04-14 13:29:48 +00:00
|
|
|
* Tue Apr 14 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.0-1
|
|
|
|
- Update to 3.5.0 (#1792534)
|
|
|
|
|
2020-01-30 15:15:10 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-11-16 22:37:35 +00:00
|
|
|
* Sat Nov 16 2019 Orion Poplawski <orion@nwra.com> - 3.3.3-6
|
|
|
|
- Drop python2 for Fedora 32+/EPEL8+
|
|
|
|
|
2019-10-03 12:30:06 +00:00
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.3-5
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
2019-08-15 22:56:53 +00:00
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.3-4
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
2019-08-14 21:32:52 +00:00
|
|
|
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 3.3.3-3
|
|
|
|
- Bootstrap for Python 3.8
|
|
|
|
|
2019-07-26 16:14:38 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-05-12 15:20:20 +00:00
|
|
|
* Sun May 12 2019 Orion Poplawski <orion@nwra.com> - 3.3.3-1
|
|
|
|
- Update to 3.3.3
|
|
|
|
|
2019-05-11 19:46:40 +00:00
|
|
|
* Sat May 11 2019 Orion Poplawski <orion@nwra.com> - 3.3.1-1
|
|
|
|
- Update to 3.3.1
|
|
|
|
|
2019-05-07 23:38:04 +00:00
|
|
|
* Tue May 7 2019 Orion Poplawski <orion@nwra.com> - 3.3.0-1
|
|
|
|
- Update to 3.3.0
|
|
|
|
|
2019-02-03 03:09:00 +00:00
|
|
|
* Sat Feb 2 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.2.0-1
|
|
|
|
- Update to 3.2.0
|
|
|
|
|
2019-02-02 09:17:09 +00:00
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2018-08-10 12:04:25 +00:00
|
|
|
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.1.0-1
|
|
|
|
- Update to 3.1.0
|
|
|
|
|
2018-07-30 00:19:55 +00:00
|
|
|
* Sun Jul 29 2018 Orion Poplawski <orion@nwra.com> - 3.0.4-1
|
|
|
|
- Update to 3.0.4
|
|
|
|
- Re-enable tests
|
|
|
|
|
2018-07-14 02:03:16 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-16 00:35:01 +00:00
|
|
|
* Sat Jun 16 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-3
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-06-13 22:06:44 +00:00
|
|
|
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-2
|
|
|
|
- Bootstrap for Python 3.7
|
|
|
|
|
2018-05-14 12:01:29 +00:00
|
|
|
* Mon May 14 2018 Charalampos Stratakis <cstratak@redhat.com> - 2.1.0-1
|
|
|
|
- Update to 2.1.0
|
|
|
|
|
2018-02-09 10:48:26 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-20 09:00:57 +00:00
|
|
|
* Sat Jan 20 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.15.7-1
|
|
|
|
- Update to 1.15.7
|
|
|
|
|
2017-11-07 11:07:00 +00:00
|
|
|
* Tue Nov 07 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.15.6-7
|
|
|
|
- Use better Obsoletes for platform-python
|
|
|
|
|
2017-11-03 21:50:18 +00:00
|
|
|
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.15.6-6
|
|
|
|
- Remove platform-python subpackage
|
|
|
|
|
2017-08-24 12:37:34 +00:00
|
|
|
* Thu Aug 24 2017 Miro Hrončok <mhroncok@redhat.com> - 1.15.6-5
|
|
|
|
- Rebuilt for rhbz#1484607
|
|
|
|
|
2017-08-20 08:01:54 +00:00
|
|
|
* Sun Aug 20 2017 Tomas Orsava <torsava@redhat.com> - 1.15.6-4
|
|
|
|
- Re-enable tests to finish bootstrapping the platform-python stack
|
|
|
|
(https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-08-15 16:29:32 +00:00
|
|
|
* Thu Aug 10 2017 Lumír Balhar <lbalhar@redhat.com> - 1.15.6-3
|
|
|
|
- Add subpackage for platform-python
|
|
|
|
- Disable tests so platform-python stack can be bootstrapped
|
|
|
|
(https://fedoraproject.org/wiki/Changes/Platform_Python_Stack)
|
|
|
|
|
2017-07-27 11:48:33 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-16 02:17:38 +00:00
|
|
|
* Thu Jun 15 2017 Orion Poplawski <orion@cora.nwra.com> - 1.15.6-1
|
|
|
|
- Update to 1.15.6
|
|
|
|
|
2017-04-10 15:35:04 +00:00
|
|
|
* Mon Apr 10 2017 Orion Poplawski <orion@cora.nwra.com> - 1.15.5-1
|
|
|
|
- Update to 1.15.5
|
|
|
|
|
2017-02-11 10:27:43 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-02-04 21:51:20 +00:00
|
|
|
* Sat Feb 04 2017 Kevin Fenzi <kevin@scrye.com> - 1.15.0-1
|
|
|
|
- Update to 1.15.0
|
|
|
|
|
2016-12-13 14:23:31 +00:00
|
|
|
* Tue Dec 13 2016 Stratakis Charalampos <cstratak@redhat.com> - 1.13.0-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-10-10 15:55:18 +00:00
|
|
|
* Mon Oct 10 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.13.0-1
|
|
|
|
- Update to 1.13.0
|
|
|
|
|
2016-07-19 11:38:56 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10.1-4
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 20:55:22 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-04 21:22:05 +00:00
|
|
|
* Mon Jan 4 2016 Orion Poplawski <orion@cora.nwra.com> - 1.10.1-2
|
|
|
|
- No python2 package on EPEL (setuptools too old)
|
|
|
|
|
2015-12-17 17:29:04 +00:00
|
|
|
* Thu Dec 17 2015 Orion Poplawski <orion@cora.nwra.com> - 1.10.1-1
|
|
|
|
- Update to 1.10.1
|
|
|
|
|
2015-12-02 16:46:25 +00:00
|
|
|
* Wed Dec 2 2015 Orion Poplawski <orion@cora.nwra.com> - 1.9.0-1
|
|
|
|
- Update to 1.9.0
|
|
|
|
|
2015-11-10 17:22:58 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-10-21 15:13:26 +00:00
|
|
|
* Mon Oct 19 2015 Orion Poplawski <orion@cora.nwra.com> - 1.8.0-2
|
|
|
|
- Cleanup stray .pyc files from tests
|
|
|
|
|
|
|
|
* Sat Sep 19 2015 Orion Poplawski <orion@cora.nwra.com> - 1.8.0-1
|
|
|
|
- Update to 1.8.0
|
|
|
|
- Fix license tag
|
|
|
|
|
|
|
|
* Mon Sep 14 2015 Orion Poplawski <orion@cora.nwra.com> - 1.7.0-1
|
|
|
|
- Initial package
|