Skip to content

Commit

Permalink
Merge pull request #547 from ably/feature/support-3.1x
Browse files Browse the repository at this point in the history
Support latest python versions
  • Loading branch information
sacOO7 authored Jan 18, 2024
2 parents 10cb4a0 + 9585e46 commit 1a99f00
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 71 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']

python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -33,8 +32,6 @@ jobs:
poetry-version: 1.3.2
- name: Install dependencies
run: poetry install -E crypto
- name: Lint with flake8
run: poetry run flake8
- name: Generate rest sync code and tests
run: poetry run unasync
- name: Test with pytest
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linting check

on:
pull_request:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.3.2
- name: Install dependencies
run: poetry install -E crypto
- name: Lint with flake8
run: poetry run flake8
132 changes: 67 additions & 65 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
]
include = [
Expand All @@ -36,7 +38,10 @@ httpx = { version = "^0.24.1", extras = ["http2"] }
pycrypto = { version = "^2.6.1", optional = true }
pycryptodome = { version = "*", optional = true }
websockets = "^10.3"
pyee = "^9.0.4"
pyee = [
{ version = "^9.0.4", python = "~3.7" },
{ version = "^11.1.0", python = "^3.8" }
]

[tool.poetry.extras]
oldcrypto = ["pycrypto"]
Expand All @@ -47,7 +52,7 @@ pytest = "^7.1"
mock = "^4.0.3"
pep8-naming = "^0.4.1"
pytest-cov = "^2.4"
pytest-flake8 = "^1.1"
flake8="^3.9.2"
pytest-xdist = "^1.15"
respx = "^0.20.0"
importlib-metadata = "^4.12"
Expand Down

0 comments on commit 1a99f00

Please sign in to comment.