From 13cc917783e91c850bfbaaa80939f61cb5cdcc24 Mon Sep 17 00:00:00 2001 From: Bartek Sokorski Date: Mon, 15 May 2023 23:24:14 +0200 Subject: [PATCH 1/2] Put dependencies into groups --- poetry.lock | 2 +- pyproject.toml | 29 +++++++++-------------------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/poetry.lock b/poetry.lock index 29599f513..7d6115722 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1085,4 +1085,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "e639d315256558561a1c31a5e554a36e14470200885b3d2c44f503dece17212a" +content-hash = "3330a4f99db4b96dd10bfbba5b3d695ff4ad25ea6237c9f06a102a4af9f4116b" diff --git a/pyproject.toml b/pyproject.toml index 175356564..d078acf15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,34 +3,21 @@ name = "poetry-core" version = "1.6.0" description = "Poetry PEP 517 Build Backend" authors = ["Sébastien Eustace "] - license = "MIT" - readme = "README.md" - homepage = "https://github.com/python-poetry/poetry-core" repository = "https://github.com/python-poetry/poetry-core" - keywords = ["packaging", "dependency", "poetry"] - classifiers = [ "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules" ] - packages = [ { include = "poetry", from = "src" }, ] include = [ { path = "tests", format = "sdist" }, ] -exclude = [ - "**/*.pyc", - "**/*.pyi", -] - -[tool.poetry.build] -generate-setup-file = false [tool.poetry.urls] "Bug Tracker" = "https://github.com/python-poetry/poetry/issues" @@ -41,18 +28,22 @@ python = "^3.7" # required for compatibility importlib-metadata = {version = ">=1.7.0", python = "<3.8"} -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pre-commit = ">=2.15.0" +tox = ">=3.0" +vendoring = {version = ">=1.0", python = "^3.8"} pyrsistent = ">=0.18.0" + +[tool.poetry.group.test.dependencies] pytest = ">=7.1.2" pytest-cov = ">=3.0.0" -pytest-mock = ">=3.5" -tox = ">=3.0" -vendoring = {version = ">=1.0", python = "^3.8"} +pytest-mock = ">=3.10" build = ">=0.10.0" -mypy = ">=1.0" setuptools = ">=60" tomli-w = "^1.0.0" + +[tool.poetry.group.typing.dependencies] +mypy = ">=1.0" types-jsonschema = ">=4.4.4" types-setuptools = ">=57.4.14" @@ -102,9 +93,7 @@ required-imports = ["from __future__ import annotations"] [tool.black] -line-length = 88 preview = true -include = '\.pyi?$' extend-exclude = "src/poetry/core/_vendor/*" From 0611293adcf5b96961c5416ac76f179e08543d32 Mon Sep 17 00:00:00 2001 From: Bartek Sokorski Date: Tue, 16 May 2023 01:01:28 +0200 Subject: [PATCH 2/2] Drop pyrsistent --- poetry.lock | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7d6115722..62291ab31 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1085,4 +1085,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.7" -content-hash = "3330a4f99db4b96dd10bfbba5b3d695ff4ad25ea6237c9f06a102a4af9f4116b" +content-hash = "a35979d7ec4637241aaa45fac3373d4669e112f6e79958bd930160c2f0e0da22" diff --git a/pyproject.toml b/pyproject.toml index d078acf15..80ef1a19d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,6 @@ importlib-metadata = {version = ">=1.7.0", python = "<3.8"} pre-commit = ">=2.15.0" tox = ">=3.0" vendoring = {version = ">=1.0", python = "^3.8"} -pyrsistent = ">=0.18.0" [tool.poetry.group.test.dependencies] pytest = ">=7.1.2"