Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Bump Python max version
Browse files Browse the repository at this point in the history
I guess upcoming Python 3.9 minor releases will not break anything,
so it should be safe to simply state we do support Python until 3.10.

To be more confident, I updated the CI configuration to test min/max supported
Python versions.
  • Loading branch information
ca11ab1e committed May 26, 2022
1 parent cd599a9 commit 64cc55d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ aliases:
only:
- master
requires:
- test
- test-py-min
- test-py-max

jobs:
test:
test-py-min: &test-template
docker:
- image: cimg/python:3.7.12-node
resource_class: medium
Expand Down Expand Up @@ -42,13 +43,20 @@ jobs:
poetry run pytest -s --junitxml=test-results/junit.xml -vv $TESTFILES
- store_test_results:
path: test-results

test-py-max:
<<: *test-template
docker:
- image: cimg/python:3.9-node

package_build_and_publish:
docker:
- image: cimg/python:3.7.12
resource_class: medium
steps:
- checkout
- run: ./scripts/package_build_and_publish.sh

image_build_and_push:
docker:
- image: cimg/base:2021.04
Expand Down Expand Up @@ -79,7 +87,8 @@ workflows:
version: 2
test_and_publish:
jobs:
- test
- test-py-min
- test-py-max
- package_build_and_publish:
<<: *on_master_after_test
- image_build_and_push:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pip install starknet-devnet

### Requirements

Works with Python versions >=3.7.2 and <=3.9.10.
Works with Python versions >=3.7.2 and <3.10.

On Ubuntu/Debian, first run:

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ homepage = "https://github.com/Shard-Labs/starknet-devnet"
keywords = ["starknet", "cairo", "testnet", "local", "server"]

[tool.poetry.dependencies]
python = "^3.7.2"
python = ">=3.7.2,<3.10"
Flask = {extras = ["async"], version = "~2.0.3"}
flask-cors = "~3.0.10"
cairo-lang = "0.8.2.1"
Expand Down

0 comments on commit 64cc55d

Please sign in to comment.