forked from pool/python-tldextract
- Run test suite
- Add tldextract-tests-offline.patch No internet connection on OBS build hosts; skip suffix list snapshot diff OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tldextract?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
73a3d5784b
commit
064d729ce0
@@ -26,6 +26,15 @@ Group: Development/Languages/Python
|
||||
Url: https://github.com/john-kurkowski/tldextract
|
||||
Source: https://files.pythonhosted.org/packages/source/t/tldextract/tldextract-%{version}.tar.gz
|
||||
Source1: %{name}-rpmlintrc
|
||||
# No internet connection on OBS build hosts; skip suffix list snapshot diff
|
||||
Patch: tldextract-tests-offline.patch
|
||||
### BEGIN test requirements
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests-file} >= 1.4
|
||||
BuildRequires: %{python_module requests} >= 2.1.0
|
||||
BuildRequires: %{python_module responses}
|
||||
### END test requirements
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -46,6 +55,7 @@ as well.
|
||||
|
||||
%prep
|
||||
%setup -q -n tldextract-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -54,6 +64,10 @@ as well.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py develop --user
|
||||
%python_exec -m pytest -v tests
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
|
Reference in New Issue
Block a user