diff --git a/cfscrape-1.9.7.tar.gz b/cfscrape-1.9.7.tar.gz deleted file mode 100644 index 7769d50..0000000 --- a/cfscrape-1.9.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa7fc172e6872f461377216ddd5a6d82c9650b9d10cac5aa0239998daf3e093a -size 8596 diff --git a/cloudflare-scrape-2.0.4.tar.gz b/cloudflare-scrape-2.0.4.tar.gz new file mode 100644 index 0000000..56cfb4d --- /dev/null +++ b/cloudflare-scrape-2.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:780c7f24c2aa311214a0a290af9662b7e69b4c9d6af8d4821a359cf2efb9aa31 +size 309396 diff --git a/python-cfscrape.changes b/python-cfscrape.changes index 9696164..a0806e4 100644 --- a/python-cfscrape.changes +++ b/python-cfscrape.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +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> + +- Update to 2.0.3 + * Support latest Cloudflare IUAM challenge + +------------------------------------------------------------------- +Sat May 11 10:19:59 UTC 2019 - Martin Herkt <9+suse@cirno.systems> + +- Update to 2.0.0 + * Support latest Cloudflare IUAM challenge + ------------------------------------------------------------------- Wed Mar 20 21:25:44 UTC 2019 - Martin Herkt <9+suse@cirno.systems> diff --git a/python-cfscrape.spec b/python-cfscrape.spec index 2bcbe84..5376f0f 100644 --- a/python-cfscrape.spec +++ b/python-cfscrape.spec @@ -18,15 +18,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cfscrape -Version: 1.9.7 +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