|
|
|
@ -0,0 +1,173 @@
|
|
|
|
|
Name: python-deprecation
|
|
|
|
|
Version: 2.1.0
|
|
|
|
|
Release: 16%{?dist}
|
|
|
|
|
Summary: A library to handle automated deprecations
|
|
|
|
|
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
URL: https://deprecation.readthedocs.io/
|
|
|
|
|
Source: %{pypi_source deprecation}
|
|
|
|
|
|
|
|
|
|
# Make unittest optional for python3.5+
|
|
|
|
|
# https://github.com/briancurtin/deprecation/pull/57
|
|
|
|
|
# Rebased on the PyPI sdist, which lacks some of the files touched by the PR.
|
|
|
|
|
Patch: deprecation-2.1.0-unittest2.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
The deprecation library provides a deprecated decorator and a
|
|
|
|
|
fail_if_not_removed decorator for your tests. Together, the two enable the
|
|
|
|
|
automation of several things:
|
|
|
|
|
|
|
|
|
|
1. The docstring of a deprecated method gets the deprecation details appended
|
|
|
|
|
to the end of it. If you generate your API docs direct from your source,
|
|
|
|
|
you don’t need to worry about writing your own notification. You also don’t
|
|
|
|
|
need to worry about forgetting to write it. It’s done for you.
|
|
|
|
|
|
|
|
|
|
2. Rather than having code live on forever because you only deprecated it but
|
|
|
|
|
never actually moved on from it, you can have your tests tell you when it’s
|
|
|
|
|
time to remove the code. The @deprecated decorator can be told when it’s
|
|
|
|
|
time to entirely remove the code, which causes @fail_if_not_removed to raise
|
|
|
|
|
an AssertionError, causing either your unittest or py.test tests to fail.
|
|
|
|
|
|
|
|
|
|
See http://deprecation.readthedocs.io/ for the full documentation.}
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
%package -n python3-deprecation
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%description -n python3-deprecation %{_description}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n deprecation-%{version} -p1
|
|
|
|
|
# Remove pre-built HTML documentation to show that its pre-compiled and
|
|
|
|
|
# pre-minified JavaScript is not packaged.
|
|
|
|
|
rm -rv docs/_build/
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files -l deprecation
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{py3_test_envvars} %{python3} -m unittest discover -v
|
|
|
|
|
|
|
|
|
|
%files -n python3-deprecation -f %{pyproject_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Jan 05 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 2.1.0-16
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Thu Sep 12 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 2.1.0-16
|
|
|
|
|
- Use pyproject-rpm-macros and otherwise modernize/simplify packaging
|
|
|
|
|
- Run the tests
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 2.1.0-15
|
|
|
|
|
- convert license to SPDX
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.1.0-13
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2.1.0-9
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.1.0-6
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1.0-3
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Sep 08 2020 Yatin Karel <ykarel@redhat.com> - 2.1.0-1
|
|
|
|
|
- Update to 2.1.0
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-7
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-5
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.6-4
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.6-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Apr 01 2019 Javier Peña <jpena@redhat.com> - 2.0.6-2
|
|
|
|
|
- Removed python2 subpackage from Fedora (rhbz#1694620)
|
|
|
|
|
|
|
|
|
|
* Wed Feb 06 2019 Alfredo Moralejo <amoralej@redhat.com> - 2.0.6-1
|
|
|
|
|
- Update to 2.0.6.
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0-9
|
|
|
|
|
- Drop explicit locale setting
|
|
|
|
|
See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0-7
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0-5
|
|
|
|
|
- Update Python 2 dependency declarations to new packaging standards
|
|
|
|
|
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 28 2017 Javier Peña <jpena@redhat.com> - 1.0-3
|
|
|
|
|
- Fix description for subpackages
|
|
|
|
|
|
|
|
|
|
* Tue Feb 28 2017 Javier Peña <jpena@redhat.com> - 1.0-2
|
|
|
|
|
- Added license file from git repo
|
|
|
|
|
|
|
|
|
|
* Wed Feb 15 2017 Javier Peña <jpena@redhat.com> - 1.0-1
|
|
|
|
|
- Initial package.
|