Skip to content

Commit 1a99f00

Browse files
authored
Merge pull request #547 from ably/feature/support-3.1x
Support latest python versions
2 parents 10cb4a0 + 9585e46 commit 1a99f00

4 files changed

Lines changed: 102 additions & 71 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ['3.7', '3.8', '3.9', '3.10']
21-
20+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
2221
steps:
2322
- uses: actions/checkout@v2
2423
with:
@@ -33,8 +32,6 @@ jobs:
3332
poetry-version: 1.3.2
3433
- name: Install dependencies
3534
run: poetry install -E crypto
36-
- name: Lint with flake8
37-
run: poetry run flake8
3835
- name: Generate rest sync code and tests
3936
run: poetry run unasync
4037
- name: Test with pytest

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Linting check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
submodules: 'recursive'
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.8'
20+
- name: Setup poetry
21+
uses: abatilo/actions-poetry@v2.0.0
22+
with:
23+
poetry-version: 1.3.2
24+
- name: Install dependencies
25+
run: poetry install -E crypto
26+
- name: Lint with flake8
27+
run: poetry run flake8

poetry.lock

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

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ classifiers = [
1818
"Programming Language :: Python :: 3.8",
1919
"Programming Language :: Python :: 3.9",
2020
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
2123
"Topic :: Software Development :: Libraries :: Python Modules",
2224
]
2325
include = [
@@ -36,7 +38,10 @@ httpx = { version = "^0.24.1", extras = ["http2"] }
3638
pycrypto = { version = "^2.6.1", optional = true }
3739
pycryptodome = { version = "*", optional = true }
3840
websockets = "^10.3"
39-
pyee = "^9.0.4"
41+
pyee = [
42+
{ version = "^9.0.4", python = "~3.7" },
43+
{ version = "^11.1.0", python = "^3.8" }
44+
]
4045

4146
[tool.poetry.extras]
4247
oldcrypto = ["pycrypto"]
@@ -47,7 +52,7 @@ pytest = "^7.1"
4752
mock = "^4.0.3"
4853
pep8-naming = "^0.4.1"
4954
pytest-cov = "^2.4"
50-
pytest-flake8 = "^1.1"
55+
flake8="^3.9.2"
5156
pytest-xdist = "^1.15"
5257
respx = "^0.20.0"
5358
importlib-metadata = "^4.12"

0 commit comments

Comments
 (0)