forked from pool/python-jaraco.itertools
Accepting request 541582 from home:TheBlackCat:branches:devel:languages:python
- Properly handle namespace package structure. This guarantees the module is importable. OBS-URL: https://build.opensuse.org/request/show/541582 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jaraco.itertools?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 13 18:26:17 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Properly handle namespace package structure.
|
||||||
|
This guarantees the module is importable.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 4 18:21:32 UTC 2017 - aloisio@gmx.com
|
Tue Jul 4 18:21:32 UTC 2017 - aloisio@gmx.com
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_with test
|
||||||
Name: python-jaraco.itertools
|
Name: python-jaraco.itertools
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,20 +27,24 @@ Group: Development/Languages/Python
|
|||||||
Url: https://github.com/jaraco/jaraco.itertools
|
Url: https://github.com/jaraco/jaraco.itertools
|
||||||
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.itertools/jaraco.itertools-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.itertools/jaraco.itertools-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
|
BuildRequires: %{python_module jaraco.base}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{with test}
|
||||||
BuildRequires: %{python_module inflect}
|
BuildRequires: %{python_module inflect}
|
||||||
BuildRequires: %{python_module more-itertools}
|
BuildRequires: %{python_module more-itertools}
|
||||||
BuildRequires: %{python_module pytest-runner}
|
BuildRequires: %{python_module pytest-runner}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
BuildRequires: fdupes
|
%endif
|
||||||
BuildRequires: python-rpm-macros
|
Requires: python-jaraco.base
|
||||||
Requires: python-inflect
|
Requires: python-inflect
|
||||||
Requires: python-more-itertools
|
Requires: python-more-itertools
|
||||||
Requires: python-six
|
Requires: python-six
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -56,14 +61,21 @@ rm -rf jaraco.itertools.egg-info
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
# We aren't using the nspkg approach anymore
|
||||||
|
%{python_expand rm -r %{buildroot}%{$python_sitelib}/jaraco.itertools-%{version}-py*-nspkg.pth
|
||||||
|
%fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
}
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%python_exec setup.py test
|
%python_expand py.test-%{$python_bin_suffix}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc docs/*.rst README.rst CHANGES.rst
|
%doc docs/*.rst README.rst CHANGES.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/jaraco.itertools-%{version}-py*.egg-info
|
||||||
|
%{python_sitelib}/jaraco/itertools.py*
|
||||||
|
%pycache_only %{python_sitelib}/jaraco/__pycache__/itertools*.py*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user