aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-08-13 20:02:51 -0400
committerEugene Triguba <hello@eugenetriguba.com>2025-08-13 20:02:51 -0400
commitf3bfaa7b54c2ddc6d15c265a4171098142ee5d09 (patch)
treec964f29fe8215ff3ae8369148c7412207933dc87 /pyproject.toml
parentRemove code of conduct (diff)
downloadconfig-file-f3bfaa7b54c2ddc6d15c265a4171098142ee5d09.zip
Migrate to uv
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml91
1 files changed, 45 insertions, 46 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 32040e8..5cd1ddf 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,12 +1,17 @@
-[tool.poetry]
+[project]
name = "config_file"
version = "0.13.1"
description = "Modify configuration files of various formats with the same simple API."
-authors = ["Eugene Triguba <eugenetriguba@gmail.com>"]
+authors = [{ name = "Eugene Triguba", email = "eugenetriguba@gmail.com" }]
+requires-python = "~=3.6"
readme = "README.md"
-repository = "https://github.com/eugenetriguba/config_file"
-documentation = "https://config-file.readthedocs.io/"
-keywords = ["configuration", "ini", "json", "toml", "yaml"]
+keywords = [
+ "configuration",
+ "ini",
+ "json",
+ "toml",
+ "yaml",
+]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
@@ -24,9 +29,32 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
-packages = [
- { include = "config_file" },
- { include = "tests", format = "sdist" }
+[project.optional-dependencies]
+toml = ["tomlkit"]
+yaml = ["ruamel.yaml>=0.17.16,<0.18"]
+
+[project.urls]
+Repository = "https://github.com/eugenetriguba/config_file"
+Documentation = "https://config-file.readthedocs.io/"
+
+[dependency-groups]
+dev = [
+ "pre-commit~=2.1 ; python_version >= '3.6.1' and python_version < '4'",
+ "autoflake>=1.3.1,<2",
+ "isort>=5.6.4,<6",
+ "seed-isort-config>=2.1.1,<3 ; python_version >= '3.6.1' and python_version < '4'",
+ "pytest>=6.0.0,<7 ; python_version >= '3.6' and python_version < '3.7'",
+ "pytest>=7,<8 ; python_version >= '3.7' and python_version < '4.0'",
+ "pytest-cov>=2.8.1,<3 ; python_version >= '3.6' and python_version < '3.7'",
+ "pytest-cov>=4,<5 ; python_version >= '3.7' and python_version < '4.0'",
+ "pytest-sugar>=0.9.3,<0.10 ; python_version >= '3.6' and python_version < '3.7'",
+ "pytest-sugar>=0.9.7,<0.10 ; python_version >= '3.7' and python_version < '4.0'",
+ "taskipy>=1.2.1,<2",
+ "bump2version>=1.0.0,<2",
+ "flake8>=3.7.9,<4",
+ "black>=20,<21",
+ "mypy>=0.971,<0.972 ; python_version >= '3.6' and python_version < '3.8'",
+ "mypy~=1.6 ; python_version ~= '3.8'",
]
[tool.taskipy.tasks]
@@ -37,46 +65,17 @@ lint_types = "poetry run mypy config_file/ tests/"
lint_precommit = "poetry run pre-commit run --all"
pytest = "poetry run pytest tests/"
-[tool.poetry.dependencies]
-python = "^3.6"
-tomlkit = [
- { version = "0.7.2", python = ">=3.6,<3.7", optional = true },
- { version = "^0.12.2", python = ">=3.7,<4", optional = true }
+[tool.hatch.build.targets.sdist]
+include = [
+ "config_file",
+ "tests",
]
-"ruamel.yaml" = { version = "^0.17.16", optional = true }
-
-[tool.poetry.extras]
-toml = ["tomlkit"]
-yaml = ["ruamel.yaml"]
-[tool.poetry.dev-dependencies]
-pre-commit = { version = "^2.1", python = "^3.6.1" }
-autoflake = "^1.3.1"
-isort = "^5.6.4"
-seed-isort-config = { version = "^2.1.1", python = "^3.6.1" }
-pytest = [
- { version = "^6.0.0", python = ">=3.6,<3.7" },
- { version = "^7", python = ">=3.7,<4.0" }
-]
-pytest-cov = [
- { version = "^2.8.1", python = ">=3.6,<3.7" },
- { version = "^4", python = ">=3.7,<4.0" }
-]
-pytest-sugar = [
- { version = "^0.9.3", python = ">=3.6,<3.7" },
- { version = "^0.9.7", python = ">=3.7,<4.0" }
-]
-taskipy = "^1.2.1"
-bump2version = "^1.0.0"
-flake8 = "^3.7.9"
-black = "^20.8b1"
-mypy = [
- { version = "^0.971", python = ">=3.6,<3.8" },
- { version = "^1.6", python = "^3.8"}
-]
+[tool.hatch.build.targets.wheel]
+include = ["config_file"]
[tool.black]
-target_version = ['py36']
+target_version = ['py313']
include = '\.pyi?$'
[tool.isort]
@@ -85,5 +84,5 @@ known_third_party = ["pytest"]
known_first_party = ["config_file"]
[build-system]
-requires = ["poetry>=1.0.2"]
-build-backend = "poetry.masonry.api"
+requires = ["setuptools>=42", "wheel"]
+build-backend = "setuptools.build_meta"