Accepting request 707190 from devel:languages:python:certbot
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/707190 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-acme?expand=0&rev=30
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 27 13:53:06 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Use the %pytest macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 18 23:13:13 UTC 2019 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -52,6 +52,9 @@ Requires: python-requests >= 2.6.0
|
||||
Requires: python-requests-toolbelt >= 0.3.0
|
||||
Requires: python-six >= 1.9.0
|
||||
BuildArch: noarch
|
||||
%if %{?suse_version} < 1500
|
||||
BuildRequires: %{python_module devel}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -67,15 +70,14 @@ Python library implementing the Automatic Certificate Management Environment
|
||||
%install
|
||||
%python_install
|
||||
# remove test-data
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/testdata
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/*_test.py*
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/**/*_test.py*
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitelib}/%{libname}/__pycache__/*_test*
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/%{libname}/testdata
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/%{libname}/*_test.py*
|
||||
rm -r %{buildroot}%{python3_sitelib}/%{libname}/__pycache__/*_test*
|
||||
# remove duplicates
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{libname}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version} acme/
|
||||
%pytest acme/
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
||||
Reference in New Issue
Block a user