Skip to content

Commit 687b0c9

Browse files
committed
Migrate pyproject.toml to PEP 621 for Poetry 2.x
Move metadata from [tool.poetry] to [project] tables per PEP 621, which Poetry 2.x expects. Only Poetry-specific config (packages, dev group) remains under [tool.poetry].
1 parent ddaa305 commit 687b0c9

2 files changed

Lines changed: 41 additions & 24 deletions

File tree

poetry.lock

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

pyproject.toml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
1-
2-
[tool.poetry]
3-
authors = ["Johannes Filter <hi@jfilter.de>"]
1+
[project]
2+
name = "split-folders"
3+
version = "0.5.1"
4+
description = "Split folders with files (e.g. images) into training, validation and test (dataset) folders."
5+
readme = "README.md"
6+
license = "MIT"
7+
requires-python = ">=3.10"
8+
authors = [
9+
{name = "Johannes Filter", email = "hi@jfilter.de"},
10+
]
11+
keywords = ["machine-learning", "training-validation-test", "datasets", "folders"]
412
classifiers = [
513
"Programming Language :: Python :: 3.10",
614
"Programming Language :: Python :: 3.11",
715
"Programming Language :: Python :: 3.12",
816
"Programming Language :: Python :: 3.13",
9-
"License :: OSI Approved :: MIT License",
1017
"Topic :: Utilities",
1118
]
12-
description = "Split folders with files (e.g. images) into training, validation and test (dataset) folders."
13-
keywords = ["machine-learning", "training-validation-test", "datasets", "folders"]
14-
license = "MIT"
15-
name = "split_folders"
16-
packages = [
17-
{include = "splitfolders"},
18-
]
19-
readme = "README.md"
20-
repository = "https://github.com/jfilter/split-folders"
21-
version = "0.5.1"
2219

23-
[tool.poetry.scripts]
20+
[project.optional-dependencies]
21+
full = ["tqdm"]
22+
23+
[project.scripts]
2424
split-folders = "splitfolders.cli:run"
2525
split_folders = "splitfolders.cli:run"
2626
splitfolders = "splitfolders.cli:run"
2727

28-
[tool.poetry.dependencies]
29-
python = ">=3.10"
30-
tqdm = {version = "*", optional = true}
28+
[project.urls]
29+
Repository = "https://github.com/jfilter/split-folders"
30+
31+
[tool.poetry]
32+
packages = [
33+
{include = "splitfolders"},
34+
]
3135

3236
[tool.poetry.group.dev.dependencies]
3337
pytest = "*"
3438
ruff = "*"
3539
tqdm = "*"
3640

37-
[tool.poetry.extras]
38-
full = ["tqdm"]
39-
4041
[tool.ruff]
4142
target-version = "py310"
4243
line-length = 120

0 commit comments

Comments
 (0)