Skip to content

Commit 3924089

Browse files
Set Python 3.9 as minimum version (#1544)
* Set poetry version to `1.8.5` * Temporarily bring back poetry to latest version * Revert "Temporarily bring back poetry to latest version" This reverts commit d8cab89. * Use latest poetry; Require python >= 3.9 * Run `poetry lock --no-update` * Remove poetry configuration of `modern-installation` * Add `poetry self add poetry-plugin-export` in docs workflow * Update migration guide * Trigger CI * Update `pyproject.toml` and `poetry.lock` * Update dependencies versions * Update license to TOML format * Update `[project]` and `[tool.poetry]` * Use `[project.urls]` * Bump artifact actions to v4 * Update development guide
1 parent a8d7353 commit 3924089

File tree

7 files changed

+1060
-762
lines changed

7 files changed

+1060
-762
lines changed

.github/workflows/checks.yml

+7-14
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
run: |
3333
python -m pip install --upgrade pip
3434
pip install poetry
35-
poetry config installer.modern-installation false
3635
3736
- name: Set up Python 3.12
3837
uses: actions/setup-python@v4
@@ -46,7 +45,7 @@ jobs:
4645
4746
- name: Check poetry.lock
4847
run: |
49-
poetry lock --check
48+
poetry check --lock
5049
5150
- name: Lint
5251
run: |
@@ -85,7 +84,6 @@ jobs:
8584
run: |
8685
python -m pip install --upgrade pip
8786
pip install poetry
88-
poetry config installer.modern-installation false
8987
9088
- name: Set up Python ${{ matrix.python-version }}
9189
uses: actions/setup-python@v4
@@ -125,7 +123,7 @@ jobs:
125123
poetry run poe compile_contracts v1
126124
127125
- name: Upload contracts artifacts
128-
uses: actions/upload-artifact@v3
126+
uses: actions/upload-artifact@v4
129127
with:
130128
name: contract-artifacts
131129
path: starknet_py/tests/e2e/mock/
@@ -150,7 +148,7 @@ jobs:
150148
- uses: actions/checkout@v4
151149

152150
- name: Download contracts
153-
uses: actions/download-artifact@v3
151+
uses: actions/download-artifact@v4
154152
with:
155153
name: contract-artifacts
156154
path: starknet_py/tests/e2e/mock/
@@ -166,7 +164,6 @@ jobs:
166164
run: |
167165
python -m pip install --upgrade pip
168166
pip install poetry
169-
poetry config installer.modern-installation false
170167
171168
- name: Set up Python ${{ matrix.python-version }}
172169
uses: actions/setup-python@v4
@@ -262,7 +259,7 @@ jobs:
262259
- uses: actions/checkout@v4
263260

264261
- name: Download contracts
265-
uses: actions/download-artifact@v3
262+
uses: actions/download-artifact@v4
266263
with:
267264
name: contract-artifacts
268265
path: starknet_py/tests/e2e/mock/
@@ -278,7 +275,6 @@ jobs:
278275
run: |
279276
python -m pip install --upgrade pip
280277
pip install poetry
281-
poetry config installer.modern-installation false
282278
283279
- name: Set up Python 3.12
284280
uses: actions/setup-python@v4
@@ -334,7 +330,7 @@ jobs:
334330
toolchain: 1.79.0 # Doesn't work with "stable"
335331

336332
- name: Download contracts
337-
uses: actions/download-artifact@v3
333+
uses: actions/download-artifact@v4
338334
with:
339335
name: contract-artifacts
340336
path: starknet_py/tests/e2e/mock/
@@ -365,7 +361,6 @@ jobs:
365361
run: |
366362
python -m pip install --upgrade pip
367363
pip install poetry
368-
poetry config installer.modern-installation false
369364
370365
- name: Set up Python ${{ matrix.python-version }}
371366
uses: actions/setup-python@v4
@@ -411,7 +406,7 @@ jobs:
411406
- uses: actions/checkout@v4
412407

413408
- name: Download contracts
414-
uses: actions/download-artifact@v3
409+
uses: actions/download-artifact@v4
415410
with:
416411
name: contract-artifacts
417412
path: starknet_py/tests/e2e/mock/
@@ -427,7 +422,6 @@ jobs:
427422
run: |
428423
python -m pip install --upgrade pip
429424
pip install poetry
430-
poetry config installer.modern-installation false
431425
432426
- name: Set up Python ${{ matrix.python-version }}
433427
uses: actions/setup-python@v4
@@ -478,7 +472,7 @@ jobs:
478472
toolchain: 1.79.0 # Doesn't work with "stable"
479473

480474
- name: Download contracts
481-
uses: actions/download-artifact@v3
475+
uses: actions/download-artifact@v4
482476
with:
483477
name: contract-artifacts
484478
path: starknet_py/tests/e2e/mock/
@@ -494,7 +488,6 @@ jobs:
494488
run: |
495489
python -m pip install --upgrade pip
496490
pip install poetry
497-
poetry config installer.modern-installation false
498491
499492
- name: Set up Python ${{ matrix.python-version }}
500493
uses: actions/setup-python@v4

.github/workflows/package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build SDist
2323
run: poetry build -f sdist
2424

25-
- uses: actions/upload-artifact@v3
25+
- uses: actions/upload-artifact@v4
2626
with:
2727
path: dist/*.tar.gz
2828

@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333

3434
steps:
35-
- uses: actions/download-artifact@v3
35+
- uses: actions/download-artifact@v4
3636
with:
3737
name: artifact
3838
path: dist

.readthedocs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build:
99
jobs:
1010
pre_install:
1111
- pip install poetry
12+
- poetry self add poetry-plugin-export
1213
- poetry export -f requirements.txt --output requirements.txt --without-hashes -E docs -E ledger
1314

1415
sphinx:

docs/development.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ Release checklist
129129
Perform these actions before releasing a new starknet.py version
130130

131131
1. Bump package version in ``pyproject.toml``
132-
2. Re-lock using ``poetry lock --no-update``
132+
2. Re-lock using ``poetry lock``
133133
3. Make a PR to development with name of format ``vMAJOR.MINOR.PATCHES-alpha`` and merge it making sure that the merge commit message is the same as PR name
134134
4. Merge development into master without squashing
135135

docs/migration_guide.rst

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Migration guide
55
[unreleased] Migration guide
66
******************************
77

8+
This version of starknet.py requires Python 3.9 as a minimum version.
9+
810
[unreleased] Minor changes
911
--------------------------
1012

0 commit comments

Comments
 (0)