Skip to content

Commit 4f0871b

Browse files
chore(python): support versions from 3.8 to 3.12 (#145)
1 parent e7a2928 commit 4f0871b

File tree

6 files changed

+23
-16
lines changed

6 files changed

+23
-16
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,30 @@ jobs:
88
lint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1212
- name: Setup Python
13-
uses: actions/setup-python@v4
13+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
1414
with:
15-
python-version: 3.11
16-
- uses: pre-commit/[email protected].0
15+
python-version: 3.12
16+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
1717
build:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
2121
tox_env:
22-
- py37
2322
- py38
2423
- py39
2524
- py310
25+
- py311
26+
- py312
2627
- pypy3
2728
steps:
28-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2930
- name: Fedora Tox with ${{ matrix.tox_env }}
30-
uses: fedora-python/tox-github-action@v37.0
31+
uses: fedora-python/tox-github-action@6f0add50b32e4bedfd98976984ffa499af4c218b # v39.0
3132
with:
3233
tox_env: ${{ matrix.tox_env }}
33-
- uses: actions/setup-python@v4
34+
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
3435
with:
3536
cache: pip
3637
cache-dependency-path: |
@@ -40,9 +41,9 @@ jobs:
4041
name: Build deploy
4142
runs-on: ubuntu-latest
4243
steps:
43-
- uses: actions/checkout@v3
44-
- uses: actions/setup-python@v4
45-
- uses: casperdcl/deploy-pypi@v2.3.2
44+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
45+
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
46+
- uses: casperdcl/deploy-pypi@10cf4cd83fc885003a8d4f37f93a5a0f0fc2d2f4 # v2.4.1
4647
with:
4748
password: ${{ secrets.PYPI_TOKEN }}
4849
build: true

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
- Added `encrypted` boolean flag to Storage for encryption at rest support
1515

16+
### Changed
17+
18+
- Python versions supported: 3.8, 3.9, 3.10, 3.11, 3.12, PyPy3. Dropped support for 3.7.
19+
1620
## [2.5.1] - 2023-09-19
1721

1822
### Added

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ python setup.py install
2424

2525
### Supported Python versions in API v2.5.1
2626

27-
- Python 3.7
2827
- Python 3.8
2928
- Python 3.9
29+
- Python 3.10
30+
- Python 3.11
31+
- Python 3.12
3032
- PyPy3
3133

3234
**Python 2 has been deprecated**

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[tool.black]
22
line-length = 99
3-
target-version = ['py37']
3+
target-version = ['py38']
44
skip-string-normalization = true
55

66
[tool.ruff]
7-
target-version = "py37"
7+
target-version = "py38"
88
exclude = [
99
".git",
1010
"ENV",

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ packages=['upcloud_api', 'upcloud_api.cloud_manager']
1111
license = MIT
1212

1313
[options]
14-
python_requires = >=3.7, <4
14+
python_requires = >=3.8, <4
1515
setup_requires =
1616
setuptools
1717
install_requires =

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py37, py38, py39, py310, pypy3
7+
envlist = py38, py39, py310, py311, py312, pypy3
88
skip_missing_interpreters = True
99

1010
[testenv]

0 commit comments

Comments
 (0)