Skip to content

Commit d13fcc1

Browse files
authored
chore: bump python version (#80)
1 parent db2d525 commit d13fcc1

File tree

7 files changed

+285
-191
lines changed

7 files changed

+285
-191
lines changed

.github/workflows/actions.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ jobs:
44

55
test:
66
name: Test
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-22.04
88
strategy:
99
matrix:
10-
python-version: [ "3.8", "3.9", "3.10" ]
10+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
1111

1212
steps:
1313
- name: Setup dependencies
14-
uses: ExpressApp/github-actions-poetry@v0.2
14+
uses: ExpressApp/github-actions-poetry@v0.4
1515
with:
1616
python-version: ${{ matrix.python-version }}
1717
poetry-version: "1.3.2"
@@ -23,14 +23,14 @@ jobs:
2323
2424
lint:
2525
name: Lint
26-
runs-on: ubuntu-20.04
26+
runs-on: ubuntu-22.04
2727
strategy:
2828
matrix:
29-
python-version: [ "3.8", "3.9", "3.10" ]
29+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
3030

3131
steps:
3232
- name: Setup dependencies
33-
uses: ExpressApp/github-actions-poetry@v0.2
33+
uses: ExpressApp/github-actions-poetry@v0.4
3434
with:
3535
python-version: ${{ matrix.python-version }}
3636
poetry-version: "1.3.2"
@@ -42,11 +42,11 @@ jobs:
4242

4343
docs-lint:
4444
name: Docs lint
45-
runs-on: ubuntu-20.04
45+
runs-on: ubuntu-22.04
4646

4747
steps:
4848
- name: Setup dependencies
49-
uses: ExpressApp/github-actions-poetry@v0.2
49+
uses: ExpressApp/github-actions-poetry@v0.4
5050
with:
5151
poetry-version: "1.3.2"
5252

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Bot(
5656
# Не забудьте заменить эти учётные данные на настоящие,
5757
# когда создадите бота в панели администратора.
5858
id=UUID("123e4567-e89b-12d3-a456-426655440000"),
59-
host="cts.example.com",
59+
cts_url="cts.example.com",
6060
secret_key="e29b417773f2feab9dac143ee3da20c5",
6161
),
6262
],
@@ -149,7 +149,7 @@ bot = Bot(
149149
# Не забудьте заменить эти учётные данные на настоящие,
150150
# когда создадите бота в панели администратора.
151151
id=UUID("123e4567-e89b-12d3-a456-426655440000"),
152-
host="cts.example.com",
152+
cts_url="cts.example.com",
153153
secret_key="e29b417773f2feab9dac143ee3da20c5",
154154
),
155155
],

poetry.lock

Lines changed: 264 additions & 169 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
[tool.poetry]
44
name = "pybotx-fsm"
5-
version = "0.4.12"
5+
version = "0.5.0"
66
description = "FSM middleware for using with pybotx"
77
readme = "README.md"
88
authors = []
99

1010
[tool.poetry.dependencies]
11-
python = ">=3.8,<3.12"
11+
python = ">=3.8.1,<3.13"
1212

13-
pybotx = ">=0.44.1"
13+
pybotx = ">=0.65.0"
1414

1515
[tool.poetry.dev-dependencies]
1616
add-trailing-comma = "2.2.3"
17-
autoflake = "1.4.0"
17+
autoflake = "2.3.1"
1818
black = "22.3.0"
1919
isort = "5.10.1"
2020
mypy = "0.950.0"
21-
wemake-python-styleguide = "0.16.1"
21+
wemake-python-styleguide = "0.18.0"
2222

23-
pytest = "7.2.0"
23+
pytest = "7.4.3"
2424
pytest-asyncio = "0.18.3"
2525

2626
[build-system]

tests/conftest.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
UserDevice,
1212
UserSender,
1313
)
14+
from pydantic import AnyHttpUrl
1415

1516

1617
@pytest.fixture
@@ -29,15 +30,15 @@ def chat_id() -> UUID:
2930

3031

3132
@pytest.fixture
32-
def host() -> str:
33-
return "cts.example.com"
33+
def host() -> AnyHttpUrl:
34+
return AnyHttpUrl(url="https://cts.example.com", scheme="https")
3435

3536

3637
@pytest.fixture
37-
def bot_account(host: str, bot_id: UUID) -> BotAccountWithSecret:
38+
def bot_account(host: AnyHttpUrl, bot_id: UUID) -> BotAccountWithSecret:
3839
return BotAccountWithSecret(
3940
id=bot_id,
40-
host=host,
41+
cts_url=host,
4142
secret_key="bee001",
4243
)
4344

tests/test_change_state.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
from enum import Enum, auto
32
from typing import Callable
43
from unittest.mock import Mock

tests/test_pass_args.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import asyncio
21
from enum import Enum, auto
32
from typing import Callable
43
from unittest.mock import Mock

0 commit comments

Comments
 (0)