From df055178f69ae92b54d9c286b0f0b9a24adcf7569a2be310da511614a98a9611 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 29 Feb 2024 12:33:39 +0000 Subject: [PATCH] - Skip broken tests with python 3.12 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudscraper?expand=0&rev=12 --- cloudscraper-1.2.58.tar.gz | 3 --- cloudscraper-1.2.68.tar.gz | 3 +++ python-cloudscraper.changes | 5 +++++ python-cloudscraper.spec | 15 ++++++++++----- 4 files changed, 18 insertions(+), 8 deletions(-) delete mode 100644 cloudscraper-1.2.58.tar.gz create mode 100644 cloudscraper-1.2.68.tar.gz diff --git a/cloudscraper-1.2.58.tar.gz b/cloudscraper-1.2.58.tar.gz deleted file mode 100644 index d31b4e2..0000000 --- a/cloudscraper-1.2.58.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9fc3562818e58f98d4e3ca874de5ff24d072c554b5a627ce9e38d394bb209c7f -size 110992 diff --git a/cloudscraper-1.2.68.tar.gz b/cloudscraper-1.2.68.tar.gz new file mode 100644 index 0000000..3e93865 --- /dev/null +++ b/cloudscraper-1.2.68.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91fa6241e035583108393e4cbe5eabe58f83e71e75f7b99ddd0c666ffd29f677 +size 111952 diff --git a/python-cloudscraper.changes b/python-cloudscraper.changes index 3ff996b..34e07d2 100644 --- a/python-cloudscraper.changes +++ b/python-cloudscraper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 29 12:33:16 UTC 2024 - Daniel Garcia + +- Skip broken tests with python 3.12 + ------------------------------------------------------------------- Fri Nov 12 01:28:36 UTC 2021 - Steve Kowalik diff --git a/python-cloudscraper.spec b/python-cloudscraper.spec index fdd435a..e893fe1 100644 --- a/python-cloudscraper.spec +++ b/python-cloudscraper.spec @@ -1,7 +1,7 @@ # # spec file for package python-cloudscraper # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,11 +16,10 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname cloudscraper %define skip_python2 1 Name: python-cloudscraper -Version: 1.2.58 +Version: 1.2.68 Release: 0 Summary: A Python module to bypass Cloudflare's anti-bot page License: MIT @@ -59,11 +58,17 @@ A Python module to bypass Cloudflare's anti-bot page. %check # Skip broken test -%pytest -k 'not test_getCookieString_challenge_js_challenge1_16_05_2020' +donttest="test_getCookieString_challenge_js_challenge1_16_05_2020" +donttest+=" or test_bad_interpreter_js_challenge1_16_05_2020" +donttest+=" or test_bad_solve_js_challenge1_16_05_2020" +donttest+=" or test_Captcha_challenge_12_12_2019" +donttest+=" or test_reCaptcha_providers" +%pytest -k "not ($donttest)" %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/cloudscraper +%{python_sitelib}/cloudscraper-%{version}*-info %changelog