15
0

- Switch to GitHub tarball, enable tests

- Update to 2.0.4
  * Detect captcha challenges, try harder to avoid them

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfscrape?expand=0&rev=16
This commit is contained in:
Mia Herkt
2019-05-15 11:08:10 +00:00
committed by Git OBS Bridge
parent e103042bfc
commit 2d1769b2c8
4 changed files with 21 additions and 7 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e0afdd8a6d5456c6c96555b9a71cdd41d3eaa3f14a8a032d64b700cb26ce98fd
size 11249

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:780c7f24c2aa311214a0a290af9662b7e69b4c9d6af8d4821a359cf2efb9aa31
size 309396

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 15 11:06:15 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
- Switch to GitHub tarball, enable tests
- Update to 2.0.4
* Detect captcha challenges, try harder to avoid them
-------------------------------------------------------------------
Sat May 11 12:28:56 UTC 2019 - Martin Herkt <9+suse@cirno.systems>

View File

@@ -18,15 +18,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cfscrape
Version: 2.0.3
Version: 2.0.4
Release: 0
Summary: Python module to bypass Cloudflare's anti-bot page
License: MIT
Group: Development/Languages/Python
URL: https://github.com/Anorov/cloudflare-scrape
Source: https://files.pythonhosted.org/packages/source/c/cfscrape/cfscrape-%{version}.tar.gz
Source: https://github.com/Anorov/cloudflare-scrape/archive/%{version}.tar.gz#/cloudflare-scrape-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module sure}
BuildRequires: fdupes
BuildRequires: nodejs
BuildRequires: python-rpm-macros
Requires: nodejs
Requires: python-requests
@@ -52,7 +57,7 @@ reCAPTCHA challenge, you're out of luck. Thankfully, the Javascript check page
is much more common.
%prep
%setup -q -n cfscrape-%{version}
%setup -q -n cloudflare-scrape-%{version}
%build
%python_build
@@ -61,7 +66,9 @@ is much more common.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# no tests even in git
%check
%python_exec setup.py develop --user
%python_exec -m pytest -v tests
%files %{python_files}
%license LICENSE