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