Commit graph

69 commits

Author SHA1 Message Date
Nachtalb
c1bafea3e8
Upgrade to py12 (#1354)
* Upgrade to py12 compatible aiohttp beta version

* Fix uvloop deprecation warning causing pytest not to run

* Fix test due to asyncio task scheduling race condition

* Fix test_state_in_unknown_class for Python 3.12+ due to PEP 678 changes

* Add Python 3.12 support in GitHub Actions and project configurations

* Add changelog entry

---------

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2023-11-18 21:24:19 +02:00
Alex Root Junior
1cf6ce251b
Fixed ruff command 2023-10-21 21:48:22 +03:00
Alex Root Junior
cf3044687a
Update changelog instructions in PR workflow
Updated the instructions for adding changelog entries in the pull_request_changelog.yml workflow file. The changes provide more specific instructions on how to name and write the changelog entry file. This was done to provide clearer instructions to contributors updating the changelog.
2023-10-08 19:22:58 +03:00
Oleg A
ac62184443
fix: new towncrier docs link (#1306) 2023-09-19 17:43:10 +03:00
Alex Root Junior
27f48c60de
Disable hatch bump 2023-07-17 23:07:21 +03:00
Alex Root Junior
71e7e62e36
Update publish pipeline 2023-07-17 22:57:31 +03:00
Alex Root Junior
8a9cabb3df
Update codecov action 2023-02-04 19:57:48 +02:00
Alex Root Junior
f4ce4431f9
Migrate to hatchling (#1095)
* Migrate to hatchling instead of poetry, ruff instead of flake8

* Migrate to hatchling instead of poetry, ruff instead of flake8

* Update tests suite

* venv?

* -m venv?

* Change dependencies

* Remove venv

* Change mypy config

* Added changelog

* Mark uvloop incompatible with pypy

* Update release script

* Use internal caching for dependencies

* Re-disable cov branches

* Added contributing guide
2023-01-12 02:49:58 +02:00
Alex Root Junior
6db3778c6f
Tests on Python 3.11 (#1044)
* Try to use Python 3.11

* Remove `asynctest` dependency

* Fixed aiofiles tests

* Added changelog
2022-10-26 22:21:04 +03:00
Alex Root Junior
49372d14fd
Forget about virtualenv in pipeline 2022-10-02 19:38:26 +03:00
Alex Root Junior
1fa7fae6b3
Fixed deployment pipeline (Python version) 2022-10-02 19:33:17 +03:00
Alex Root Junior
44ae565149
Change changelog categories, update dependencies 2022-10-02 18:24:26 +03:00
Alex Root Junior
f4251382e8
Remove filters factory, introduce docs translation (#978)
* Rewrite filters

* Update README.rst

* Fixed tests

* Small optimization of the Text filter (TY to @bomzheg)

* Remove dataclass slots argument in due to the only Python 3.10 has an slots argument

* Fixed mypy

* Update tests

* Disable Python 3.11

* Fixed #1013: Empty mention should be None instead of empty string.

* Added #990 to the changelog

* Added #942 to the changelog

* Fixed coverage

* Update poetry and dependencies

* Fixed mypy

* Remove deprecated code

* Added more tests, update pyproject.toml

* Partial update docs

* Added initial Docs translation files

* Added more changes

* Added log message when connection is established in polling process

* Fixed action

* Disable lint for PyPy

* Added changelog for docs translation
2022-10-02 00:04:31 +03:00
Evgen Fil
40c29a0494
PyPy support (#985)
* Run tests on PyPy (#984)

Remove unnecessary `jobs.build.strategy.max_parallel` attribute

* Workaround `symlink() is not implemented for PyPy on Windows`

* Quote conditions in tests workflow file

* Fix quoting in Poetry installation script

* Adjust timeout when testing on pypy

Running the tests with coverage pytest plugin makes some tests run slower than expected

* Try to fix uvloop build errors on macos-latest

* Try to fix uvloop build errors on macos-latest (2)

* Adjust timeout when testing on pypy (2)

* Increase timeout even more

* Try to fix uvloop build errors on macos-latest (3)

* Update tests.yml, revert changes in test files

Add and improve step names
Merge "Lint code" and "Check code-style" steps
Don't install uvloop on macos when running on pypy
Don't run tests with coverage on pypy
Remove test timeout adjustments

* Fix condition

* Update README, add changelog

* Put environment info (`IS_PYPY`, `IS_WINDOWS`) into environment variables

* Fix conditions
2022-08-30 01:23:43 +03:00
Alex Root Junior
c1341ba2df
Added support of Bot API 6.2 (#975)
* Added support of Bot API 6.2
* Added changelog
* Update tests
* Update API version
* Update dependencies, pre-commit config
* Added pytest config
2022-08-14 16:32:29 +03:00
Evgen Fil
416460e013
Skip running tests when there are no code or test changes (#948)
* Skip running tests when there are no code or test changes

* Allow config file changes to trigger tests
2022-06-26 19:16:17 +03:00
Evgen Fil
2cb0fd1c4b
Improve changelog check action (#949)
Make check faster when `skip news` label is present
Add `name:` root field
2022-06-26 16:22:32 +03:00
Evgen Fil
2c6d8ed5cb
Automatically put 3.x label on new pull requests to dev-3.x (#940) 2022-06-25 22:31:19 +03:00
Alex Root Junior
e8432d38f5
Add comment when PR is labeled 2022-04-11 04:06:39 +03:00
Alex Root Junior
7ae588d4b8
Delete comment when pull request is labeled 2022-04-11 03:59:09 +03:00
Alex Root Junior
1e5d231869
Update changelog action, try to fix PR from external repositories 2022-04-11 03:31:37 +03:00
Alex Root Junior
b8aa03bc38
Added changelog changed validator (#873)
* Added changelog changed validator
2022-03-27 01:36:05 +02:00
Alex Root Junior
7405db2ad3
Enable Python 3.10 for tests (#719)
* Try to test on Python 3.10

* Prevent to YAML type cast

* Bump poetry

* Removed async_lru

* Disable fail-fast on tests

* Fixed typing

* Added patch-notes
2021-10-06 22:49:14 +03:00
Alex Root Junior
e4046095d7
Dev 3.x i18n & improvements (#696)
* Added base code and make code improvements
* Auto-exclude coverage for `if TYPE_CHECKING:`
* Fixed current coverage
* Cover I18n module
* Update pipeline
* Fixed annotations
* Added docs
* Move exceptions
* Added tests for KeyboardBuilder and initial docs
* Remove help generator (removed from sources tree, requires rewrite)
* Added patch-notes #698, #699, #700, #701, #702, #703
2021-09-22 00:52:38 +03:00
Christian Clauss
5bd1162f57
tests.yml: Upgrade to actions/setup-python@v2 (#686) 2021-09-10 00:27:07 +03:00
Alex Root Junior
16cf6419d3 Rename deployment script 2021-08-01 01:19:03 +03:00
Alex Root Junior
e5a7c69e17 Bump version 2021-08-01 01:09:43 +03:00
Alex Root Junior
83d6ab48c5
Backport and improvements (#601)
* Backport RedisStorage, deep-linking
* Allow prereleases for aioredis
* Bump dependencies
* Correctly skip Redis tests on Windows
* Reformat tests code and bump Makefile
2021-06-15 01:45:31 +03:00
Alex Root Junior
6253b25158 Remove compatibility with Python 3.7 2021-05-25 01:00:36 +03:00
Alex Root Junior
442a813831 Added cache version 2021-05-13 22:15:26 +03:00
Alex Root Junior
becbcecaf1 Increase max parallel jobs 2021-05-13 00:15:18 +03:00
Alex Root Junior
782102561e Restore all OS in pipeline 2021-05-12 23:31:37 +03:00
Alex Root Junior
73028e7a11 Use bash by default. temporary disable all except Windows 2021-05-12 23:28:28 +03:00
Alex Root Junior
deacbe1649 Use bash by default 2021-05-12 23:28:05 +03:00
Alex Root Junior
74bd34b1a5 Added caching dependencies and black validation 2021-05-12 23:23:34 +03:00
Alex Root Junior
55861cb50d Use 3rd-party step for Poetry installaton (2) 2021-05-12 23:11:35 +03:00
Alex Root Junior
6d0238f0d4 Use 3rd-party step for Poetry installaton 2021-05-12 23:10:24 +03:00
Alex Root Junior
c25a63a2c8 Separate dependenties installation 2021-05-12 23:08:07 +03:00
Alex Root Junior
6009a39925 Change dependencies installation 2021-05-12 23:06:02 +03:00
Alex Root Junior
81427d0a8d Fix deploy pipeline 2021-05-12 00:15:06 +03:00
Alex Root Junior
5abd9ad0c4 Bump version. Added pipeline for test PyPi 2021-05-12 00:13:03 +03:00
Alex Root Junior
0e72d8e65b
[3.0] Bot API 5.1 + FSM + Utils (#525)
* Regenerate corresponding to Bot API 5.1

* Added base of FSM. Markup constructor and small refactoring

* Fix dependencies

* Fix mypy windows error

* Move StatesGroup.get_root() from meta to class

* Fixed chat and user constraints

* Update pipeline

* Remove docs pipeline

* Added GLOBAL_USER FSM strategy

* Reformat code

* Fixed Dispatcher._process_update

* Bump Bot API 5.2. Added integration with MagicFilter

* Coverage
2021-05-11 23:04:32 +03:00
Alex Root Junior
a6f824a117 Revert docs pipeline 2021-02-07 19:25:13 +02:00
Alex Root Junior
8a94dde7fb Pipeline bump version without venv 2021-02-07 18:48:16 +02:00
Alex Root Junior
4008a3114d
Upgrade architecture + 5.0 Bot API (#469)
Upgrade architecture + 5.0 Bot API (#469)
* Moved `methods`, `types` and `client` to root package
* Removed update handler from routers to dispatcher
* Reworked events propagation mechanism to handlers
* Reworked inner middlewares logic (very small change)
* Updated to Bot API 5.0
* Initial migration from MkDocs to Sphinx + config for readthedocs
2021-01-26 21:20:52 +02:00
Alex Root Junior
85265a34cd Rollback Python 3.9 2020-10-06 16:50:44 +03:00
Alex Root Junior
880976b33d Enable Python 3.9 in pipeline 2020-10-06 16:47:44 +03:00
Alex Root Junior
87104bd783 Fix pipeline warning 2020-05-31 18:27:47 +03:00
Alex Root Junior
28382ebf5f
Add bump_versions.py script (#338)
* Add bump_versions.py script
* Fix pipeline
2020-05-27 01:24:06 +03:00
Boger
756412d784 Turn off mypy on tests folder 2020-03-25 16:19:48 +03:00