From dc1529ce3d485ee68d5a7fc6d90f3ed9c2b593d9757f9bd537fc4b37af9f559f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 30 Apr 2025 12:21:44 +0000 Subject: [PATCH] Accepting request 1273645 from home:fstegmeier:branches:devel:languages:python - Update to 0.15.0 * build: remove unused dependencies * add random * implement Client.headers_update() * add "random" to Literal Client.IMPERSONATE, Client.IMPERSONATE_OS * fix(impersonate): remove okhttp_3.9, 'okhttp_3.11` from "random" variants to bypass FAILURE_ON_CLIENT_HELLO - Update to 0.14.0 * feat: add response.stream() * fix(cookies): del Client.cookies setter and getter - Update to 0.13.0 * refactor(response): change reponse logic * remove: delete dead code * fix: cookies logic improve * feat: add chrome_133, firefox_135 * typing: improve * benchmark(async): add aiohttp - Update to 0.12.0 * refactor: move request functions to python * feat: add getter and setter to impersonate, impersonate_os * fix: remove the redirection of the Proxy-Authorization header * feat: add AsyncClient * tests: add AsyncClient tests * benchmark: add AsyncClient * ci(pytest): add pytest-asyncio * feat: python format + lint (ruff, mypy) - Update to 0.11.0 * Add impersonate_os, bump rquest to v2.0.3 - Update to 0.10.0 * Improve get_encoding_from_content * files: take file paths instead of contents; post files as streams OBS-URL: https://build.opensuse.org/request/show/1273645 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-primp?expand=0&rev=8 --- _service | 2 +- primp-0.15.0.tar.gz | 3 ++ primp-0.7.0.tar.gz | 3 -- python-primp.changes | 68 ++++++++++++++++++++++++++++++++++++++++++++ python-primp.spec | 4 +-- vendor.tar.xz | 4 +-- 6 files changed, 76 insertions(+), 8 deletions(-) create mode 100644 primp-0.15.0.tar.gz delete mode 100644 primp-0.7.0.tar.gz diff --git a/_service b/_service index 3bcf564..4c2ac9f 100644 --- a/_service +++ b/_service @@ -1,7 +1,7 @@ - primp-0.7.0 + primp-0.15.0 xz true diff --git a/primp-0.15.0.tar.gz b/primp-0.15.0.tar.gz new file mode 100644 index 0000000..45b2f07 --- /dev/null +++ b/primp-0.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1af8ea4b15f57571ff7fc5e282a82c5eb69bc695e19b8ddeeda324397965b30a +size 113022 diff --git a/primp-0.7.0.tar.gz b/primp-0.7.0.tar.gz deleted file mode 100644 index 23b863c..0000000 --- a/primp-0.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bef2c1f2e6386c4cc430758a5ddbaee7c5f730cea79e0c4fe69fd9b6a29d35d4 -size 78411 diff --git a/python-primp.changes b/python-primp.changes index a6ec55c..a4cc42c 100644 --- a/python-primp.changes +++ b/python-primp.changes @@ -1,4 +1,72 @@ ------------------------------------------------------------------- +Tue Apr 29 14:47:16 UTC 2025 - Felix Stegmeier + +- Update to 0.15.0 + * build: remove unused dependencies + * add random + * implement Client.headers_update() + * add "random" to Literal Client.IMPERSONATE, Client.IMPERSONATE_OS + * fix(impersonate): remove okhttp_3.9, 'okhttp_3.11` from "random" variants to bypass FAILURE_ON_CLIENT_HELLO + +- Update to 0.14.0 + * feat: add response.stream() + * fix(cookies): del Client.cookies setter and getter + +- Update to 0.13.0 + * refactor(response): change reponse logic + * remove: delete dead code + * fix: cookies logic improve + * feat: add chrome_133, firefox_135 + * typing: improve + * benchmark(async): add aiohttp + +- Update to 0.12.0 + * refactor: move request functions to python + * feat: add getter and setter to impersonate, impersonate_os + * fix: remove the redirection of the Proxy-Authorization header + * feat: add AsyncClient + * tests: add AsyncClient tests + * benchmark: add AsyncClient + * ci(pytest): add pytest-asyncio + * feat: python format + lint (ruff, mypy) + +- Update to 0.11.0 + * Add impersonate_os, bump rquest to v2.0.3 + +- Update to 0.10.0 + * Improve get_encoding_from_content + * files: take file paths instead of contents; post files as streams + * [stubs] create primp.pyi + * Enable proxy authentication during HTTP redirects + * Use tracing crate instead of log + * traits: small performance improvements + +- Update to 0.9.0 + * Build with webpki-root-certs + * Client: add https_only, http2_only parameters; remove http1, `http2` + * Add trait HeadersTraits + * Client: add [getter, setter] for auth, auth_bearer, params, headers + * IndexMap: change ahash to foldhash + * Client: auth + auth_bearer - remove unnecessary check + * Client: add [getter, setter] for proxy, timeout + * add trait CookiesTraits + * Client: add [getter, setter] for cookies + * utils: small performance improvements + * response: small performance improvements + * into() -> to_string() + * [bugfix] POST Multipart-Encoded Files + * optimize code + +- Update to 0.8.0 + * Use env variable CA_CERT_FILE to specify the CA Certificates + * CI: macos - rust-toolchain: stable; release - add permissions and step `Generate artifact attestation` + * CI: [linux] - add armv7 build + * Change content: PyBytes::new_bound PyBytes::new + * parameters data, json - replace PyDict with PyAny + * CI: macos - update runner (macos-12 to macos-13) + * add env var PRIMP_PROXY + * add env var PRIMP_CA_BUNDLE +------------------------------------------------------------------- Tue Nov 19 12:11:55 UTC 2024 - Dirk Müller - update to 0.7.0: diff --git a/python-primp.spec b/python-primp.spec index 3595bd0..ce4e5cb 100644 --- a/python-primp.spec +++ b/python-primp.spec @@ -1,7 +1,7 @@ # # spec file for package python-primp # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-primp -Version: 0.7.0 +Version: 0.15.0 Release: 0 Summary: HTTP client that can impersonate web browsers License: MIT diff --git a/vendor.tar.xz b/vendor.tar.xz index cdbcb62..346b4a2 100644 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:940c154d2b98c012b1ee7279e646b8e7f5be2d206c493c0042766cb56fbce526 -size 22493240 +oid sha256:4bcd32cedcd5889531095492d0bd40a5825063a6ca5e3b51a3bfbe7a19c2b8d8 +size 23669016