commit 78ed694e13860210d93efe17fa8e127d9fb715d48a0050c1bb7f43168c1a2c65 Author: Matej Cepl Date: Thu Dec 24 12:59:05 2020 +0000 Accepting request 858496 from home:mcepl:work This is required for new generation of python-FanFicFare (I assume). OBS-URL: https://build.opensuse.org/request/show/858496 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudscraper?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cloudscraper-1.2.50.tar.gz b/cloudscraper-1.2.50.tar.gz new file mode 100644 index 0000000..d67b6fe --- /dev/null +++ b/cloudscraper-1.2.50.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:232325240b8c642d0e330b84d2e56a5ab193e8b27b77b75a299bd0008867c659 +size 91167 diff --git a/cloudscraper-tests.tar.xz b/cloudscraper-tests.tar.xz new file mode 100644 index 0000000..ce7b7d5 --- /dev/null +++ b/cloudscraper-tests.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:952d0dc4392a5f98f25731e16907c5e74fb27e9efa2162d916b118f0ce4caa40 +size 18460 diff --git a/python-cloudscraper.changes b/python-cloudscraper.changes new file mode 100644 index 0000000..8fc10a7 --- /dev/null +++ b/python-cloudscraper.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Dec 24 12:23:50 UTC 2020 - Matej Cepl + +- Initial packaging of cloudscraper 1.2.50. diff --git a/python-cloudscraper.spec b/python-cloudscraper.spec new file mode 100644 index 0000000..8d35f92 --- /dev/null +++ b/python-cloudscraper.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-cloudscraper +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-cloudscraper +Version: 1.2.50 +Release: 0 +Summary: A Python module to bypass Cloudflare's anti-bot page +License: MIT +URL: https://github.com/venomous/cloudscraper +Source0: https://files.pythonhosted.org/packages/source/c/cloudscraper/cloudscraper-%{version}.tar.gz +Source1: cloudscraper-tests.tar.xz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pyparsing >= 2.4.7} +BuildRequires: %{python_module requests >= 2.9.2} +BuildRequires: %{python_module requests-toolbelt >= 0.9.1} +BuildRequires: %{python_module responses} +BuildRequires: %{python_module Js2Py} +BuildRequires: nodejs10 +# /SECTION +BuildRequires: fdupes +Requires: python-pyparsing >= 2.4.7 +Requires: python-requests >= 2.9.2 +Requires: python-requests-toolbelt >= 0.9.1 +BuildArch: noarch +%python_subpackages + +%description +A Python module to bypass Cloudflare's anti-bot page. + +%prep +%autosetup -p1 -a 1 -n cloudscraper-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/* + +%changelog