Commit Graph

405 Commits (03bba6d0c3341617c9b941a2abc663ed36879169)

Author SHA1 Message Date
Erik Montnemery 08b565701c
Include hash of requirements.txt in venv cache key (#115759) 2024-04-17 16:37:49 +02:00
Matthew Hallonbacka 4a89e18b7e
Fix check for missing parts on incoming SMS (#105068)
* Fix check for missing parts on incoming SMS

* Add tests for get_and_delete_all_sms function

* Fix CI issues

* Install libgammu-dev in CI

* Bust the venv cache

* Include python-gammu in requirements-all.txt

* Adjust install of dependencies

---------

Co-authored-by: Erik <erik@montnemery.com>
2024-04-16 21:34:09 +02:00
Robert Resch 68ba4d57d5
Remove unused CI code (#115300) 2024-04-13 17:24:02 +02:00
Marc Mueller f70ce8abf9
Fix ci Python cache key (#115467) 2024-04-12 13:11:24 +02:00
TheJulianJES 6ba7a30cc8
Fix Codecov upload with token (#115384)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-11 09:51:09 -10:00
Jan-Philipp Benecke fa3cba5b87
Bump codecov/codecov-action to v4.3.0 (#115317) 2024-04-09 12:15:30 -10:00
dependabot[bot] 63392ea1c2
Bump Wandalen/wretry.action from 3.0.1 to 3.1.0 (#114916) 2024-04-05 12:16:27 +02:00
dependabot[bot] c18ff39540
Bump Wandalen/wretry.action from 2.1.0 to 3.0.1 (#114805)
Bumps [Wandalen/wretry.action](https://github.com/wandalen/wretry.action) from 2.1.0 to 3.0.1.
- [Release notes](https://github.com/wandalen/wretry.action/releases)
- [Commits](https://github.com/wandalen/wretry.action/compare/v2.1.0...v3.0.1)

---
updated-dependencies:
- dependency-name: Wandalen/wretry.action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-04 08:38:15 +02:00
Robert Resch e2c99d226e
Fix CI after splitting tests (#114754) 2024-04-03 16:45:07 +02:00
Robert Resch ed88c2abc9
Replace pytest-test-groups by custom tests splitter (#114381)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2024-04-03 15:43:12 +02:00
dependabot[bot] 3eafdadc8f
Bump Wandalen/wretry.action from 3.0.0 to 3.0.1 (#114714)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-03 09:13:53 +02:00
dependabot[bot] 667e119d32
Bump Wandalen/wretry.action from 2.1.0 to 3.0.0 (#114554)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 09:07:47 +02:00
Franck Nijhof 3d4733a026
Bump version to 2024.5.0dev0 (#114324) 2024-03-27 19:43:38 +01:00
dependabot[bot] 4d7da61e99
Bump actions/setup-python from 5.0.0 to 5.1.0 (#114276)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 08:39:56 +01:00
dependabot[bot] 5c0888ba28
Bump Wandalen/wretry.action from 2.0.0 to 2.1.0 (#114150) 2024-03-25 08:56:33 +01:00
dependabot[bot] ccfe0ba036
Bump Wandalen/wretry.action from 1.4.10 to 2.0.0 (#113888)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-21 11:43:11 +01:00
Marc Mueller 9a38f0de0b
Update actions/cache to 4.0.2 (#113817) 2024-03-20 01:16:21 +01:00
Robert Resch 5230a8a210
Simplify UV install in CI (#113803) 2024-03-19 11:49:15 +01:00
Marc Mueller d1d28dbfb8
Fix uv cache dir env [ci] (#113312) 2024-03-14 05:01:57 +01:00
Aarni Koskela dc7eaee917
CI: Move pytest-github-actions-annotate-failures to test deps, upgrade (#104604)
Move pytest-github-actions-annotate-failures to test deps, upgrade

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-03-13 17:26:19 +01:00
dependabot[bot] 6ecafbcc2c
Bump actions/checkout from 4.1.1 to 4.1.2 (#113208)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-13 11:26:16 +01:00
Marc Mueller b1346f3ccd
Update pytest artifact actions to v4 (#110906) 2024-03-13 11:02:46 +01:00
dependabot[bot] 29772926ec
Bump Wandalen/wretry.action from 1.4.9 to 1.4.10 (#113206)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-13 10:36:53 +01:00
dependabot[bot] 46ab4bbf32
Bump Wandalen/wretry.action from 1.4.8 to 1.4.9 (#113132)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 11:52:16 +01:00
Robert Resch 7fd5c3ed61
Use UV instead of PIP in the CI (#113051) 2024-03-11 12:18:29 +01:00
dependabot[bot] b45bfdb3cc
Bump Wandalen/wretry.action from 1.4.7 to 1.4.8 (#113038)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-11 11:08:15 +01:00
Franck Nijhof aa7acb89c5
Remove Python 3.11 from CI (#112626) 2024-03-08 17:42:18 +01:00
Jim d2effd8693
Bump python-telegram-bot package to 21.0.1 (#110297)
* Bump python-telegram-bot package version to the latest.

* PySocks is no longer required as python-telegram-bot doesn't use urllib3 anymore.

* Fix moved ParseMode import

* Update filters import to new structure.

* Refactor removed Request objects to HTTPXRequest objects.

* Update to support asyncc functions

* Update timeout to new kwarg

connect_timeout is the most obvious option based on current param description, but this may need changing.

* Compatibility typo.

* Make methods async and use Bot client async natively

* Type needs to be Optional

That's what the source types are from the library
Also handle new possibility of None value

* Add socks support version of the library

* Refactor load_data function

Update to be async friendly
Refactor to use httpx instead of requests.

* Refactor Dispatcher references to Application

This is the newer model of the same class.

* Make more stuff async-friendly.

* Update tests to refactor Dispatcher usage out.

* Remove import and reference directly

* Refactor typing method

* Use async_fire now we have async support

* Fix some over complicate inheritance.

* Add the polling test telegram_text event fired back in.

* Add extra context to comment

* Handler should also be async

* Use underscores instead of camelCase

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Renamed kwarg.

* Refactor current timeout param to be read timeout

Reading the old version of the library code I believe this matches the existing functionality best

* Combine unload methods into one listener

* Fix test by stopping HA as part of fixture

* Add new fixture to mock stop_polling call

Use this in all polling tests.

* No longer need to check if application is running

It was to stop a test failing.

* Make sure the updater is started in tests

Mock external call methods
Remove stop_polling mock.

* Use cleaner references to patched methods

* Improve test by letting the library create the Update object

* Mock component tear down methods to be async

* Bump mypy cache version

* Update dependency to install from git

Allows use as a custom component in 2024.3
Allows us to track mypy issue resolution.

* Update manifest and requirements for new python-telegram-bot release.

* Remove pytest filterwarnings entry for old version of python-telegram-bot library.

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-03-08 08:56:26 +01:00
dependabot[bot] a92e65bc54
Bump Wandalen/wretry.action from 1.4.5 to 1.4.7 (#112575)
Bumps [Wandalen/wretry.action](https://github.com/wandalen/wretry.action) from 1.4.5 to 1.4.7.
- [Release notes](https://github.com/wandalen/wretry.action/releases)
- [Commits](https://github.com/wandalen/wretry.action/compare/v1.4.5...v1.4.7)

---
updated-dependencies:
- dependency-name: Wandalen/wretry.action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-07 09:33:31 +01:00
dependabot[bot] 8e26e36033
Bump Wandalen/wretry.action from 1.4.4 to 1.4.5 (#111700)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2024-03-06 10:34:48 +01:00
dependabot[bot] a7f84c577d
Bump dorny/paths-filter from 3.0.1 to 3.0.2 (#112158) 2024-03-05 23:05:24 +01:00
dependabot[bot] 1b7c3061f3
Bump actions/download-artifact from 4.1.3 to 4.1.4 (#112159) 2024-03-04 11:50:31 +01:00
dependabot[bot] 8a236077b0
Bump actions/cache from 4.0.0 to 4.0.1 (#111916) 2024-03-01 10:57:24 +01:00
Bram Kragten 09c16ffb3d
Bump version to 2024.4.0.dev0 (#111755) 2024-02-29 00:46:32 +01:00
dependabot[bot] 38395c8fab
Bump actions/download-artifact from 4.1.2 to 4.1.3 (#111602) 2024-02-27 12:12:23 +01:00
Marc Mueller f785bdf571
Update coverage artifact actions to v4 [ci] (#110344) 2024-02-18 20:13:20 +01:00
dependabot[bot] 5618670fd1
Bump dorny/paths-filter from 3.0.0 to 3.0.1 (#110698)
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/dorny/paths-filter/releases)
- [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dorny/paths-filter/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: dorny/paths-filter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 11:55:30 +01:00
Michael 531f2e8443
bump wretry.action@v1.4.4 (#110053) 2024-02-08 23:15:22 +01:00
dependabot[bot] 23fa9103d7
Bump Wandalen/wretry.action from 1.3.0 to 1.4.0 (#109950)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-08 20:14:49 +01:00
Franck Nijhof d1c61c911d
Bump version to 2024.3.0dev0 (#109238) 2024-01-31 22:05:13 +01:00
Franck Nijhof 7268e9aa56
Bump/flush mypy cache (#109101) 2024-01-30 08:57:24 +01:00
Marc Mueller be4631cbf8
Use unique artifact names for db jobs [ci] (#108653) 2024-01-29 19:15:36 +01:00
Jan-Philipp Benecke 95aea1488d
Add pylint plugin to check if coordinator is placed in its own module (#108174)
* Add pylint plugin to check if coordinator is placed in its own module

* Remove unintended changes

* Remove pylint disable and let CI only fail on W,E,F

* Make check conventional

* Apply review suggestion

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

* Use option instead

* Remove pylint arguments from pre-commit

* Partially revert "Remove pylint disable and let CI only fail on W,E,F"

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-01-29 10:30:19 +01:00
dependabot[bot] 7c59b0b43c
Bump dorny/paths-filter from 2.12.0 to 3.0.0 (#108894)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-28 20:35:52 +01:00
dependabot[bot] 7efc82b14c
Bump dorny/paths-filter from 2.11.1 to 2.12.0 (#108826)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-25 10:36:13 +01:00
dependabot[bot] db9312cf9c
Bump actions/cache from 3.3.3 to 4.0.0 (#108209)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-17 08:23:35 +01:00
dependabot[bot] 751b459f80
Bump actions/cache from 3.3.2 to 3.3.3 (#107840)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-12 09:26:01 +01:00
Franck Nijhof 7ad44a02b7
Bump version to 2024.2.0dev0 (#106504) 2023-12-28 02:08:16 +01:00
dependabot[bot] 316776742f
Bump actions/setup-python from 4.8.0 to 5.0.0 (#105193)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 09:27:48 +01:00
dependabot[bot] a904461b6a
Bump actions/setup-python from 4.7.1 to 4.8.0 (#105117)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-06 08:28:02 +01:00
Franck Nijhof 0a98a648bb
Bump version to 2024.1.0dev0 (#104746) 2023-11-29 21:29:11 +01:00
Ville Skyttä fd5cda4ec6
Issue bytes vs str related warnings from tests (#101186) 2023-11-27 21:59:54 +01:00
Aarni Koskela b994141bc6
CI: simplify Ruff-related things (#104602) 2023-11-27 21:23:37 +01:00
Aarni Koskela 706add4a57
Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
Marc Mueller c6f9af2cab
Reset mypy ci cache (#103910) 2023-11-13 14:40:26 +01:00
Franck Nijhof f28c9221e6
Bump version to 2023.12.0dev0 (#102798) 2023-10-25 20:37:16 +02:00
dependabot[bot] 61104dd726
Bump actions/checkout from 4.1.0 to 4.1.1 (#102248)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 19:50:09 +02:00
epenet 183397e201
Add MariaDB 10.11.2 to CI (#101807) 2023-10-11 13:32:11 +02:00
Marc Mueller ba91aaa28d
Add support for Python 3.12 (#101651) 2023-10-10 21:34:49 +02:00
dependabot[bot] 69e588b15e
Bump actions/setup-python from 4.7.0 to 4.7.1 (#101306)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-03 10:10:18 +02:00
Franck Nijhof 97f24b855f
Bump version to 2023.11.0dev0 (#101013) 2023-09-27 19:03:06 +02:00
Marc Mueller 11e8bf0b9c
Update types packages (#100850) 2023-09-25 18:53:22 +02:00
dependabot[bot] 2a443648fc
Bump actions/checkout from 4.0.0 to 4.1.0 (#100836)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-25 11:01:12 +02:00
Marc Mueller 6acb182c38
Fix full black run condition [ci] (#100532) 2023-09-17 17:05:29 -05:00
Marc Mueller c77eb70886
Add black caching [ci] (#99967)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-09-09 08:36:47 -05:00
dependabot[bot] 67de96adfa
Bump actions/cache from 3.3.1 to 3.3.2 (#99903) 2023-09-08 13:18:26 +02:00
dependabot[bot] 2c3a4b3497
Bump actions/checkout from 3.6.0 to 4.0.0 (#99651) 2023-09-05 08:57:09 +02:00
Marc Mueller cc9f0aaf80
Escape core version [ci] (#99364) 2023-08-30 23:56:25 +02:00
Joost Lekkerkerker 59b1d4ba69
Bump version to 2023.10.0dev0 (#99349) 2023-08-30 19:32:10 +02:00
dependabot[bot] 07494f129c
Bump actions/checkout from 3.5.3 to 3.6.0 (#99003)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.5.3...v3.6.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-25 10:18:43 +02:00
Marc Mueller 3f2c03fe77
Add input option to skip coverage [ci] (#98821) 2023-08-22 19:53:55 +02:00
Marc Mueller 0bcc02e908
Skip writing pyc files [ci] (#98423) 2023-08-16 11:36:52 +02:00
Marc Mueller e0d6210bd0
Create pytest output artifact [ci] (#98106) 2023-08-14 10:38:53 +02:00
Franck Nijhof 9b7dcce7ed
Bump version to 2023.9.0dev0 (#97265) 2023-07-26 17:40:17 +02:00
Franck Nijhof ce1f5f997e
Drop Python 3.10 support (#97007) 2023-07-22 23:03:45 +02:00
Marc Mueller e18da97670
Improve pip caching [ci] (#96896) 2023-07-19 13:07:11 +02:00
Marc Mueller 564e618d0c
Drop upper constraint for pip (#96738) 2023-07-18 00:37:02 +02:00
Marc Mueller 2f5c480f7f
Update pip constraint to allow pip 23.2 (#96614) 2023-07-15 12:28:34 -10:00
dependabot[bot] e44c74f9eb
Bump actions/setup-python from 4.6.1 to 4.7.0 (#96526) 2023-07-14 11:52:24 +02:00
Franck Nijhof 7ca9f6757a
Use fixed token for CodeCov uploads to deal with recent failures (#96133) 2023-07-10 12:42:55 +02:00
Franck Nijhof ec7beee4c1
Bump version to 2023.8.0dev0 (#95476) 2023-06-28 16:07:54 -04:00
Marc Mueller 90854df5b2
Add editable install back [ci] (#95379) 2023-06-27 16:10:03 +02:00
Marc Mueller f5975d4039
Update build system (#95237) 2023-06-26 19:03:56 +02:00
dependabot[bot] e581d6c90b
Bump Wandalen/wretry.action from 1.2.0 to 1.3.0 (#95098)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-23 14:20:17 +02:00
dependabot[bot] 05c25d2349
Bump Wandalen/wretry.action from 1.0.36 to 1.2.0 (#95035)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-22 09:38:32 +02:00
dependabot[bot] 4d3db038d6
Bump actions/checkout from 3.5.2 to 3.5.3 (#94452)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.5.2...v3.5.3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-12 10:42:40 +02:00
Franck Nijhof c3936e6f14
Replace isort with ruff (#94302) 2023-06-08 23:43:56 +02:00
Ville Skyttä ca936d0b38
Replace bandit with ruff (#93200) 2023-06-08 22:46:04 +02:00
Franck Nijhof 8d8d0fc9d2
Bump version to 2023.7.0dev0 (#93869) 2023-05-31 20:34:30 +02:00
dependabot[bot] 6df44ff5d5
Bump actions/setup-python from 4.6.0 to 4.6.1 (#93512)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4.6.0...v4.6.1)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-25 09:48:52 +02:00
Franck Nijhof cdbffee781
Remove legacy pip resolver (#92124)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-04-27 22:39:29 +02:00
Franck Nijhof b5edf47454
Bump version to 2023.6.0dev0 (#92081) 2023-04-26 22:58:26 +02:00
Marc Mueller 9ccc0059d2
Add run-name for workflow_dispatch runs [ci] (#91873) 2023-04-23 01:15:09 +02:00
Franck Nijhof 20a42c65cf
CI: Add automatic retries to codecov upload action (#91857) 2023-04-22 17:16:43 +02:00
dependabot[bot] faf78fc6b1
Bump codecov/codecov-action from 3.1.2 to 3.1.3 (#91791)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 10:48:28 +02:00
dependabot[bot] 0e2541c843
Bump actions/setup-python from 4.5.0 to 4.6.0 (#91792)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-21 10:47:35 +02:00
Franck Nijhof f1bb4ed0ed
Update pip constraint to allow for pip 23.1 (#91535) 2023-04-17 12:39:13 +02:00
dependabot[bot] b7b22b79d1
Bump actions/checkout from 3.5.0 to 3.5.2 (#91373)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 22:11:47 +02:00
dependabot[bot] 5b89996476
Bump codecov/codecov-action from 3.1.1 to 3.1.2 (#91258)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-12 11:10:38 +02:00
J. Nick Koston 20d0362914
Add mysql 8.0.32 to the CI (#90898) 2023-04-06 09:33:08 -10:00