3260b5
%global srcname distlib
3260b5
%bcond_without check
3260b5
3260b5
Name:       python-distlib
3260b5
Version:    0.3.8
3260b5
Release:    3%{?dist}
3260b5
Summary:    Low-level components of distutils2/packaging, augmented with higher-level APIs
3260b5
3260b5
License:    Python
3260b5
URL:        https://readthedocs.org/projects/distlib/
3260b5
Source0:    %pypi_source %{srcname} %{version}
3260b5
3260b5
# Update representation of interpreter in test for Python 3.13.0
3260b5
Patch:      https://github.com/pypa/distlib/commit/1c08845b05.patch
3260b5
3260b5
BuildArch:  noarch
3260b5
3260b5
BuildRequires:  python%{python3_pkgversion}-devel
3260b5
BuildRequires:  python%{python3_pkgversion}-pytest
3260b5
BuildRequires:  python%{python3_pkgversion}-test
3260b5
BuildRequires:  pyproject-rpm-macros
3260b5
3260b5
%description
3260b5
Distlib contains the implementations of the packaging PEPs and other low-level
3260b5
features which relate to packaging, distribution and deployment of Python
3260b5
software. If Distlib can be made genuinely useful, then it is possible for
3260b5
third-party packaging tools to transition to using it. Their developers and
3260b5
users then benefit from standardised implementation of low-level functions,
3260b5
time saved by not having to reinvent wheels, and improved interoperability
3260b5
between tools.
3260b5
3260b5
%package -n python%{python3_pkgversion}-%{srcname}
3260b5
Summary: Low-level components of distutils2/packaging, augmented with higher-level APIs
3260b5
3260b5
%description -n python%{python3_pkgversion}-%{srcname}
3260b5
Distlib contains the implementations of the packaging PEPs and other low-level
3260b5
features which relate to packaging, distribution and deployment of Python
3260b5
software. If Distlib can be made genuinely useful, then it is possible for
3260b5
third-party packaging tools to transition to using it. Their developers and
3260b5
users then benefit from standardised implementation of low-level functions,
3260b5
time saved by not having to reinvent wheels, and improved interoperability
3260b5
between tools.
3260b5
3260b5
%prep
3260b5
%autosetup -p1 -n %{srcname}-%{version}
3260b5
3260b5
rm distlib/*.exe
3260b5
3260b5
%generate_buildrequires
3260b5
%pyproject_buildrequires
3260b5
3260b5
%build
3260b5
%pyproject_wheel
3260b5
3260b5
%install
3260b5
%pyproject_install
3260b5
%pyproject_save_files %{srcname}
3260b5
3260b5
%if %{with check}
3260b5
%check
3260b5
export PYTHONHASHSEED=0
3260b5
# Some tests require network access
3260b5
export SKIP_ONLINE=1
3260b5
# test_sequencer_basic test fails due to relying
3260b5
# on the ordering of the input, hence disabling it.
3260b5
# https://github.com/pypa/distlib/issues/161
3260b5
%pytest -k "not test_sequencer_basic"
3260b5
%endif # with_tests
3260b5
3260b5
%files -n python%{python3_pkgversion}-%{srcname} -f %pyproject_files
3260b5
%doc README.rst
3260b5
3260b5
%changelog
3260b5
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-3
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
3260b5
3260b5
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.3.8-2
3260b5
- Rebuilt for Python 3.13
3260b5
3260b5
* Tue Feb 20 2024 Karolina Surma <ksurma@redhat.com> - 0.3.8-1
3260b5
- Update to 0.3.8
3260b5
Resolves: rhbz#2254141
3260b5
3260b5
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3260b5
3260b5
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-2
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3260b5
3260b5
* Mon Aug 28 2023 Charalampos Stratakis <cstratak@redhat.com> - 0.3.7-1
3260b5
- Update to 0.3.7
3260b5
Resolves: rhbz#2223302
3260b5
3260b5
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-4
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
3260b5
3260b5
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.3.6-3
3260b5
- Rebuilt for Python 3.12
3260b5
3260b5
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-2
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
3260b5
3260b5
* Thu Oct 27 2022 Lumír Balhar <lbalhar@redhat.com> - 0.3.6-1
3260b5
- Update to 0.3.6
3260b5
3260b5
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-5
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
3260b5
3260b5
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.3.4-4
3260b5
- Rebuilt for Python 3.11
3260b5
3260b5
* Wed Mar 23 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.3.4-3
3260b5
- Disable a flaky test
3260b5
Fixes: rhbz#2033200
3260b5
3260b5
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3260b5
3260b5
* Wed Dec 08 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.3.4-1
3260b5
- Update to 0.3.4 (#2030405)
3260b5
3260b5
* Thu Dec 02 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.3.3-1
3260b5
- Update to 0.3.3 (#2006679)
3260b5
3260b5
* Tue Aug 03 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.3.2-1
3260b5
- Update to 0.3.2 (#1965756)
3260b5
3260b5
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
3260b5
- Second attempt - Rebuilt for
3260b5
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
3260b5
3260b5
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 0.3.1-5
3260b5
- Rebuilt for Python 3.10
3260b5
3260b5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-4
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3260b5
3260b5
* Fri Sep 11 2020 Charalampos Stratakis <cstratak@redhat.com> - 0.3.1-3
3260b5
- Convert the package to pyproject macros
3260b5
3260b5
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3260b5
3260b5
* Wed Jul 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 0.3.1-1
3260b5
- Update to 0.3.1 (#1851644)
3260b5
3260b5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-2
3260b5
- Rebuilt for Python 3.9
3260b5
3260b5
* Thu Mar 19 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0.3.0-1
3260b5
- Update to 0.3.0
3260b5
3260b5
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-7
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3260b5
3260b5
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.7-6
3260b5
- Rebuilt for Python 3.8.0rc1 (#1748018)
3260b5
3260b5
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.7-5
3260b5
- Rebuilt for Python 3.8
3260b5
3260b5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-4
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3260b5
3260b5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-3
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3260b5
3260b5
* Tue Oct 02 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.2.7-2
3260b5
- Remove the python2 subpackage
3260b5
3260b5
* Mon Jul 30 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.7-1
3260b5
- Update to 0.2.7
3260b5
3260b5
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-9
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3260b5
3260b5
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-8
3260b5
- Rebuilt for Python 3.7
3260b5
3260b5
* Sat Apr 14 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-7
3260b5
- Fix the license tag
3260b5
3260b5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-6
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3260b5
3260b5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-5
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3260b5
3260b5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-4
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3260b5
3260b5
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-3
3260b5
- Rebuild for Python 3.6
3260b5
3260b5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-2
3260b5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
3260b5
3260b5
* Mon May 16 2016 Charalampos Stratakis <cstratak@redhat.com> 0.2.3-1
3260b5
- Update to 0.2.3
3260b5
- Add the license tag
3260b5
- Use modern python RPM macros
3260b5
- Provide a python 2 subpackage
3260b5
- Use the python provides macros
3260b5
- Changed to newest pypi URL format
3260b5
3260b5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3260b5
3260b5
* Mon Nov 23 2015 Matej Stuchlik <mstuchli@redhat.com> - 0.2.1-2
3260b5
- Update to 0.2.1
3260b5
3260b5
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-3
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
3260b5
3260b5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-2
3260b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3260b5
3260b5
* Thu Jun 05 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.1.9-1
3260b5
- Initial spec