Subpackage python2-dateutil has been removed
This commit is contained in:
parent
81ff709e18
commit
e347b4e53a
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 2.8.0
|
Version: 2.8.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: Powerful extensions to the standard datetime module
|
Summary: Powerful extensions to the standard datetime module
|
||||||
|
|
||||||
@ -23,22 +23,6 @@ module available in Python.
|
|||||||
|
|
||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
%package -n python2-%{modname}
|
|
||||||
Summary: %summary
|
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
BuildRequires: python2-setuptools_scm
|
|
||||||
%if %{with tests} && 0%{?fedora} < 32
|
|
||||||
BuildRequires: python2-freezegun
|
|
||||||
BuildRequires: python2-pytest
|
|
||||||
BuildRequires: python2-six
|
|
||||||
%endif
|
|
||||||
Requires: tzdata
|
|
||||||
Requires: python2-six
|
|
||||||
%{?python_provide:%python_provide python2-%{modname}}
|
|
||||||
|
|
||||||
%description -n python2-%{modname} %_description
|
|
||||||
|
|
||||||
%package -n python3-%{modname}
|
%package -n python3-%{modname}
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -67,35 +51,16 @@ iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
|
|||||||
mv NEWS.new NEWS
|
mv NEWS.new NEWS
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
%py3_build
|
%py3_build
|
||||||
make -C docs html
|
make -C docs html
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%{__python3} -m pytest -W ignore::pytest.PytestUnknownMarkWarning
|
%{__python3} -m pytest -W ignore::pytest.PytestUnknownMarkWarning
|
||||||
|
|
||||||
%if 0%{?fedora} < 32
|
|
||||||
# Tests skipped on Python 2:
|
|
||||||
# dateutil/test/property: Tests using python2-hypothesis are skipped to break
|
|
||||||
# up dependency loops as the Python 2 stack is being removed form Fedora.
|
|
||||||
# gettz_badzone_unicode: "os.path.isfile" raises the wrong error on non-UTF-8
|
|
||||||
# locales. Probably not worth worrying about.
|
|
||||||
%{__python2} -m pytest \
|
|
||||||
--ignore dateutil/test/property \
|
|
||||||
-k 'not gettz_badzone_unicode'
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python2-%{modname}
|
|
||||||
%license LICENSE
|
|
||||||
%doc NEWS README.rst
|
|
||||||
%{python2_sitelib}/%{modname}/
|
|
||||||
%{python2_sitelib}/*.egg-info
|
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -108,6 +73,10 @@ make -C docs html
|
|||||||
%doc docs/_build/html
|
%doc docs/_build/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jan 16 2020 Miro Hrončok <mhroncok@redhat.com> - 1:2.8.0-7
|
||||||
|
- Subpackage python2-dateutil has been removed
|
||||||
|
See https://fedoraproject.org/wiki/Changes/RetirePython2
|
||||||
|
|
||||||
* Fri Sep 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.8.0-6
|
* Fri Sep 13 2019 Miro Hrončok <mhroncok@redhat.com> - 1:2.8.0-6
|
||||||
- Reduce Python 2 build dependencies on Fedora 32
|
- Reduce Python 2 build dependencies on Fedora 32
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user