Commit graph

50 commits

Author SHA1 Message Date
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
41c802010d
Small fix in translated pages 2022-10-15 00:46:53 +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
Alex Root Junior
4315ecf1a2
Dev 3.x flat package (#961)
* Move packages

* Added changelog

* Update examples/echo_bot.py

Co-authored-by: Oleg A. <t0rr@mail.ru>

* Rename `handler` -> `handlers`

* Update __init__.py

Co-authored-by: Oleg A. <t0rr@mail.ru>
2022-08-14 01:07:52 +03:00
Alex Root Junior
0d650fc38c
Release 3.0.0-beta.3 2022-04-19 22:16:35 +03:00
Alex Root Junior
286cf39c8a
Beta 3 (#884)
* Rework middlewares, separate management to `MiddlewareManager` class

* Rework middlewares

* Added changes description for redis

* Added changes description for redis

* Fixed tests with Redis // aioredis replacement

* Changed msg.<html/md>_text attributes behaviour

* Added changelog for spoilers

* Added possibility to get command magic result as handler arguments
2022-04-16 19:07:32 +03:00
Alex Root Junior
7776cf9cf6
Bot API 5.7 and some new features (#834)
* Update API, added some new features

* Fixed unknown chat_action value

* Separate events from dispatcher messages

* Disabled cache for I18n LazyProxy

* Rework events isolation

* Added chat member status changed filter, update Bot API 5.7, other small changes

* Improve exceptions in chat member status filter

* Fixed tests, covered flags and events isolation modules

* Try to fix flake8 unused type ignore

* Fixed linter error

* Cover chat member updated filter

* Cover chat action sender

* Added docs for chat action util

* Try to fix tests for python <= 3.9

* Fixed headers

* Added docs for flags functionality

* Added docs for chat_member_updated filter

* Added change notes

* Update dependencies and fix mypy checks

* Bump version
2022-02-19 01:45:59 +02:00
Alex Root Junior
9ec689b562
[3.x] Bot API 5.5 (#777)
* Re-generate API, cover changes

* Added patchnotes
2021-12-12 17:21:01 +02:00
Alex Root Junior
f97367b3ee More docs 2021-10-12 01:11:53 +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
Alex Root Junior
40cb222314 Bump version 2021-09-10 00:02:53 +03:00
Alex Root Junior
e356ede5de
Updated pre-commit hook (#681)
* Updated pre-commit config and reformat code

* Added changelog
2021-09-07 00:32:43 +03:00
Alex Root Junior
9114abe919
towncrier integration (#647)
* Added towncrier and clone changelog from GitHub Releases page

* Added record to changelog

* Extended makefile

* Fix typo

* Changed ref in changelog

* Auto-confirm towncrier question on build

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
2021-08-01 19:08:03 +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
e1cd7268a1 Remove MkDocs 2021-05-13 00:13:09 +03:00
Alex Root Junior
aebccd1139 Fix version parsing 2021-02-07 19:04:26 +02:00
Alex Root Junior
322a98bc1b More docs 2021-02-07 18:43:43 +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
28382ebf5f
Add bump_versions.py script (#338)
* Add bump_versions.py script
* Fix pipeline
2020-05-27 01:24:06 +03:00
Alex Root Junior
e4198fb1f2 Revert .PHONY in Makefile 2020-05-26 22:13:01 +03:00
Alex Root Junior
7f26ec9935 Implement new middlewares 2020-05-26 00:23:35 +03:00
Alex Root Junior
e9fef19129 Fix compatibility with pydantic 1.5 (temporary) 2020-04-28 12:07:01 +03:00
Boger
756412d784 Turn off mypy on tests folder 2020-03-25 16:19:48 +03:00
Alex Root Junior
8e5cb067df Use AsyncMock with python 3.8 instead of asynctest 2020-01-11 21:15:46 +02:00
Alex Root Junior
8726963bc2 Reformat code and fix Makefile 2020-01-11 20:01:49 +02:00
Alex Root Junior
a2cb637ed9 Make Dispatcher._run_polling public 2019-12-26 00:00:53 +02:00
Alex Root Junior
dadedc80a9 Add possibility to include router via string 2019-12-12 00:28:37 +02:00
Alex Root Junior
562e339262 Improve typing and reformat code 2019-11-28 23:21:19 +02:00
Alex Root Junior
55f6c29ba6 Remove awaitable checks from TestObserver 2019-11-24 01:07:43 +02:00
Alex Root Junior
19ba7a133c Fix build 2019-11-20 00:45:03 +02:00
jrootjunior
b4a94d8441 Update Makefile and mkdocs.yml 2019-11-18 14:57:11 +02:00
Alex Root Junior
1a2513e940 Change tests report filename 2019-11-17 23:55:36 +02:00
Alex Root Junior
7d1c4dcca8 Fix tests for base session with different timezones 2019-11-17 23:47:52 +02:00
Alex Root Junior
f166d83392 Update docs and pipeline 2019-11-17 23:40:52 +02:00
Alex Root Junior
a46cd6d001 Small refactoring of telegram api server 2019-11-17 22:20:29 +02:00
Alex Root Junior
7dc2a0ddaf Update tests and small refactoring 2019-11-16 22:32:26 +02:00
jrootjunior
22df168042 Reformat Makefile 2019-11-15 14:21:35 +02:00
jrootjunior
6c02341303 Add docs to Makefile 2019-11-15 14:11:50 +02:00
jrootjunior
65815e509f Clean obsolete code and change configs 2019-11-15 12:44:24 +02:00
jrootjunior
bdae5fb026 Clean project 2019-11-15 12:17:57 +02:00
Alex Root Junior
2ba34454f4 Upd Makefile 2018-04-05 23:28:18 +03:00
Alex Root Junior
31fd69fbcf Update Makefile 2017-12-01 02:54:21 +02:00
Alex Root Junior
e8375f115e Add examples to summary information. 2017-12-01 02:38:03 +02:00
Alex Root Junior
b178f3ad0d Small changes in Makefile 2017-12-01 02:28:25 +02:00
Alex Root Junior
114e276f7a Add summary(cloc) util to Makefile 2017-12-01 02:14:49 +02:00
Alex Root Junior
c2833c07e9 Add tox-testing to Makefile 2017-12-01 01:59:15 +02:00
Alex Root Junior
e2b82af8b1 Fix Makefile 2017-11-19 02:03:09 +02:00
Alex Root Junior
191d3023bb Add make install 2017-11-15 18:51:29 +02:00
Alex Root Junior
95a42a6b75 Add Makefile 2017-10-22 18:36:13 +03:00