Changelog:
============
-The coverage lcov command ignored the [report] exclude_lines and [report]
exclude_also settings (issue 1684).
-Fix error that SQLite will create journal files alongside the coverage.py
database files.
-On Python 3.12+, we now disable SQLite writing journal files, which should be
a little faster.
-The new 3.12 soft keyword type is properly bolded in HTML reports.
-Removed the "fullcoverage" feature used by CPython to measure the coverage of
early-imported standard library modules. CPython stopped using it in 2021,
and it stopped working completely in Python 3.13.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 2d312617f570a4d1fe0a572c00aba3dbdbfb737a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Changelog:
===========
Added
---------
-Allow to execute the CLI (e.g. normalizer) through python -m
charset_normalizer.cli or python -m charset_normalizer
-Support for 9 forgotten encoding that are supported by Python but unlisted
in encoding.aliases as they have no alias (#323)
Removed
---------
-Redundant utils.is_ascii function and unused function is_private_use_only
-charset_normalizer.assets is moved inside charset_normalizer.constant
Changed
----------
-Unicode code blocks in constants are updated using the latest v15.0.0
definition to improve detection
-Optional mypyc compilation upgraded to version 1.5.1 for Python >= 3.8
Fixed
--------
Unable to properly sort CharsetMatch when both chaos/noise and coherence were close due to an unreachable condition in __lt__ (#350)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 2ac5bdc0244af7b64c7f14c5a8bdeb115eedd850)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Changelog:
===========
-Fix SyncWrapperType and AsyncWrapperType
-Fixed issue where signal.connected_to would not disconnect the receiver if
an instance of BaseException was raised.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 005974b1b390fabbf92765a866947cff2ba7c126)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Changelog:
=============
* update cibuildwheel to 2.16.1 in order to provide cp312 wheels on PyPI
* improve error messages for masked assignment
* simplify test collection
* added 'pytest.ini' to allow running pytest with no additional arguments,
see #208
* 'util.sc_encode()': avoid writing empty blocks at end of compressed
stream, ie. skip encoding when total population count is reached
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit a7649c08279714165e8622d144d24cc1f5b56357)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Changelog:
=============
-Fixed false positive for inherit-non-class for generic Protocols.
-Fix a crash when an enum class which is also decorated with a
dataclasses.dataclass decorator is defined.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 4a1e10c269b078acad7c9589450aa7b63f3691d4)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Two introspection-related ptests are consistently failing. For now,
disable them so that a clean ptest run is available.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit d61bc9351aa6b754e83ed078f80c6a17271a23fd)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
arrow is a module that aims to provide a more user-friendly approach to
date and time in Python. It is required by git-pw which in turn is
required by patchtest, so add a recipe for it. The version is updated
1.2.2 -> 1.3.0 from the meta-patchtest layer.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 349546c72fb786b4b1dcb3e748a44986d235b99d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
There are a handful of CLI-related ptests that consistently fail with an
apparent permissions issue, but making the
.../site-packages/cpuinfo/cpuinfo.py script executable does not seem to
fix the problem. Skip these tests for now, and make sure that the right
/usr/bin/env line is present in py-cpuinfo's scripts on the image.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e0abbc52802d36cbd6e5c15c38d6649a822e6450)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
git-pw is a tool for integrating Git with Patchwork instances. Add it
to meta-python from meta-patchtest so that more workflows can take
advantage of it.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit ad4985d17bff8a0e8636220bf4d14c8e31ce35ca)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
python3-nacl is in the meta-virtualization layer.
Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 74e31e51ffbd52b8864fed4debe7711e3ef4d739)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
We use pylint for some native recipes in our build. Allow pylint
to be a native recipe, and likewise allow its runtime dependencies
to be native recipes.
Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit fbb9d270790a7d77926f6a34505399e4f9fc1f51)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
python3-boto3 and python3-botocore are provided by meta-aws.
They have ptests and upgraded as soon as there is an release.
Having them here also causing issues with yocto-check-layer
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15223
As discussed on IRC with Richard Purdie, those recipes should just be provided
by meta-aws. Agreed here https://github.com/openembedded/meta-openembedded/issues/744
by Khem.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit bc98fb0765ab32aa98c7752306a3e314b13e85b5)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This is to support ptest format
https://wiki.yoctoproject.org/wiki/Ptest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e3f4956a2371a57a42f68d53baf466874dfc4806)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
The upstream package hasn't been updated since 2020 and was meant to be a short term
bridge to remote pytz. Anoted in the usage documents, "This library is intended for
temporary usage only, and should allow you to drop your dependency on pytz while
also giving your users notice that eventually you will remove support for the
pytz-specific interface."
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 6defcd8716d506cc92a88cae39f5949372834bf7)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Consolidated inc into the recipe to remove a unneeded layer of indirection
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e594a784351916aa0a798d4007d00fb4d3bee165)
Signed-off-by: Armin Kuster <akuster808@gmail.com>