We're currently encouraging an "arms race" with the FLAGS variables since
a recipe might want to set a specific flag for all variants but to do so,
+= won't work due to the assignment in the native/nativesdk class files. This
means recipes are using append.
Since the default variables are constructed out of TARGET_XXX variables and
we redefine these, there is no need to re-define the un-prefixed variables. If
we drop that, the += appends and similar work and recipes don't have to resort
to append.
Change the classes and cleanup a number of recipes to adapt to the change. This
change will result in some flags appearing to some native/nativesdk variants
but that is probably what was originally expected anyway.
(From OE-Core rev: a157b2f9d93428ca21265cc860a3b58b3698b3aa)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
https://github.com/python/importlib_metadata/issues/489
Upstream discussion revealed that:
- the issue was happening due to a bug in setuptools
- the bug was fixed in setuptools 63 (I confirmed this: empty dist-info
directories no longer seem to trigger any issues if the patch is dropped)
- the patch would obscure any further issues of this kind instead of exposing them
for easy fixing, so they suggest we drop it and report if anything else pops up
(From OE-Core rev: 1a4f25abf29b47949782641c68cc7d3e4136988a)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2to3 module was dropped as a dependency in setuptools 58.0
(From OE-Core rev: be952c7b370b064673331e40b4dc0836c9c0b153)
Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Because the Python package 'zipfile' was missing.
root@qemux86-64:~# python3 clTraceback (most recent call last):
File "/home/root/server.py", line 4, in <module>
from websockets.server import serve
File "/usr/lib/python3.12/site-packages/websockets/__init__.py", line 6, in <module>
from .version import version as __version__ # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/websockets/version.py", line 3, in <module>
import importlib.metadata
File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 8, in <module>
import zipfile
ModuleNotFoundError: No module named 'zipfile'
(From OE-Core rev: 2b70884c4c9406084c690b6090810494e91dca37)
Signed-off-by: Jan Vermaete <jan.vermaete@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Also add python3-json and python3-compression to RDEPENDS so that the
module imports correctly.
Changelog (https://github.com/testing-cabal/testtools/blob/master/NEWS):
- Treat methodName="runTest" similar to unittest.TestCase,
fixes compatibility with pytest 8.3. (Natanael Copa, #372)
- Format with ``ruff format``. (Jelmer Vernooij)
- Use ruff for linting. (Jelmer Vernooij)
- Fix compatibility with Python 3.12.1. (Matthew Treinish)
- Deprecate SkippedTest exception. (Stephen Finucane)
- Drop support for Python 3.7. (Jelmer Vernooij)
(From OE-Core rev: 8e68feaee2dcaa5c0d7fdb829fae47f7858dc07b)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog (https://hypothesis.readthedocs.io/en/latest/changes.html):
6.103.2 - 2024-06-14
- This patch improves our deduplication tracking across all strategies (pull request #4007). Hypothesis is now less likely to generate the same input twice.
6.103.1 - 2024-06-05
- Account for time spent in garbage collection during tests, to avoid flaky DeadlineExceeded errors as seen in issue #3975.
- Also fixes overcounting of stateful run times, a minor observability bug dating to version 6.98.9 (pull request #3890).
(From OE-Core rev: fe8a9ef0a6159633479b2e73ecb721cd8b854992)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This test is causing problems on the Autobuilder, so disable it for now.
(From OE-Core rev: ac000b00ec615b3e51dda8d819015d5e7110ed88)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
These tests are causing hangs on the Autobuilder, so disable them for
now.
(From OE-Core rev: 291f37808f1a2b2fdc8190696867f974994457c0)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
https://github.com/python/typing_extensions/blob/main/CHANGELOG.md
Release 4.12.2 (June 7, 2024)
* Add typing_extensions.get_annotations, a backport of
inspect.get_annotations that adds features specified by PEP 649. Patch
by Jelle Zijlstra.
* Fix regression in v4.12.0 where specialization of certain generics with
an overridden __eq__ method would raise errors. Patch by Jelle Zijlstra.
* Fix tests so they pass on 3.13.0b2
Release 4.12.1 (June 1, 2024)
* Preliminary changes for compatibility with the draft implementation of
PEP 649 in Python 3.14. Patch by Jelle Zijlstra.
* Fix regression in v4.12.0 where nested Annotated types would cause
TypeError to be raised if the nested Annotated type had unhashable
metadata. Patch by Alex Waygood.
Release 4.12.0 (May 23, 2024)
* This release is mostly the same as 4.12.0rc1 but fixes one more
longstanding bug.
* Fix incorrect behaviour of typing_extensions.ParamSpec on Python 3.8
and 3.9 that meant that isinstance(typing_extensions.ParamSpec("P"),
typing.TypeVar) would have a different result in some situations
depending on whether or not a profiling function had been set using
sys.setprofile. Patch by Alex Waygood.
https://github.com/python/typing_extensions/compare/4.11.0...4.12.2
(From OE-Core rev: ca85febfc97459f04c178a870e064170ba3f1e27)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
https://requests.readthedocs.io/en/latest/community/updates/#release-history
2.32.3 (2024-05-29)
* Bugfixes - Fixed bug breaking the ability to specify custom SSLContexts
in sub-classes of HTTPAdapter. (#6716)
* Fixed issue where Requests started failing to run on Python versions
compiled without the ssl module. (#6724)
2.32.2 (2024-05-21)
* Deprecations - To provide a more stable migration for custom HTTPAdapters
impacted by the CVE changes in 2.32.0, we’ve renamed _get_connection to a
new public API, get_connection_with_tls_context. Existing custom
HTTPAdapters will need to migrate their code to use this new API.
get_connection is considered deprecated in all versions of
Requests>=2.32.0.
* A minimal (2-line) example has been provided in the linked PR to ease
migration, but we strongly urge users to evaluate if their custom adapter
is subject to the same issue described in CVE-2024-35195. (#6710)
https://github.com/psf/requests/compare/v2.32.1...v2.32.3
(From OE-Core rev: 8ed50a4e723fce8fb4e51463f1316c0d500e5476)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
What's Changed
- pyupgrade/black/isort/flake8 → ruff by @DimitriPapadopoulos in #769
- Add support for Python 3.13 and drop EOL 3.7 by @hugovk in #783
- Bump the github-actions group with 4 updates by @dependabot in #782
- Fix typo in _parser docstring by @pradyunsg in #784
- Modernise type annotations using FA rules from ruff by @pradyunsg
in #785
- Document markers.default_environment() by @edgarrmondragon in #753
- Bump the github-actions group with 3 updates by @dependabot in #789
- Work around platform.python_version() returning non PEP 440 compliant
version for non-tagged CPython builds by @sbidoul in #802https://github.com/pypa/packaging/compare/24.0...24.1
(From OE-Core rev: fe1fac5e49308a64c1a1c90e0e892203514a9ba9)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
https://github.com/more-itertools/more-itertools/compare/v10.2.0...v10.3.0https://more-itertools.readthedocs.io/en/stable/versions.html
10.3.0
* New functions
- powerset_of_sets(), dft(), and idft() (thanks to rhettinger)
- join_mappings() (thanks to NeilGirdhar and rhettinger)
- doublestarmap() (thanks to Skeen, monk-time, DamianB-BitFlipper, and ergoithz)
- unique() (thanks to rhettinger)
* Changes to existing functions
- collapse(), chunked_even(), ichunked(), padded(), and windowed() were optimized and improved (thanks to james-wasson)
- totient() was optimized (thanks to rhettinger)
- roundrobin() was updated and improved (thanks to rhettinger)
- all_equal() now accepts a key parameter.
- The docs for value_chain() were improved (thanks to bjrtx)
- The type annotations for countable were improved (thanks to aidanholm)
* Other changes
- Unit tests were improved (thanks to haukex)
- Some documentation issues were fixed (thanks to bjrtx and DimitriPapadopoulos)
(From OE-Core rev: 3a15dc1e34625523f4aa87b9483bb6304682d0ab)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog (https://docs.pytest.org/en/stable/changelog.html):
Bug Fixes
- #12355: Fix possible catastrophic performance slowdown on a certain parametrization pattern involving many higher-scoped parameters.
- #12367: Fix a regression in pytest 8.2.0 where unittest class instances (a fresh one is created for each test) were not released promptly on test teardown but only on session teardown.
- #12381: Fix possible “Directory not empty” crashes arising from concurent cache dir (.pytest_cache) creation. Regressed in pytest 8.2.0.
Improved Documentation
- #12290: Updated Sphinx theme to use Furo instead of Flask, enabling Dark mode theme.
- #12356: Added a subsection to the documentation for debugging flaky tests to mention lack of thread safety in pytest as a possible source of flakyness.
- #12363: The documentation webpages now links to a canonical version to reduce outdated documentation in search engine results.
(From OE-Core rev: e875ac5114eaf6582dfba93802e2e0144c08aeaa)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Override S and PYPI_SRC_URI as upstream tarball is now "babel"
instead of "Babel", but we still need PYPI_PACKAGE to be "Babel"
for the upstream version check to work.
What's Changed
* Drop support for Python 3.7 (EOL since June 2023) by @akx in #1048
* Upgrade GitHub Actions by @cclauss in #1054
* Improve .po IO by @akx in #1068
* Use CLDR 44 by @akx in #1071
* Allow alternative space characters as group separator when parsing
numbers by @ronnix in #1007
* Include Unicode license in locale-data and in documentation by @akx
in #1074
* Encode support for the "fall back to short format" logic for time
delta formatting by @akx in #1075
* Prepare for 2.15.0 release by @akx in #1079https://github.com/python-babel/babel/compare/v2.14.0...v2.15.0
License-Update: copyright years
(From OE-Core rev: d00b0dad53992fc44ae2bfb6031932d678590ebc)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
License-Update: Change from PSF 2.x to ZPL-2.1, add CC0
A few notable things change with this upgrade:
- docutils now uses the Zope 2.1 license instead of PSF 2.1.1
- It now uses flit as the build backend
- The do_install append is no longer needed, as the rst2* endpoints
lacking the .py extension are included
- python3-pprint is added to RDEPENDS
Changelog: https://docutils.sourceforge.io/RELEASE-NOTES.html
(From OE-Core rev: 38f2293304fbd884d4653f7746bc1d5a9bac12c1)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
There is no python-cython recipe in core, so merge the .bb and .inc.
(From OE-Core rev: 6c2cf318289cbd8c2732f8f7ddaa6750ab0f0276)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This is the default value, so remove it.
(From OE-Core rev: e665d9831f9dc300def0955a1431ae110c8e8189)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The fix brought by this patch is already part of python 3.12.3
therefore drop it.
(From OE-Core rev: c029da173044c58169484ba220f7d8afeaec3063)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Refresh python3-maturin-crates.inc
1.6.0 - 2024-06-04
* Detect compiling from Linux gnu to Linux musl as cross compiling in #2010
* Add musllinux support to generate-ci in #2011
* Add uv support to develop command in #2015
* Add support for AIX target in #2030
* Remove rust-cpython support in #2044
* Add a global -v option in #2080
* Detect target based on interpreter for pep517 build-wheel in #2088
* Use base executable when possible in PEP 517 build in #2094https://github.com/pyo3/maturin/compare/v1.5.1...v1.6.0
(From OE-Core rev: 6bfea504150466bb04c47eee834bdcc2c622f26e)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
There are three releases since 6.102.4.
Changelog (https://hypothesis.readthedocs.io/en/latest/changes.html):
6.103.0 - 2024-05-29
- This release migrates the shrinker to our new internal representation,
called the IR layer (pull request #3962). This improves the shrinker’s
performance in the majority of cases. For example, on the Hypothesis
test suite, shrinking is a median of 1.38x faster.
- It is possible this release regresses performance while shrinking
certain strategies. If you encounter strategies which reliably shrink
more slowly than they used to (or shrink slowly at all), please open
an issue!
- You can read more about the IR layer at issue #3921.
6.102.6 - 2024-05-23
- This patch fixes one of our shrinking passes getting into a rare O(n)
case instead of O(log(n)).
6.102.5 - 2024-05-22
- This patch fixes some introspection errors new in Python 3.11.9 and
3.13.0b1, for the Ghostwriter and from_type().
(From OE-Core rev: fc78eccf808014e60bc56bd7966ab00e5a7f9a80)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Switch to use flit core since upstream changed.
They also changed the capitalisation under pypi.
The license didn't change but the file was renamed, probably as it wasn't
rst.
(From OE-Core rev: e352680528b18c3cdae26233bef7cddc2771d42d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Add RDEPENDS for ptest from tests/requirements.txt
* Tests take ~14 seconds, so add to PTEST_FAST
(From OE-Core rev: 6a1c551629defd3c241b30452496c580501dc781)
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
- Reverted the fix for #400 as it caused new issues when traversing
some bracketed situations.
(From OE-Core rev: 3f840ff8f3ff4b25077e788f94995c9982f667f2)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
===========
- The test_feed_parser test could fail if lxml_html_clean was not installed.
- The minimum CPU architecture for the Linux x86 binary wheels was set back to
"core2", without SSE 4.2.
- If libxml2 uses iconv, the compile time version is available as etree.ICONV_COMPILED_VERSION.
(From OE-Core rev: 322de0498af81fb8cd62be1d517d3269e7ed1f9b)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog:
============
- Improve best_match (and thereby error messages from jsonschema.validate) in
cases where there are multiple sibling errors from applying anyOf / allOf
- (Micro-)optimize equality checks when comparing for JSON Schema equality by
first checking for object identity, as == would.
(From OE-Core rev: 4143346f3975504895a568569927af9884797231)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Add .venv to the list of directories that cannot be traversed
* Output from the core Application utility now writes to stderr
(From OE-Core rev: 52a5247c9da9ff15c5e7e700c3a8e719d0ae763d)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Drop the following dependencies from RDEPENDS:
- python3-ndg-httpsclient
- python3-pyasn1
- python3-pyopenssl
Add a missing dependency into RDEPENDS:
- python3-certifi
Additional fix HOMEPAGE, the old link doesn't work
(From OE-Core rev: 44183892cdfeb8d0231b90bd6990dabe77da7473)
Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
PYPI_PACKAGE is updated since the upstream now uses an underscore in the
package name.
Changelog (https://pep621.readthedocs.io/en/stable/changelog.html#id1):
- Support specifying the metadata_version as 2.1, 2.2, or 2.3
- Always normalize extras following PEP 685
- Preserve the user-specified name style in the metadata. .canonical_name added to get the normalized name
- Require “version” in the dynamic table if unset (following PEP 621)
- Support extras using markers containing “or”
- Support empty extras
- Using .as_rfc822() no longer modifies the metadata object
- Fix email-author listing for names containing commas
- Separate core metadata keywords with commas, following the (modified) spec
- An error message reported project.license instead of project.readme
- Produce slightly cleaner tracebacks Fix a typo in an exception message
- Subclasses now type check correctly
- The build backend is now flit-core
(From OE-Core rev: 1379db3fd060a0407919fde680922045443913e0)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Changelog: https://docs.pytest.org/en/stable/changelog.html#pytest-8-2-1-2024-05-19
- Improvements
#12334: Support for Python 3.13 (beta1 at the time of writing).
- Bug Fixes
#12120: Fix PermissionError crashes arising from directories which are not
selected on the command-line.
#12191: Keyboard interrupts and system exits are now properly handled during
the test collection.
#12300: Fixed handling of ‘Function not implemented’ error under squashfuse_ll,
which is a different way to say that the mountpoint is read-only.
#12308: Fix a regression in pytest 8.2.0 where the permissions of
automatically-created .pytest_cache directories became rwx------ instead
of the expected rwxr-xr-x.
- Trivial/Internal Changes
#12333: pytest releases are now attested using the recent Artifact Attestation
<https://github.blog/2024-05-02-introducing-artifact-attestations-now-in-public-beta/>
support from GitHub, allowing users to verify the provenance of pytest’s
sdist and wheel artifacts.
(From OE-Core rev: c30dceacaa4c502bf52885e37ef049dc8839f211)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>