forked from pool/python-freezegun
Accepting request 885988 from home:bnavigator:branches:devel:languages:python
- Skip python2 build. Not supported by upstream, a simple `import freezegun` already fails. Was not detected because the pyunittest runs 0 tests. OBS-URL: https://build.opensuse.org/request/show/885988 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=38
This commit is contained in:
parent
24374de273
commit
c1a8d418a3
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 16 12:47:48 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Skip python2 build. Not supported by upstream, a simple
|
||||||
|
`import freezegun` already fails. Was not detected because the
|
||||||
|
pyunittest runs 0 tests.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 28 22:52:22 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Thu Jan 28 22:52:22 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%bcond_without python2
|
%define skip_python2 1
|
||||||
Name: python-freezegun
|
Name: python-freezegun
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -34,9 +34,6 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: python
|
Requires: python
|
||||||
Requires: python-python-dateutil > 2.7
|
Requires: python-python-dateutil > 2.7
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with python2}
|
|
||||||
BuildRequires: python-mock
|
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -60,6 +57,7 @@ time by mocking the datetime module.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/freezegun
|
||||||
|
%{python_sitelib}/freezegun-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user