forked from pool/python-aiohttp-socks
- Disable the tests as they do not work without direct network
access OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp-socks?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
c126578ba4
commit
b9d41aa06a
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 12 15:00:30 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Disable the tests as they do not work without direct network
|
||||
access
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 11 11:25:03 UTC 2019 - Jiri Slaby <jslaby@suse.com>
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
|
||||
@@ -20,17 +22,19 @@
|
||||
Name: python-aiohttp_socks
|
||||
Version: 0.2.2
|
||||
Release: 0
|
||||
License: Apache-2.0
|
||||
Summary: SOCKS proxy connector for aiohttp
|
||||
Url: https://github.com/romis2012/aiohttp-socks
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/romis2012/aiohttp-socks
|
||||
Source: https://github.com/romis2012/aiohttp-socks/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module aiohttp >= 2.3.2}
|
||||
BuildRequires: %{python_module pytest}
|
||||
#BuildRequires: %{python_module aiohttp >= 2.3.2}
|
||||
#BuildRequires: %{python_module pytest-asyncio}
|
||||
#BuildRequires: %{python_module pytest}
|
||||
#BuildRequires: 3proxy
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-aiohttp >= 2.3.2
|
||||
@@ -44,6 +48,8 @@ SOCKS proxy connector for aiohttp
|
||||
%prep
|
||||
%setup -q -n aiohttp-socks-%{version}
|
||||
dos2unix README.md
|
||||
# remove bundled 3proxy
|
||||
rm -rf tests/3proxy
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -53,7 +59,8 @@ dos2unix README.md
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
# tests need access to the internet
|
||||
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
||||
Reference in New Issue
Block a user