We no longer support python2. Drop PYTHON_PN and use python3 explicitly.
While at it: make indentation consistent
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
We no longer support python2. Drop PYTHON_PN and use python3 explicitly.
While at it: make indentation consistent.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Drop PYTHON_PN, improve coding-style and order the dependencies
alphabetically.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
=============
# Git issue 498: Conditional negative lookahead inside positive lookahead fails to match
Conditional node needed an additional member that points to the true branch.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
Stabilize windows tests. (#1567)
Bump mypy 1.3.0 (#1568)
Transport integrated in async clients. (#1541)
Client async corrections (due to 3.1.2) (#1565)
Server_async[udp], solve 3.1.1 problem. (#1564)
Remove ModbusTcpDiagClient. (#1560)
Remove old method from Python2/3 transition (#1559)
Switch to ruff's version of bandit (#1557)
Allow reading/writing address 0 in the simulator (#1552)
Remove references to "defer_start". (#1548)
Client more robust against faulty response. (#1547)
Fix missing package_data directives for simulator web (#1544)
Fix installation instructions (#1543)
Solve pytest timeout problem. (#1540)
DiagnosticStatus encode missing tuple check. (#1533)
test SparseDataStore. (#1532)
BinaryPayloadBuilder.to_string to BinaryPayloadBuilder.encode (#1526)
Adding flake8-pytest-style` to ruff (#1520)
Simplify version management. (#1522)
pylint and pre-commit autoupdate (#1519)
Add type hint (#1512)
Add action to lock issues/PR. (#1508)
New common transport layer. (#1492)
Solve serial close raise problem.
Remove old config values (#1503)
Document pymodbus.simulator. (#1502)
Refactor REPL server to reduce complexity (#1499)
Don't catch KeyboardInterrupt twice for REPL server (#1498)
Refactor REPL client to reduce complexity (#1489)
pymodbus.server: listen on ID 1 by default (#1496)
Clean framer/__init__.py (#1494)
Duplicate transactions in UDP. (#1486)
clean ProcessIncommingPacket. (#1491)
Enable pyupgrade (U) rules in ruff (#1484)
clean_workflow.yaml solve parameter problem.
Correct wrong import in test. (#1483)
Implement pyflakes-simplify (#1480)
Test case for UDP duplicate msg issue (#1470)
Test of write_coil. (#1479)
Test reuse of client object. (#1475)
Comment about addressing when shared=false (#1474)
Remove old aliases to OSError (#1473)
pymodbus.simulator fixes (#1463)
Fix wrong error message with pymodbus console (#1456)
update modbusrtuframer (#1435)
Server multidrop test.: (#1451)
mypy problem ModbusResponse.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
Fix#292: disuse HTTPResponse.strict
fix: double reading error on urllib3 2.0
Packaging the tests, or not
Add type annotations
Use Python's unittest mock
feat: remove compat module
tests: Support python 3.11
fix: use pytest native method name
Remove use of utcnow
Release 0.13.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
Small speed up to fetch dns addresses from ServiceInfo (#1176) (4deaa6e)
Speed up the service registry (#1174) (360ceb2)
Improve dns cache performance (#1172) (bb496a1)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
- Drop Python 3.8 compatability following NEP-29.
- Drop NumPy < 1.21 following NEP-29.
- Improved typing experience.
- Migrated fully to pyproject.toml.
- Migrated to ruff.
- In order to make static typing possible as required by mypy
and similar tools, the way to subclass the registry has been
changed.
- Allow non-quantity atol parameters for isclose and allclose.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
0001-lru-Use-PyCFunction-instead-of-PyCFunctionWithKeywor.patch
removed since it's included in 1.2.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
=============
Use latest skeleton
Update license list to latest ScanCode and SPDX 3.20
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
SPE plugin: Support new SDT-control metadata (#989) (c93536c)
Remove standard images from built package (#988) (6288f19)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
Fix
-------
Fix#60: return a correctly dedented docstring when long docstring are using the D212 or D213 format.
Other
--------
Add support for Python 3.11.
Drop support for Python older than 3.7 in build systems like pytest and tox, while ensuring the library remains production-compatible.
Update GitHub workflow to run in recent Python versions.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
=========
- Fix: reverted a change from 6.4.3 that helped Cython, but also increased the
size of data files when using dynamic contexts, as described in the now-fixed
issue 1586. The problem is now avoided due to a recent change (issue 1538).
- Wheels are now provided for CPython 3.12.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
* The type annotations for SyncToAsync and AsyncToSync have been changed to
more accurately reflect the kind of callables they return.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Add a recipe that builds snagrecover and snagflash. These tools are
useful for yocto-based distros used to control DUTs in board farms.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
- The logging info under windows made it look like it looked up the registry
info even when you had a TZ environment, but it doesn't actually do that.
- Improved the handling of loggers.
- Fixed a bug in the new assert_tz_offset method.
- Change how the system offset is calculated to deal with non-DST
temporary changes, such as Ramadan time in Morocco.
- Change the default to only warn when the timezone offset and system
offset disagree (but still not even warn if TZ is set)
- Add the assert_tz_offset() method to the top level for those who want
to explicitly check and fail.
- Removed the deprecation shim.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
New: Celery Beat exclude tasks option
New: Add support for ExceptionGroups
Prefer importlib.metadata over pkg_resources if available
Work with a copy of request, vars in the event
Pinned version of dependency that broke the build
Disable Django Cache spans by default.
New: Add loguru integration
Do not truncate request body if request_bodies is "always"
Fixed Celery headers for Beat auto-instrumentation
Add db.operation to Redis and MongoDB spans
Make sure we're importing redis the library
Add include_source_context option
Import Markup from markupsafe
Fix __qualname__ missing attribute in asyncio integration
Remove relay extension from AWS Layer
Add a note about pip freeze to the bug template
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
* Revert "Moves supported python runtimes from version 3.8 to 3.10"
* Moves supported python runtimes from version 3.8 to 3.10
* Update master for stable/2023.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
* Add support for new Excel dynamic functions added in 2023.
* Added support for adding a color to the 'invert_if_negative' chart option.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Bug Fixes
========
-#907: Avoid remote calls during startup as execnet by default does not ensure
remote affinity with the main thread and might accidentally schedule the
pytest worker into a non-main thread, which breaks numerous frameworks, for
example asyncio, anyio, PyQt/PySide, etc.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Bug Fixes
=========
Self signed jwt token should be string type
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
Migrate module to package.
Migrate documentation to Sphinx.
Improve types and formatting in docstrings.
Add type stubs.
License-Update: Copyright year updated to 2023.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Bugfixes:
===========
The ASCWriter now logs the correct channel for error frames (#1578, #1583).
Fix PCAN library detection (#1579, #1580).
On Windows, the first two periodic frames were sent without delay (#1590).
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
* On Python 3.10 and below, the version of the "typing_extensions" package
is now constrained to be at least version 4 (as we depend on functionality
in that version and above)
* Contextvars are now required for the implementation of Local as Python 3.6
is now no longer a supported version.
* sync_to_async and async_to_sync now pass-through
* Debug and Lifespan State extensions have resulted in a typing change for some
request and response types. This change should be backwards-compatible.
* "asgiref" frames will now be hidden in Django tracebacks by default.
* Raw performance and garbage collection improvements in Local, SyncToAsync,
and AsyncToSync.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
- Fix: the lcov command could raise an IndexError exception if a file is
translated to Python but then executed under its own name. Jinja2 does this
when rendering templates. Fixes issue 1553.
- Python 3.12 beta 1 now inlines comprehensions. Previously they were compiled
as invisible functions and coverage.py would warn you if they weren't
completely executed. This no longer happens under Python 3.12.
- Fix: the coverage debug sys command includes some environment variables in its
output. This could have included sensitive data. Those values are now hidden
with asterisks, closing issue 1628.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
Issues fixed
------------
antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance)
Go: exponentially bad/absymal performance as of ... (type:bug, target:go)
Go runtime panic (type:bug, target:go)
Improvements, features
------------------------
Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp)
Feature/fixembedding (type:improvement, target:go, comp:performance)
Provide Javascript port of TokenStreamRewriter (type:feature, target:javascript, target:typescript)
License-Update:
Version updated to 4.13.0
"Home-page" changed to "Project-URL: Homepage,"
"Eric Vergnaud" removed from Author
Author-email changed to "Eric Vergnaud <eric.vergnaud@wanadoo.fr>"
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
Fix incorrect context handling when a tag is used 2+ levels deeper than it was created.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This project uses gobject-introspection, so depend on the DISTRO_FEATURE.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This project has been untouched since 2018 and doesn't appear to have
any real dependents.
If something similar to pydbus is needed, then a maintained alternative
would be https://github.com/rhinstaller/dasbus (recipe available in
meta-anaconda).
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This project has been untouched upstream for six years and doesn't appear
to be considered "finished".
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Any user of pygobject needs to support gobject-introspection.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Any user of python-gstreamer (and so, pygobject) needs to support
gobject-introspection.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
There is one test in the pylint suite involving pickling non-pickleable
plugins that fails on target (but not host). Disable this test for
ptest runs.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This upgrade fixes most of the ptest errors that have been seen with
pylint, which were caused by a tomlkit issue. Changelog (see also
https://github.com/pylint-dev/pylint/releases/tag/v2.17.4):
False Positives Fixed
- Fix a false positive for bad-dunder-name when there is a
user-defined __index__ method. Closes#8613
Other Bug Fixes
- pyreverse: added escaping of vertical bar character in annotation
labels produced by DOT printer to ensure it is not treated as field
separator of record-based nodes. Closes#8603
- Fixed a crash when generating a configuration file:
tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key
caused by tomlkit v0.11.8. Closes#8632
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
Fixed the threading implementation of servers on Windows.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
#555: Improved progress output when collecting nodes to be less verbose.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
New Features
--------------
Add support for CLIENT NO-TOUCH (#2745)
Add support for CLUSTER MYSHARDID (#2704)
Add "address_remap" feature to RedisCluster (#2726)
Add WITHSCORES argument to ZREVRANK command (#2725)
Improve error output for master discovery (#2720)
Bug Fixes
----------
Fix XADD: allow non negative maxlen (#2739)
Fix create single connection client from url (#2752)
Optionally disable disconnects in read_response (#2695)
Fix SLOWLOG GET return value (#2732)
Fix potential race condition during disconnection (#2719)
Return response in case of KeyError (#2628)
Fix incorrect usage of once flag in async Sentinel (#2718)
Fix memory leak caused by hiredis in asyncio case (#2694)
Really do not use asyncio's timeout lib before 3.11.2 (#2699)
Maintenance
-----------
Clean PytestUnraisableExceptionWarning from asycio client (#2731)
Add RedisCluster.remap_host_port, Update tests for CWE 404 (#2706)
Updated AWS Elasticache IAM connection example (#2702)
Update CONTRIBUTING guidelines (#2736)
Fix ClusterCommandProtocol type (#2729)
Fix TOPK list example. (#2724)
Improving vector similarity search example (#2661)
Update example of Redisearch creating index (#2703)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
===========
Add classifier for Python 3.11
Add Algorithm.compute_hash_digest and use it to implement at_hash validation example
fix: use datetime.datetime.timestamp function to have a milliseconds
[pre-commit.ci] pre-commit autoupdate
Custom header configuration in jwk client
[pre-commit.ci] pre-commit autoupdate
[pre-commit.ci] pre-commit autoupdate
[pre-commit.ci] pre-commit autoupdate
Add PyJWT._{de,en}code_payload hooks
Add sort_headers parameter to api_jwt.encode
Make mypy configuration stricter and improve typing
Bump actions/stale from 6 to 7
[pre-commit.ci] pre-commit autoupdate
Add more types
Differentiate between two errors
Fix _validate_iat validation
Improve error messages when cryptography isn't installed
[pre-commit.ci] pre-commit autoupdate
[pre-commit.ci] pre-commit autoupdate
[pre-commit.ci] pre-commit autoupdate
Make Algorithm an abstract base class
docs: correct mistake in the changelog about verify param
[pre-commit.ci] pre-commit autoupdate
Bump actions/stale from 7 to 8
[pre-commit.ci] pre-commit autoupdate
Add a timeout for PyJWKClient requests
Add client connection error exception
Add complete types to take all allowed keys into account
[pre-commit.ci] pre-commit autoupdate
Build and upload PyPI package
Fix for issue #862 - ignore invalid keys in a jwks.
Add as_dict option to Algorithm.to_jwk
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
=========
Add 3.12 support
Add tox.ini to sdist
removing Windows versions
Better handling for UNIX support
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Software Identification (SWID) tags provide an extensible XML-based structure
to identify and describe individual software components, patches, and
installation bundles.
CoSWID supports a similar set of semantics and features as SWID tags, as well
as new semantics that allow us to describe additional types of information,
all in a more memory efficient format.
python3-uswid is used to generate the CoSWID data blob. For example, fwupd
project requires CoSWID data to be embedded into firmware binary to hold the
version information.
Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
=========
Removed Google App Engine support to allow using urllib3 2.0
Ensured the test suite no longer reaches the Internet
Added explicit support for Python 3.11
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
==========
Improve performance of ServiceBrowser outgoing query scheduler (#1170) (963d022)
Speed up parsing NSEC records (#1169) (06fa94d)
Speed up processing incoming data (#1167) (fbaaf7b)
Speed up decoding dns questions when processing incoming data (#1168) (f927190)
Re-release to rebuild failed wheels (#1165) (4986271)
Reduce cast calls in service browser (#1164) (c0d65ae)
Speed up incoming parser (#1163) (4626399)
Speed up incoming data parser (#1161) (cb4c3b2)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Changelog:
=========
New Features / Improvements
------------------------------
Add constants for potential model object fields (f3f73bc)
DIRECT_MESSAGE_EVENT_FIELDS
DM_EVENT_FIELDS
LIST_FIELDS
MEDIA_FIELDS
PLACE_FIELDS
POLL_FIELDS
PUBLIC_SPACE_FIELDS
SPACE_FIELDS
PUBLIC_TWEET_FIELDS
TWEET_FIELDS
USER_FIELDS
Add creator_id field for Space (a13726a)
Twitter API Backwards-Incompatible Changes
-------------------------------------------
Remove support for streaming with Twitter API v1.1 status/filter endpoint (c8a02eb)
Stream
AsyncStream
Remove support for deprecated Premium v1.1 Search APIs (a955f30)
API.search_30_day
API.search_full_archive
Misc
------
Overhaul Getting Started documentation (addb9f7)
Remove no longer valid Twitter API version badges in README (880e7bf)
Update and improve various documentation
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>