Skip to content

Commit

Permalink
Drop Python 3.7 support (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akhmetov authored Jul 2, 2023
1 parent 09d48db commit 53e055d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
7 changes: 3 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Pull requests are welcome!

Feel free to open an issue if you found a bug, have new ideas, suggestions or found a mistake
in [documentation](https://python-telegram.readthedocs.io/en/latest/).
in [documentation](https://python-telegram.readthedocs.io/en/latest/).

## Reporting bugs

Expand All @@ -21,7 +21,6 @@ some sample code.
3. Ensure the tests pass with your changes.
4. Create a new PR!


## Coding style

The project uses [black](https://github.com/psf/black) as a autoformatter tool
Expand All @@ -37,8 +36,8 @@ Run tests:
tox
```

Run a specific test using python 3.7:
Run a specific test using python 3.11:

```shell
tox -e py37 -- -k test_add_message_handler
tox -e py311 -- -k test_add_message_handler
```
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
Python API for the [tdlib](https://github.com/tdlib/td) library.
It helps you build your own Telegram clients.

* [Changelog](https://python-telegram.readthedocs.io/en/latest/changelog.html)
* [Documentation](http://python-telegram.readthedocs.io)
* [Tutorial](http://python-telegram.readthedocs.io/en/latest/tutorial.html)
- [Changelog](https://python-telegram.readthedocs.io/en/latest/changelog.html)
- [Documentation](http://python-telegram.readthedocs.io)
- [Tutorial](http://python-telegram.readthedocs.io/en/latest/tutorial.html)

## Installation

This library requires Python 3.6+ and Linux or MacOS.
This library requires Python 3.8+ and Linux or MacOS.

```shell
pip install python-telegram
Expand All @@ -38,6 +38,7 @@ docker run -i -t --rm \
Have a look at the [tutorial](http://python-telegram.readthedocs.io/en/latest/tutorial.html) :)

Basic example:

```python
from telegram.client import Telegram
from telegram.text import Spoiler
Expand Down Expand Up @@ -68,7 +69,7 @@ tg.stop() # you must call `stop` at the end of the script

More examples you can find in the [/examples/ directory](/examples/).

----
---

More information in the [documentation](http://python-telegram.readthedocs.io).

Expand Down
4 changes: 4 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Changelog
=========

[unreleased]

- Python 3.7 is no longer supported.

[0.18.0] - 2023-03-13

- Added support for tdlib > 1.8.5. (thanks to @JleMyP)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Do not forget install it after:
Library installation
~~~~~~~~~~~~~~~~~~~~

This library works with Python 3.6+ only.
This library works with Python 3.8+ only.

.. code-block:: bash
Expand Down
3 changes: 1 addition & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[tox]
ignore_basepython_conflict = true
envlist = mypy,flake8,pylint,py37,py36,py38,py39,py310,py311
envlist = mypy,flake8,pylint,py38,py39,py310,py311

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
Expand Down

0 comments on commit 53e055d

Please sign in to comment.