a272d31ed3- update to 1.20.1: * Started raising a :exc:ValueError exception raised for corrupted IPv6 URL values. These fixes the issue where exception :exc:IndexError was leaking from the internal code because of not being handled and transformed into a user-facing error. The problem was happening under the following conditions: empty IPv6 URL, brackets in reverse order. -- by :user:MaelPic. Related issues and pull requests on GitHub: :issue:1512. * Updated to use Cython 3.1 universally across the build path -- by :user:lysnikolaou. Related issues and pull requests on GitHub: :issue:1514. * Made Cython line tracing opt-in via the with-cython-tracing build config setting -- by :user:bdraco. Previously, line tracing was enabled by default in :file:pyproject.toml, which caused build issues for some users and made wheels nearly twice as slow. Now line tracing is only enabled when explicitly requested via pip install . --config-setting=with- cython-tracing=true or by setting the YARL_CYTHON_TRACING environment variable. Related issues and pull requests on GitHub: :issue:1521.
devel
Dirk Mueller2025-06-11 21:30:02 +00:00
e1fa1b1a94- update to 1.20.0: * Implemented support for the free-threaded build of CPython 3.13 * Started building wheels for the free-threaded build of CPython 3.13 * Fixed entire name being re-encoded when using :py:meth:yarl.URL.with_suffix * Started building armv7l wheels for manylinux * GitHub Actions CI/CD is now configured to manage caching pip- ecosystem dependencies using re-actors/cache-python-deps -- an action by :user:webknjaz that takes into account ABI stability and the exact version of Python runtime. * Increased minimum propcache version to 0.2.1 to fix failing tests * Added all hidden folders to pytest's norecursedirs to prevent it from trying to collect tests there * Improved accuracy of type annotations * Improved performance of parsing query strings * Improved performance of the C unquoterDirk Mueller2025-04-27 08:57:09 +00:00
5335069d73- Delete pytest.ini * hypothesis added a warning about pytest not looking into its hidden working directory * warnings were treated as errors here * resolving both problems by returning to default pytest settingsDirk Mueller2025-02-26 20:53:42 +00:00
a9ae326466Accepting request 1228522 from devel:languages:pythonAna Guerrero2024-12-06 13:25:13 +00:00
971cd0450c- Update to 1.18.3: * Fixed uppercase ASCII hosts being rejected by :meth:URL.build() <yarl.URL.build> and :py:meth:~yarl.URL.with_host -- by :user:bdraco. * Improved performances of multiple path properties on cache miss -- by :user:bdraco. 1.18.0: * Added keep_query and keep_fragment flags in the :py:meth:yarl.URL.with_path, :py:meth:yarl.URL.with_name and :py:meth:yarl.URL.with_suffix methods, allowing users to optionally retain the query string and fragment in the resulting URL when replacing the path -- by :user:paul-nameless. 1.17.2: * Stopped implicitly allowing the use of Cython pre-release versions when building the distribution package -- by :user:ajsanchezsanz and :user:markgreene74. * Fixed a bug causing :attr:~yarl.URL.port to return the default port when the given port was zero -- by :user:gmacon. * Make error messages include details of incorrect type when port is not int in :py:meth:~yarl.URL.build. -- by :user:Cycloctane. * Stopped implicitly allowing the use of Cython pre-release versions when building the distribution package -- by :user:ajsanchezsanz and :user:markgreene74. * Improved performance of the :py:meth:~yarl.URL.joinpath method -- by :user:bdraco. 1.17.1: * Improved performance of many URL methods – by @bdraco. * Improved performance of passing a dict or str to extend_query() – by @bdraco. 1.17.0: * Added host_port_subcomponent which returns the RFC 3986 SectionDaniel Garcia2024-12-05 13:29:27 +00:00
4437fcb7c0Accepting request 1206598 from devel:languages:pythonAna Guerrero2024-10-11 15:01:22 +00:00
ebaddf8cbf- Update to 1.14.0 * Switched to using the :mod:propcache <propcache.api> package for property caching * Started testing with Hypothesis * Improved performance of :py:meth:~yarl.URL.is_default_port when no explicit port is set * Improved performance of converting :class:~yarl.URL to a string when no explicit port is set * Improved performance of the :py:meth:~yarl.URL.origin method * Improved performance of encoding hosts - from version 1.13.1 * Improved performance of calling :py:meth:~yarl.URL.build with `authority - from version 1.13.0 * Started rejecting ASCII hostnames with invalid characters. For host strings that look like authority strings, the exception message includes advice on what to do instead * Fixed IPv6 addresses missing brackets when the :class:~yarl.URL was converted to a string * Added :attr:~yarl.URL.host_subcomponent which returns the :rfc:3986#section-3.2.2` host subcomponent - Update BuildRequires from requirements/test.txtDirk Mueller2024-10-09 08:04:00 +00:00
fc1cf45974Accepting request 1203564 from devel:languages:pythonAna Guerrero2024-10-01 15:11:04 +00:00
997df0818a- update to 1.12.1 - update to 1.12.0 * Added attr ~yarl.URL.path_safe to be able to fetch the path without %2F and %25 decoded * Restore decoding %2F (/) in URL.path * Improved performance of processing pathsMarkéta Machová2024-09-25 12:26:12 +00:00
60463dc6a0- updaze to 1.9.7: * Removed support :rfc:3986#section-3.2.3 port normalization when the scheme is not one of http, https, wss, or ws * Joining URLs with empty segments has been changed to match :rfc:3986Matej Cepl2024-09-03 12:37:53 +00:00
db7f96ff94Accepting request 1157158 from devel:languages:pythonAna Guerrero2024-03-13 21:16:45 +00:00
15e5c1a90dAccepting request 1157151 from home:bmwiedemann:branches:devel:languages:pythonMatej Cepl2024-03-12 11:01:01 +00:00
919aad2a44Accepting request 1139325 from devel:languages:pythonAna Guerrero2024-01-17 21:14:54 +00:00
f8fe4b0773- restore reproducible.patch to not add a random tmp path (boo#1062303)Dirk Mueller2024-01-16 22:11:46 +00:00
c6e84c9e81Accepting request 1138583 from devel:languages:pythonAna Guerrero2024-01-15 21:11:17 +00:00
24beda1d74- update to 1.9.4: * Started raising :py:exc:TypeError when a string value is passed into :py:meth:~yarl.URL.build as the port argument -- by :user:commonism. Previously the empty string as port would create malformed URLs when rendered as string representations. * Started raising :py:exc:TypeError when a string value is passed into :py:meth:~yarl.URL.build as the port argument * Previously the empty string as port would create malformed URLs when rendered as string representations. (:issue:883) * The leading -- has been dropped from the PEP 517 in-tree build backend config setting names. --pure-python is now just pure-python -- by :user:webknjaz. The usage now looks as follows: $ python -m build \ --config-setting=pure- python=true \ --config-setting=with-cython-tracing=true (:issue:963) * The leading -- has been dropped from the PEP 517 in-tree build backend config setting names. --pure-python is now just pure-python -- by :user:webknjaz. * It is now possible to request line tracing in Cython builds using the with-cython-tracing PEP 517 config setting -- :user:webknjaz. This can be used in CI and development environment to measure coverage on Cython modules, but is not normally useful to the end-users or downstream packagers. Here's a usage example: $ python -Im pip install . --config- settings=with-cython-tracing=true For editable installs, this setting is on by default. Otherwise, it's off unless requested explicitly. (:issue:962) - drop reproducible.patch (upstream)Dirk Mueller2024-01-14 15:10:17 +00:00
6285fae21fAccepting request 1132690 from devel:languages:pythonAna Guerrero2023-12-13 17:34:10 +00:00
364bf4ff1fAccepting request 1132599 from home:bmwiedemann:branches:devel:languages:pythonMarkéta Machová2023-12-12 13:54:26 +00:00
11d57eeef3Accepting request 1129244 from devel:languages:pythonAna Guerrero2023-11-28 21:17:31 +00:00
8da29269b9`URL.__bytes__() and the encoding argument to * and :rfc:3986` * MyST is now integrated in Sphinx - drop 882-sq_bracket_in_URL_netloc.patch (upstream)Dirk Mueller2023-11-27 20:23:54 +00:00
3652d54a52- update to 1.9.3: * Stopped dropping trailing slashes in :py:meth:~yarl.URL.joinpath * Started accepting string subclasses in `__truediv__() operations (URL / segment) * Fixed the human representation of URLs with square brackets in usernames and passwords * Updated type hints to include URL.missing_port(), URL.__bytes__() * and the encoding argument to :py:meth:~yarl.URL.joinpath * Integrated Cython 3 to enable building *yarl* under Python 3.12 * Declared modern setuptools.build_meta as the :pep:517 build backend in :file:pyproject.toml explicitly * Converted most of the packaging setup into a declarative :file:setup.cfg * Declared Python 3.12 supported officially in the distribution package metadata * Contributor-facing changes * A regression test for no-host URLs was added per :issue:821 * and :rfc:3986 -- by :user:kenballus. (:issue:821, :issue:822) * MyST is now integrated in Sphinx -- by :user:webknjaz`. * Marked tests that fail on older Python patch releases * Skip a test under Python 3.11. - Update to version 1.8.2 - needs typing-extensions * Enforce building C Accelerated modules when installing from source tarball, use YARL_NO_EXTENSIONS environment variable for falling back to (slower)Dirk Mueller2023-11-27 20:22:56 +00:00
3e1a28cd35Accepting request 1096862 from devel:languages:pythonFabian Vogt2023-07-06 16:27:46 +00:00
bd2683a29f- Update to version 1.9.2 Fix regression with truediv and absolute URLs with empty paths causing the raw path to lack the leading /. ((#854)_)Daniel Garcia2023-04-26 07:35:30 +00:00
967e0364fb- Delete support-python-311.patch, not needed anymoreDaniel Garcia2023-04-25 11:42:05 +00:00
d57000bafbAccepting request 1082498 from system:homeautomation:home-assistant:unstableDaniel Garcia2023-04-25 11:40:43 +00:00
3310d0f37d- Refreshed support-python-311.patch: with fix of CVE-2023-24329 (bsc#1208471), the test test_url_parsing.TestScheme.test_not_a_scheme2 fails on all openSUSE/SLE Python interpreters.Matej Cepl2023-03-02 10:47:31 +00:00
de9a305ff4- update to 1.6.3: - No longer loose characters when decoding incorrect percent-sequences (like `%e2%82%f8). All non-decodable percent-sequences are now preserved. - Provide generated .c files in TarBall distribution. - human_repr() now always produces valid representation equivalent to the original URL (if the original URL is valid). - Fixed requoting a single percent followed by a percent-encoded character in the Cython implementation. - Fix ValueError when decoding % which is not followed by two hexadecimal digits. - Fix decoding % followed by a space and hexadecimal digit. - Fix annotation of with_query()/update_query() methods for key=[val1, val2]` case.Dirk Mueller2020-12-19 10:08:24 +00:00
0bcb020930Accepting request 823277 from home:bnavigator:branches:devel:languages:pythonMatej Cepl2020-07-29 10:41:46 +00:00
c733a89df7- update to 1.5.0 - fix tests * Convert host to lowercase on URL building. #386 * Allow using mod operator (%) for updating query string (an alias for update_query() method) * Allow use of sequences such as list and tuple in the values of a mapping such as dict to represent that a key has many values: url = URL("http://example.com") assert url.with_query({"a": [1, 2]}) == URL("http://example.com/?a=1&a=2") * Support URL.build() with scheme and path (creates a relative URL) * Cache slow IDNA encode/decode calls * Add @final / Final type hints * Support URL authority/raw_authority properties and authority argument of URL.build() method * Hide the library implementation details, make the exposed public list very clean * Fix tests with newer Python (3.7.6, 3.8.1 and 3.9.0+) * Fix a bug where query component, passed in a form of mapping or sequence, is unquoted in unexpected way * Hide Query and QueryVariable type aliases in __init__.pyi, now they are prefixed with underscore. * Keep ipv6 brackets after updating port/user/password.Ondřej Súkup2020-07-28 19:17:40 +00:00
a94bbd7019- update to 1.3.0 * Fix annotations for query parameter * An incoming query sequence can have int variables * Add URL.explicit_port property * Give a friendlier error when port cant be converted to int * bool(URL()) now returns False * Fix annotations for build * Fix annotations for cached_property * Accept str subclasses in URL constructor * Forbid inheritance, replace __init__ with __new__ * Support PEP-561 (provide type hinting marker)Ondřej Súkup2019-03-03 13:54:08 +00:00