Tags: iMicknl/python-sagemcom-api
Tags
Bump black from 24.10.0 to 25.11.0 (#440) Bumps [black](https://github.com/psf/black) from 24.10.0 to 25.11.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/psf/black/releases">black's releases</a>.</em></p> <blockquote> <h2>25.11.0</h2> <h3>Highlights</h3> <ul> <li>Enable base 3.14 support (<a href="https://redirect.github.com/psf/black/issues/4804">#4804</a>)</li> <li>Add support for the new Python 3.14 t-string syntax introduced by PEP 750 (<a href="https://redirect.github.com/psf/black/issues/4805">#4805</a>)</li> </ul> <h3>Stable style</h3> <ul> <li>Fix bug where comments between <code># fmt: off</code> and <code># fmt: on</code> were reformatted (<a href="https://redirect.github.com/psf/black/issues/4811">#4811</a>)</li> <li>Comments containing fmt directives now preserve their exact formatting instead of being normalized (<a href="https://redirect.github.com/psf/black/issues/4811">#4811</a>)</li> </ul> <h3>Preview style</h3> <ul> <li>Move <code>multiline_string_handling</code> from <code>--unstable</code> to <code>--preview</code> (<a href="https://redirect.github.com/psf/black/issues/4760">#4760</a>)</li> <li>Fix bug where module docstrings would be treated as normal strings if preceded by comments (<a href="https://redirect.github.com/psf/black/issues/4764">#4764</a>)</li> <li>Fix bug where python 3.12 generics syntax split line happens weirdly (<a href="https://redirect.github.com/psf/black/issues/4777">#4777</a>)</li> <li>Standardize type comments to form <code># type: <value></code> (<a href="https://redirect.github.com/psf/black/issues/4645">#4645</a>)</li> <li>Fix <code>fix_fmt_skip_in_one_liners</code> preview feature to respect <code># fmt: skip</code> for compound statements with semicolon-separated bodies (<a href="https://redirect.github.com/psf/black/issues/4800">#4800</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Add <code>no_cache</code> option to control caching behavior. (<a href="https://redirect.github.com/psf/black/issues/4803">#4803</a>)</li> </ul> <h3>Packaging</h3> <ul> <li>Releases now include arm64 Linux binaries (<a href="https://redirect.github.com/psf/black/issues/4773">#4773</a>)</li> </ul> <h3>Output</h3> <ul> <li>Write unchanged content to stdout when excluding formatting from stdin using pipes (<a href="https://redirect.github.com/psf/black/issues/4610">#4610</a>)</li> </ul> <h3><em>Blackd</em></h3> <ul> <li>Implemented BlackDClient. This simple python client allows to easily send formatting requests to blackd (<a href="https://redirect.github.com/psf/black/issues/4774">#4774</a>)</li> </ul> <h3>Integrations</h3> <ul> <li>Enable 3.14 base CI (<a href="https://redirect.github.com/psf/black/issues/4804">#4804</a>)</li> <li>Enhance GitHub Action <code>psf/black</code> to support the <code>required-version</code> major-version-only "stability" format when using pyproject.toml (<a href="https://redirect.github.com/psf/black/issues/4770">#4770</a>)</li> <li>Improve error message for vim plugin users. It now handles independently vim version</li> <li>Vim: Warn on unsupported Vim and Python versions independently (<a href="https://redirect.github.com/psf/black/issues/4772">#4772</a>)</li> <li>Vim: Print the import paths when importing black fails (<a href="https://redirect.github.com/psf/black/issues/4675">#4675</a>)</li> <li>Vim: Fix handling of virtualenvs that have a different Python version (<a href="https://redirect.github.com/psf/black/issues/4675">#4675</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psf/black/blob/main/CHANGES.md">black's changelog</a>.</em></p> <blockquote> <h2>25.11.0</h2> <h3>Highlights</h3> <ul> <li>Enable base 3.14 support (<a href="https://redirect.github.com/psf/black/issues/4804">#4804</a>)</li> <li>Add support for the new Python 3.14 t-string syntax introduced by PEP 750 (<a href="https://redirect.github.com/psf/black/issues/4805">#4805</a>)</li> </ul> <h3>Stable style</h3> <ul> <li>Fix bug where comments between <code># fmt: off</code> and <code># fmt: on</code> were reformatted (<a href="https://redirect.github.com/psf/black/issues/4811">#4811</a>)</li> <li>Comments containing fmt directives now preserve their exact formatting instead of being normalized (<a href="https://redirect.github.com/psf/black/issues/4811">#4811</a>)</li> </ul> <h3>Preview style</h3> <ul> <li>Move <code>multiline_string_handling</code> from <code>--unstable</code> to <code>--preview</code> (<a href="https://redirect.github.com/psf/black/issues/4760">#4760</a>)</li> <li>Fix bug where module docstrings would be treated as normal strings if preceded by comments (<a href="https://redirect.github.com/psf/black/issues/4764">#4764</a>)</li> <li>Fix bug where python 3.12 generics syntax split line happens weirdly (<a href="https://redirect.github.com/psf/black/issues/4777">#4777</a>)</li> <li>Standardize type comments to form <code># type: <value></code> (<a href="https://redirect.github.com/psf/black/issues/4645">#4645</a>)</li> <li>Fix <code>fix_fmt_skip_in_one_liners</code> preview feature to respect <code># fmt: skip</code> for compound statements with semicolon-separated bodies (<a href="https://redirect.github.com/psf/black/issues/4800">#4800</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Add <code>no_cache</code> option to control caching behavior. (<a href="https://redirect.github.com/psf/black/issues/4803">#4803</a>)</li> </ul> <h3>Packaging</h3> <ul> <li>Releases now include arm64 Linux binaries (<a href="https://redirect.github.com/psf/black/issues/4773">#4773</a>)</li> </ul> <h3>Output</h3> <ul> <li>Write unchanged content to stdout when excluding formatting from stdin using pipes (<a href="https://redirect.github.com/psf/black/issues/4610">#4610</a>)</li> </ul> <h3><em>Blackd</em></h3> <ul> <li>Implemented BlackDClient. This simple python client allows to easily send formatting requests to blackd (<a href="https://redirect.github.com/psf/black/issues/4774">#4774</a>)</li> </ul> <h3>Integrations</h3> <ul> <li>Enable 3.14 base CI (<a href="https://redirect.github.com/psf/black/issues/4804">#4804</a>)</li> <li>Enhance GitHub Action <code>psf/black</code> to support the <code>required-version</code> major-version-only "stability" format when using pyproject.toml (<a href="https://redirect.github.com/psf/black/issues/4770">#4770</a>)</li> <li>Improve error message for vim plugin users. It now handles independently vim version</li> <li>Vim: Warn on unsupported Vim and Python versions independently (<a href="https://redirect.github.com/psf/black/issues/4772">#4772</a>)</li> <li>Vim: Print the import paths when importing black fails (<a href="https://redirect.github.com/psf/black/issues/4675">#4675</a>)</li> <li>Vim: Fix handling of virtualenvs that have a different Python version (<a href="https://redirect.github.com/psf/black/issues/4675">#4675</a>)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psf/black/commit/05f0a8ce1f71fbb36e1e032d3b518c7b945089a2"><code>05f0a8c</code></a> Prepare for 25.11.0 release (<a href="https://redirect.github.com/psf/black/issues/4825">#4825</a>)</li> <li><a href="https://github.com/psf/black/commit/ae17c61310e44401ca55d17a9c01db1dc03940a6"><code>ae17c61</code></a> Fix tests on pytest 9 (<a href="https://redirect.github.com/psf/black/issues/4835">#4835</a>)</li> <li><a href="https://github.com/psf/black/commit/138745eca650aa59ab30458f7b1c026b66608a09"><code>138745e</code></a> Include Windows and Python 3.14 in PR wheel build matrix, fix Windows build (...</li> <li><a href="https://github.com/psf/black/commit/18170d6d8d9bdde97d4cd3568cfa8be434a09ff3"><code>18170d6</code></a> ci: add label for running all builds on a pull request (<a href="https://redirect.github.com/psf/black/issues/4833">#4833</a>)</li> <li><a href="https://github.com/psf/black/commit/0e793e3d7e0d12dbda1573fa1bb785b1f066ee7c"><code>0e793e3</code></a> fix windows wheels (<a href="https://redirect.github.com/psf/black/issues/4830">#4830</a>)</li> <li><a href="https://github.com/psf/black/commit/b71f36c9fda07930c83e22681e0ec08ddf5a3980"><code>b71f36c</code></a> Use build[uv] as cibuildwheel frontend (<a href="https://redirect.github.com/psf/black/issues/4831">#4831</a>)</li> <li><a href="https://github.com/psf/black/commit/a7bd594493bb5cb703beee877a2df40556b0baaa"><code>a7bd594</code></a> Skip free threaded builds in cibuildwheel (<a href="https://redirect.github.com/psf/black/issues/4829">#4829</a>)</li> <li><a href="https://github.com/psf/black/commit/862dee91fa1259ca2bc00f10538b52a4959bdbe8"><code>862dee9</code></a> Update cibuildwheel (<a href="https://redirect.github.com/psf/black/issues/4828">#4828</a>)</li> <li><a href="https://github.com/psf/black/commit/b5f354c56627640e0b853af51a51d9262bafa9f0"><code>b5f354c</code></a> build: restrict to pytest 9.0 due to breakage in custom pytest_configure (<a href="https://redirect.github.com/psf/black/issues/4827">#4827</a>)</li> <li><a href="https://github.com/psf/black/commit/f705197f57149b79ed83cccf22e4fed19b48a7bf"><code>f705197</code></a> t-string support (<a href="https://redirect.github.com/psf/black/issues/4805">#4805</a>)</li> <li>Additional commits viewable in <a href="https://github.com/psf/black/compare/24.10.0...25.11.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump mypy from 1.12.1 to 1.13.0 (#364) Bumps [mypy](https://github.com/python/mypy) from 1.12.1 to 1.13.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python/mypy/blob/master/CHANGELOG.md">mypy's changelog</a>.</em></p> <blockquote> <h1>Mypy Release Notes</h1> <h2>Next release</h2> <h2>Mypy 1.13</h2> <p>We’ve just uploaded mypy 1.13 to the Python Package Index (<a href="https://pypi.org/project/mypy/">PyPI</a>). Mypy is a static type checker for Python. You can install it as follows:</p> <pre><code>python3 -m pip install -U mypy </code></pre> <p>You can read the full documentation for this release on <a href="http://mypy.readthedocs.io">Read the Docs</a>.</p> <p>Note that unlike typical releases, Mypy 1.13 does not have any changes to type checking semantics from 1.12.1.</p> <h3>Improved performance</h3> <p>Mypy 1.13 contains several performance improvements. Users can expect mypy to be 5-20% faster. In environments with long search paths (such as environments using many editable installs), mypy can be significantly faster, e.g. 2.2x faster in the use case targeted by these improvements.</p> <p>Mypy 1.13 allows use of the <code>orjson</code> library for handling the cache instead of the stdlib <code>json</code>, for improved performance. You can ensure the presence of <code>orjson</code> using the <code>faster-cache</code> extra:</p> <pre><code>python3 -m pip install -U mypy[faster-cache] </code></pre> <p>Mypy may depend on <code>orjson</code> by default in the future.</p> <p>These improvements were contributed by Shantanu.</p> <p>List of changes:</p> <ul> <li>Significantly speed up file handling error paths (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17920">17920</a>)</li> <li>Use fast path in modulefinder more often (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17950">17950</a>)</li> <li>Let mypyc optimise os.path.join (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17949">17949</a>)</li> <li>Make is_sub_path faster (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17962">17962</a>)</li> <li>Speed up stubs suggestions (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17965">17965</a>)</li> <li>Use sha1 for hashing (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17953">17953</a>)</li> <li>Use orjson instead of json, when available (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17955">17955</a>)</li> <li>Add faster-cache extra, test in CI (Shantanu, PR <a href="https://redirect.github.com/python/mypy/pull/17978">17978</a>)</li> </ul> <h3>Acknowledgements</h3> <p>Thanks to all mypy contributors who contributed to this release:</p> <ul> <li>Shantanu Jain</li> <li>Jukka Lehtosalo</li> </ul> <h2>Mypy 1.12</h2> <p>We’ve just uploaded mypy 1.12 to the Python Package Index (<a href="https://pypi.org/project/mypy/">PyPI</a>). Mypy is a static type</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/eb310343be0399ea6755fabc259755ce1f6711e8"><code>eb31034</code></a> Bump version to 1.13.0</li> <li><a href="https://github.com/python/mypy/commit/2eeb5880184970ae1c0b20c0e06855b6d311bc19"><code>2eeb588</code></a> Update changelog for 1.12.1 (<a href="https://redirect.github.com/python/mypy/issues/17999">#17999</a>)</li> <li><a href="https://github.com/python/mypy/commit/bc0386b7f96aa131cbf345698a22a9d4b79e9cb4"><code>bc0386b</code></a> Changelog for 1.13 (<a href="https://redirect.github.com/python/mypy/issues/18000">#18000</a>)</li> <li><a href="https://github.com/python/mypy/commit/5c4d2db7009fa9035b8b3fcffe25182aaa4dc846"><code>5c4d2db</code></a> Add faster-cache extra, test in CI (<a href="https://redirect.github.com/python/mypy/issues/17978">#17978</a>)</li> <li><a href="https://github.com/python/mypy/commit/854ad189ab7c4f487950ad34e142fd327dce3227"><code>854ad18</code></a> Make is_sub_path faster (<a href="https://redirect.github.com/python/mypy/issues/17962">#17962</a>)</li> <li><a href="https://github.com/python/mypy/commit/50aa4ca8425d0bb668d514b8ee5c6aeacb605b27"><code>50aa4ca</code></a> Speed up stubs suggestions (<a href="https://redirect.github.com/python/mypy/issues/17965">#17965</a>)</li> <li><a href="https://github.com/python/mypy/commit/7c27808a0be2fc205788a826be83cbb0a68f89e1"><code>7c27808</code></a> Use orjson instead of json, when available (<a href="https://redirect.github.com/python/mypy/issues/17955">#17955</a>)</li> <li><a href="https://github.com/python/mypy/commit/2cd2406117e86838de36a9f73ba47c67fa763e1a"><code>2cd2406</code></a> Use fast path in modulefinder more often (<a href="https://redirect.github.com/python/mypy/issues/17950">#17950</a>)</li> <li><a href="https://github.com/python/mypy/commit/e20aaeeaa215b2e617d460599c4310427ba8f902"><code>e20aaee</code></a> Let mypyc optimise os.path.join (<a href="https://redirect.github.com/python/mypy/issues/17949">#17949</a>)</li> <li><a href="https://github.com/python/mypy/commit/159974cc59de459cfb3e31ba3e1d8f279734f66d"><code>159974c</code></a> Use sha1 for hashing (<a href="https://redirect.github.com/python/mypy/issues/17953">#17953</a>)</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.12.1...v1.13.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Add possibility in example to ignore cert errors and fix the verify_s… …sl assignment in code (#353) This addresses #298, adding it explicitly to the example and making it easier for new users to toggle it. Additionally, the TCPConnector assignment was broken, and this was fixed too. --------- Co-authored-by: Mick <mick@imick.nl>
Remove need for token based depoyment. (#335) This pull request includes several important changes to the GitHub Actions workflow for releases. The changes focus on configuring the environment, updating permissions, and improving the build and publish steps. ### Workflow configuration: * [`.github/workflows/release.yml`](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34R13-R17): Added the `environment: release` setting to the `deploy` job to specify the environment for the release. ### Permissions: * [`.github/workflows/release.yml`](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34R13-R17): Added `id-token: write` permission, which is mandatory for trusted publishing. ### Build and publish steps: * [`.github/workflows/release.yml`](diffhunk://#diff-87db21a973eed4fef5f32b267aa60fcee5cbdf03c67fafdc2a9b553bb0b15f34L35-R44): Split the build and publish steps into two separate actions. The build step now only builds the package distribution, and the publish step uses the `pypa/gh-action-pypi-publish@release/v1` action to publish the package distributions to PyPI.
5290 from Frontier (#299) I have a 5290 from https://frontier.com/ in Tampa, Florida, USA. I had to set `ENCRYPTION_METHOD = EncryptionMethod.MD5` in the example. It does require a password, the default password is written on the box. Here is some of the device_info: ``` manufacturer='Sagemcom', model_name='FWR226e', model_number='SagemcomFast5290_Frontier', software_version='SGIt340018_prod', hardware_version='FWR226e-2.0', router_name='Frontier1217', bootloader_version='3.60.2-sec', product_class='FAST5290', description='F5290', additional_hardware_version='2.0', external_firmware_version='SGIt340018_prod', internal_firmware_version='v20.2.323', guiapi_version='1.106', build_date='2022-11-02T20:00:39-0400', ``` --------- Co-authored-by: Mick Vleeshouwer <mick@imick.nl>
PreviousNext