Skip to content

Commit 3bc3b65

Browse files
committed
modernize pyproject.toml to PEP 621 standard
1 parent 9c93d94 commit 3bc3b65

File tree

2 files changed

+123
-25
lines changed

2 files changed

+123
-25
lines changed

poetry.lock

Lines changed: 111 additions & 12 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 & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
[tool.poetry]
1+
[build-system]
2+
requires = ["poetry-core"]
3+
build-backend = "poetry.core.masonry.api"
4+
5+
[project]
26
name = "demo"
37
version = "1.0.0"
48
description = ""
5-
authors = ["Erdem Ozkol <github@erdemozkol.com>"]
69
readme = "README.md"
10+
authors = [{name = "Erdem Ozkol", email = "github@erdemozkol.com"}]
11+
12+
[project.scripts]
13+
install-js-dependencies = "scripts:install_js_dependencies"
14+
minify-media-files = "scripts:minify_media_files"
715

816
[tool.poetry.dependencies]
917
python = "^3.10"
@@ -20,21 +28,12 @@ setuptools = "^70.1.0"
2028
pre-commit = "^3.7.1"
2129
ipdb = "^0.13.13"
2230

23-
24-
[build-system]
25-
requires = ["poetry-core"]
26-
build-backend = "poetry.core.masonry.api"
27-
2831
[tool.black]
29-
target-version = ["py310"]
32+
target-version = ["py312"]
3033
extend-exclude = "(/dist|/.venv|/venv|/env|/build)/"
3134

3235
[tool.isort]
3336
profile = "black"
3437
multi_line_output = 3
3538
skip_gitignore = true
36-
append_only = true
37-
38-
[tool.poetry.scripts]
39-
install-js-dependencies = "scripts:install_js_dependencies"
40-
minify-media-files = "scripts:minify_media_files"
39+
append_only = true

0 commit comments

Comments
 (0)