Skip to content

Commit 0f81f47

Browse files
authored
chore: upgrade poetry version 2.1 (#90)
* chore: upgrade poetry version 2.1 * ci: adapt to latest python version --------- Co-authored-by: Loïc Motheu <66940960+loicatNGT@users.noreply.github.com>
1 parent 64d609f commit 0f81f47

8 files changed

Lines changed: 50 additions & 50 deletions

File tree

.github/actions/setup-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
python-version:
66
description: "Python version to use"
77
required: false
8-
default: "3.12"
8+
default: "3.13"
99
cache-key-suffix:
1010
description: "Additional suffix for cache key"
1111
required: false

.github/workflows/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
outputs:
66
python-version:
77
description: "Python version to use"
8-
value: "3.12"
8+
value: "3.13"
99
poetry-cache-path:
1010
description: "Poetry cache paths"
1111
value: |
@@ -19,7 +19,7 @@ jobs:
1919
config:
2020
runs-on: ubuntu-latest
2121
outputs:
22-
python-version: "3.12"
22+
python-version: "3.13"
2323
poetry-cache-path: |
2424
~/.cache/pypoetry
2525
~/.poetry

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12.8
1+
3.13.3

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The main CI workflow is defined in `.github/workflows/main.yml`.
7575
This project includes the following dependencies:
7676

7777
- **Core Dependencies**:
78-
- `python`: ^3.12 (switch the `.python-version` file to your liking)
78+
- `python`: ^3.13 (switch the `.python-version` file to your liking)
7979
- `loguru`: ^0.7.3 (useful logging package)
8080

8181
- **Development Dependencies**:
@@ -104,7 +104,7 @@ pyenv install --list
104104
Download & install a specific Python version:
105105

106106
```bash
107-
pyenv install 3.12.8
107+
pyenv install 3.13.3
108108
```
109109

110110
List the global Python version set by your system:
@@ -122,13 +122,13 @@ pyenv local
122122
Set the global Python version for your system:
123123

124124
```bash
125-
pyenv global 3.12.8
125+
pyenv global 3.13.3
126126
```
127127

128128
Set the local Python version for your project:
129129

130130
```bash
131-
pyenv local 3.12.8
131+
pyenv local 3.13.3
132132
```
133133

134134
Feel free to utilize Pyenv and modify the `.python-version` file to your preference.

poetry.lock

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

pyproject.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
[tool.poetry]
1+
[project]
22
name = "python-template"
33
version = "0.7.0"
44
description = "Used to templatize python projects."
5-
authors = ["Loïc Motheu <lmotheu@gmail.com>"]
5+
authors = [{ name = "Loïc Motheu", email = "lmotheu@gmail.com" }]
66
readme = "README.md"
7+
requires-python = ">=3.13,<4.0"
78
package-mode = false
8-
9-
[tool.poetry.dependencies]
10-
python = "^3.12"
11-
loguru = "^0.7.3"
9+
dependencies = [
10+
"loguru (>=0.7.3,<0.8.0)"
11+
]
1212

1313
[tool.poetry.group.dev.dependencies]
1414
mypy = "^1.15.0"
1515
pre-commit = "^4.2.0"
1616
pytest = "^8.3.5"
1717
ruff = "^0.11.4"
1818

19-
[tool.ruff]
19+
[project.ruff]
2020
src = ["src"]
2121
line-length = 120
2222
indent-width = 4
2323

24-
[tool.ruff.format]
24+
[project.ruff.format]
2525
quote-style = "double"
2626
indent-style = "space"
2727
skip-magic-trailing-comma = false
2828
line-ending = "auto"
2929

30-
[tool.ruff.lint]
30+
[project.ruff.lint]
3131
select = ["ALL"]
3232
ignore = ["D203", "COM812", "ISC001", "D213", "FA102"]
3333
fixable = ["ALL"]
3434
unfixable = []
3535
exclude = ["tests/*"]
3636

37-
[tool.mypy]
37+
[project.mypy]
3838
exclude = "tests/*"
3939

4040
[build-system]
41-
requires = ["poetry-core"]
42-
build-backend = "poetry.core.masonry.api"
41+
requires = ["poetry-core>=2.0.0,<3.0.0"]
42+
build-backend = "poetry.core.masonry.api"

src/python_template/__init__.py

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)