Update to 20.7 (#1902369)

This commit is contained in:
Lumir Balhar 2020-11-30 09:48:42 +01:00
commit 14817c6e2d
4 changed files with 12 additions and 60 deletions

View file

@ -7,18 +7,15 @@
%bcond_without tests
Name: python-%{pypi_name}
Version: 20.4
Release: 3%{?dist}
Version: 20.7
Release: 1%{?dist}
Summary: Core utilities for Python packages
License: BSD or ASL 2.0
URL: https://github.com/pypa/packaging
Source0: %{pypi_source}
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
# Remove dependency on six to make package lighter, backported from upstream
Patch1: %{url}/commit/39a70cce.patch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: pyproject-rpm-macros
@ -26,9 +23,8 @@ BuildRequires: pyproject-rpm-macros
# dependency on self.
# We also don't use the python3dist() form, in case packaging is ever used
# in the provides generator.
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-flit-core
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-wheel
# Upstream uses nox for testing, we specify the test deps manually as well.
%if %{with tests}
@ -70,6 +66,9 @@ Documentation for python-packaging
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# Do not use furo as HTML theme in docs
# furo is not available in Fedora
sed -i '/html_theme = "furo"/d' docs/conf.py
%build
%pyproject_wheel
@ -108,6 +107,9 @@ rm -rf html/_static/fonts/
%changelog
* Mon Nov 30 2020 Lumír Balhar <lbalhar@redhat.com> - 20.7-1
- Update to 20.7 (#1902369)
* Fri Oct 02 2020 Miro Hrončok <mhroncok@redhat.com> - 20.4-3
- Drop the dependency on six to make the package lighter