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 2ac5bdc024)
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 005974b1b3)
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 a7649c0827)
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 4a1e10c269)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Move python3-py-cpuinfo and python3-pytest-mock into the FAST ptests
list since their failing ptests are being disabled.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit d59f6c7529)
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 d61bc9351a)
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 349546c72f)
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 e0abbc5280)
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 ad4985d17b)
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 74e31e51ff)
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 fbb9d27079)
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 bc98fb0765)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
These are test images to build all recipes in layer. Renaming them makes
them refect what they are. Moreover we can rename the ptest images to
match OE-Core naming conventions for meta-oe/meta-perl/meta-python
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 0cb0180594)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
These were essentially duplicates of core-image-minimal, however
core-image-base is a better baseline for upper layers, so switched the
consumers of these images to use core-image-base
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e88b777cbe)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
We really do not need to define base images which already exist in core
layer, reuse them here.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit ef9d73fced)
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 e3f4956a23)
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 6defcd8716)
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 e594a78435)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Verified license is still BSD and updated the checksum for spacing change
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 55d0a7396e)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Update build to use hatchling
Add dependency for README generation
Verify the license terms and update the checksum
Note from upstream
=======
Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1.
If you're using Pydantic V1 you may want to look at the pydantic V1.10 Documentation or, 1.10.X-fixes git branch. Pydantic V2 also ships with the latest version of Pydantic V1 built in so that you can incrementally upgrade your code base and projects: from pydantic import v1 as pydantic_v1.
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 4570e4aa47)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Verified license remains the same and updated the checksum
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog
=========
Added:
Add hash capabilities to OUI (#225, amitmi704)
Fixed:
Backwards incompatible: Handle RFC 6164 IPv6 addresses (don't reserve first IP
address in point-to-point subnets) ($267, Damien Claisse)
Technically backwards incompatible: Fix for is_loopback behaviour – consider
IPNetwork('::1/128') to be loopback (#222, #223, niels)
Include tutorials in source distributions (#215, Louis Sautier)
Fix a documentation typo (#242, Wouter)
Fix print syntax in the documentation to be Python 3 compatible (#221, François Magimel)
Fix the Sphinx syntax in the documentation (#220, François Magimel)
Other:
Update the databases (#266, Jakub Stasiak)
Deprecate Python 3.6 (#263, Jakub Stasiak)
Eliminate unnecessary evals (#228, KOLANICH)
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
autoflake is a python library which removes unused imports and unused
variables from Python code. This recipe uses pypi as source:
https://pypi.org/project/autoflake/
Signed-off-by: Richard Leitner <dev@g0hl1n.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog
=========
Features
accesscontextmanager: Update the api f6f6113f42 (f77ee26)
advisorynotifications: Update the api 0025b75976 (f77ee26)
aiplatform: Update the api fbcd223a51 (f77ee26)
androidmanagement: Update the api 23cd554b04 (f77ee26)
appengine: Update the api 266598f553 (f77ee26)
artifactregistry: Update the api fe34c2221c (f77ee26)
assuredworkloads: Update the api 86eaf3ff8d (f77ee26)
beyondcorp: Update the api f27ec8e0ac (f77ee26)
blockchainnodeengine: Update the api bf425463c4 (f77ee26)
checks: Update the api 3d7acfbe70 (f77ee26)
chromemanagement: Update the api 5310a182fd (f77ee26)
cloudasset: Update the api d076b1bd45 (f77ee26)
cloudfunctions: Update the api c9d14b98bf (f77ee26)
cloudtasks: Update the api fe0bcad347 (f77ee26)
composer: Update the api 4d9e24a39c (f77ee26)
connectors: Update the api 7e2e3f0687 (f77ee26)
contactcenteraiplatform: Update the api ee747d28f2 (f77ee26)
datamigration: Update the api de2aa36bbf (f77ee26)
gkeonprem: Update the api f5890d0826 (f77ee26)
gmail: Update the api 40b0348d28 (f77ee26)
integrations: Update the api ddf9afb276 (f77ee26)
monitoring: Update the api f64be2390c (f77ee26)
mybusinessverifications: Update the api fde7890f06 (f77ee26)
networkconnectivity: Update the api 0d299134e8 (f77ee26)
networkmanagement: Update the api 47352429b1 (f77ee26)
notebooks: Update the api 66dd9d0e43 (f77ee26)
paymentsresellersubscription: Update the api d0fae461de (f77ee26)
places: Update the api db06598e16 (f77ee26)
run: Update the api d10dad24fe (f77ee26)
spanner: Update the api 531ba38b88 (f77ee26)
storage: Update the api 8610476ae8 (f77ee26)
transcoder: Update the api 7d2dfac9b7 (f77ee26)
vision: Update the api 4de577bc69 (f77ee26)
Bug Fixes
smartdevicemanagement: Update the api 03ffb2b7ad (f77ee26)
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Removed a patch the no longer appears to be needed and dropped support for python 3.7
Changelog
=========
0.21.1 (2023-09-08)
Changed
Changed dbus-fast dependency to include v2.x. Fixes#1412.
0.21.0 (2023-09-02)
Added
Added bleak.uuids.normalize_uuid_16() function.
Added bleak.uuids.normalize_uuid_32() function.
Added advertisement_data() async iterator method to BleakScanner. Merged #1361.
Added type hints for kwargs on BleakScanner class methods.
Added support for Python 3.12.
Changed
Improved error messages when failing to get services in WinRT backend.
Improved error messages with enum values in WinRT backend. Fixes#1284.
Scanner backends modified to allow multiple advertisement callbacks. Merged #1367.
Changed default handling of the response argument in BleakClient.write_gatt_char. Fixes#909.
Bleak recipe now automatically installs bleak from GitHub release in Kivy example.
Changed BlueZManager methods to raise BleakError when device is not in BlueZ.
Optimized BlueZ backend device watchers and condition callbacks to avoid linear searches.
Changed type hint for buffer protocol to collections.abc.Buffer.
Fixed
Fixed handling all access denied errors when enumerating characteristics on Windows. Fixes#1291.
Added support for 32bit UUIDs. Fixes#1314.
Fixed typing for BaseBleakScanner detection callback.
Fixed possible crash in _stopped_handler() in WinRT backend. Fixes#1330.
Reduced expensive logging in the BlueZ backend. Merged #1376.
Fixed race condition with "InterfaceRemoved" when getting services in BlueZ backend.
Fixed missing permissions and requirements in android Kivy example. Fixes#1184.
Fixed WinRT backend sometimes hanging forever when a device goes out of range during connection. Fixes#1359.
Removed
Dropped support for Python 3.7.
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Remove incorrect/deprevated URI for upstream version checking
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Remove outdated setup tools dependency and inherit
Changelog
=========
New
Support for Python 3.10 & 3.11
The HTML documentation uses the furo theme
Fixed
*of rules are skipped for None values (#582)
Validations of mappings would raise an exception when the field's rules were provided as reference to a registry item (#599)
Improved
Various minor improvements of the documentation
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Update the inherit is use the poetry
Changelog
=========
What's Changed
Make cycle_time serialisation more consistent for DBC files by @mon in #592
User f-strings instead of str.format() by @zariiii9003 in #599
Add prog option to argparse for help messages by @jack-champagne in #600
NOTE: This is a major release change with the following API changes:
The initial attribute of Signal objects now always holds the initial signal value as a scaled quantity, unifying its semantics with that of Signal.minimum and Signal.maximum. Previously, initial used raw values for databases loaded from DBC files, while using scaled ones for databases loaded from ARXML. (The loaders for other file formats do not currently set the initial attribute.)
The machinery for storing decimal numbers without rounding errors (*.decimal attributes) has been removed. In its place small rounding errors in load-store-load cycles are now accepted. To remediate this, the resulting database objects can now be compared approximately using the Database.is_similar() method.
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Remove the package override that is no longer needed
Update the inherits to use poetry
Changelog
=========
What's Changed
serialize: remove v1 and v2 formats by @woodruffw in #310
refactor: move the serialization implementation to method by @frostming in #313
feat: drop support of Python older than 3.7 by @frostming in #312
fix(typing): fix wrong types by @frostming in #314
workflows: add a release workflow by @woodruffw in #308
cachecontrol: 0.13.1 by @woodruffw in #315
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog
==================
New
Support Python 3.12.
Changed
absl-py no longer supports Python 3.6. It has reached end-of-life for more
than a year now.
(logging) logging.exception can now take exc_info as argument, with
default value True. Prior to this change setting exc_info would raise
KeyError, this change fixes this behaviour.
(testing) For Python 3.11+, the calls to absltest.TestCase.enter_context
are forwarded to unittest.TestCase.enterContext (when called via instance)
or unittest.TestCase.enterClassContext (when called via class) now. As a
result, on Python 3.11+, the private _cls_exit_stack attribute is not
defined on absltest.TestCase and _exit_stack attribute is not defined on
its instances.
(testing) absltest.TestCase.assertSameStructure() now uses the test case's
equality functions (registered with TestCase.addTypeEqualityFunc()) for
comparing leaves of the structure.
(testing) abslTest.TestCase.fail() now names its arguments
(self, msg=None, user_msg=None), and not (self, msg=None, prefix=None),
better reflecting the behavior and usage of the two message arguments.
DEFINE_enum, DEFINE_multi_enum, and EnumParser now raise errors when
enum_values is provided as a single string value. Additionally,
EnumParser.enum_values is now stored as a list copy of the provided
enum_values parameter.
(testing) Updated paramaterized.CoopTestCase() to use Python 3 metaclass
idioms. Most uses of this function continued working during the Python 3
migration still worked because a Python 2 compatibility __metaclass__
variables also existed. Now pure Python 3 base classes without backwards
compatibility will work as intended.
(testing) absltest.TestCase.assertSequenceStartsWith now explicitly fail
when passed a Mapping or Set object as the whole argument.
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
============
Improve AsyncServiceBrowser performance (#1273) (0c88ecf)
Speed up question and answer internals (#1272) (d24722b)
Small speed ups to ServiceBrowser (#1271) (22c433d)
Speed up ServiceBrowsers with a cython pxd (#1270) (4837876)
Improve performance of constructing outgoing queries (#1267) (00c439a)
Speed up responding to queries (#1266) (24a0a00)
Speed up answering questions (#1265) (37bfaf2)
Speed up ServiceInfo with a cython pxd (#1264) (7ca690a)
Speed up generating answers (#1262) (50a8f06)
Avoid calling get_running_loop when resolving ServiceInfo (#1261) (33a2714)
Significantly speed up writing outgoing dns records (#1260) (bf2f366)
Speed up writing outgoing dns records (#1259) (248655f)
Small speed up to writing outgoing dns records (#1258) (1ed6bd2)
Reduce IP Address parsing overhead in ServiceInfo (#1257) (83d0b7f)
Speed up decoding incoming packets (#1256) (ac081cf)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
Added support for custom total formulas to worksheet tables.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
-1 public Python file has been added: setuptools/tests/test_core_metadata.py.
-0 files included in typeshed's stubs have been deleted.
-7 files included in typeshed's stubs have been modified or renamed:
setuptools/__init__.py, setuptools/command/editable_wheel.py,
setuptools/command/egg_info.py, setuptools/depends.py, setuptools/dist.py,
setuptools/monkey.py, setuptools/namespaces.py.
-Total lines of Python code added: 1051.
-Total lines of Python code deleted: 682.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
=========
-Fixed Callable erroneously rejecting a callable that has the requested amount
of positional arguments but they have defaults
-Fixed a regression introduced in v4.1.4 where the elements of Literal got
quotes removed from them by the AST transformer
-Fixed AttributeError where the transformer removed elements from a PEP 604 union
-Fixed AttributeError: 'Subscript' object has no attribute 'slice' when
encountering an annotation with a subscript containing an ignored type
(imported within an if TYPE_CHECKING: block)
-Fixed type checking not being skipped when the target is a union (PEP 604 or
typing.Union) where one of the elements is an ignored type (shadowed by an
argument, variable assignment or an if TYPE_CHECKING import) (#394, #395)
-Fixed type checking of class instances created in __new__() in cases such as
enums where this method is already invoked before the class has finished initializing
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>