Blame SPECS/python-versioneer.spec

cf581c
%global _description %{expand:
cf581c
Versioneer is a tool to automatically update version strings (in setup.py and
cf581c
the conventional 'from PROJECT import _version' pattern) by asking your
cf581c
version-control system about the current tree.}
cf581c
cf581c
Name:           python-versioneer
cf581c
Version:        0.29
cf581c
Release:        1%{?dist}
cf581c
Summary:        Easy VCS-based management of project version strings
cf581c
cf581c
License:        Unlicense
cf581c
URL:            https://github.com/warner/python-versioneer
cf581c
Source0:        %{pypi_source versioneer}
cf581c
cf581c
BuildArch:      noarch
cf581c
 
cf581c
BuildRequires:  python3-devel
cf581c
cf581c
%description %_description
cf581c
cf581c
%package -n     python3-versioneer
cf581c
Summary:        %{summary}
cf581c
cf581c
%description -n python3-versioneer %_description
cf581c
cf581c
%pyproject_extras_subpkg -n python3-versioneer toml
cf581c
cf581c
%prep
cf581c
%autosetup -n versioneer-%{version}
cf581c
cf581c
%generate_buildrequires
cf581c
%pyproject_buildrequires -x toml
cf581c
cf581c
%build
cf581c
%pyproject_wheel
cf581c
cf581c
%install
cf581c
%pyproject_install
cf581c
# Remove the unwanted shebang from the amalgamated versioneer.py file:
cf581c
sed -r -i '1{/^#!/d}' %{buildroot}%{python3_sitelib}/versioneer.py
cf581c
%pyproject_save_files -l versioneer
cf581c
cf581c
%check
cf581c
# Based on tox.ini; but we do not use tox, because tox.ini has too many linting
cf581c
# tests and other unwanted dependencies.
cf581c
%{python3} setup.py make_versioneer
cf581c
%{python3} -m unittest discover test
cf581c
# Some of these do not work; it is not clear that this indicates a real
cf581c
# problem. We would need at least “BuildRequires: git-core” if they did work.
cf581c
#{python3} test/git/test_git.py -v
cf581c
# These generally require python3dist(virtualenv) and network access.
cf581c
#{python3} test/git/test_invocations.py -v
cf581c
cf581c
%files -n python3-versioneer -f %{pyproject_files}
cf581c
%doc README.md
cf581c
%doc details.md
cf581c
%{_bindir}/versioneer
cf581c
cf581c
%changelog
cf581c
* Sat Jun 15 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.29-1
cf581c
- Update to 0.29 (close RHBZ#2221228)
cf581c
cf581c
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.28-6
cf581c
- Rebuilt for Python 3.13
cf581c
cf581c
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-5
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cf581c
cf581c
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-4
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
cf581c
cf581c
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-3
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
cf581c
cf581c
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.28-2
cf581c
- Rebuilt for Python 3.12
cf581c
cf581c
* Fri Mar 03 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.28-1
cf581c
- Update to 0.28
cf581c
- Port to pyproject-rpm-macros
cf581c
- Add metapackage for “toml” extra
cf581c
- License has changed from CC0-1.0 (spec file had Public Domain) to Unlicense
cf581c
- Remove obsolete posttrans scriptlet
cf581c
- Add details.md to documentation
cf581c
cf581c
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-5
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
cf581c
cf581c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-4
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
cf581c
cf581c
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.21-3
cf581c
- Rebuilt for Python 3.11
cf581c
cf581c
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-2
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
cf581c
cf581c
* Thu Dec 02 2021 Orion Poplawski <orion@nwra.com> - 0.21-1
cf581c
- Update to 0.21
cf581c
- Own egg-info directory and cleanup previous egg-info directory
cf581c
cf581c
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-9
cf581c
- Second attempt - Rebuilt for
cf581c
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
cf581c
cf581c
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.18-8
cf581c
- Rebuilt for Python 3.10
cf581c
cf581c
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-7
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
cf581c
cf581c
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-6
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cf581c
cf581c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.18-5
cf581c
- Rebuilt for Python 3.9
cf581c
cf581c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-4
cf581c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cf581c
cf581c
* Tue Dec 31 2019 Mukundan Ragavan <nonamedotc@gmail.com> - 0.18-3
cf581c
- rebuild
cf581c
cf581c
* Mon Dec 30 2019 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.18-2
cf581c
- Address changes from package review
cf581c
cf581c
* Sun Dec 22 2019 Mukundan Ragavan <nonamedotc@gmail.com> - 0.18-1
cf581c
- Initial package.