poetry2nix/pkgs/poetry/pyproject.toml

199 lines
4.9 KiB
TOML
Raw Normal View History

2019-11-19 14:50:31 +00:00
[tool.poetry]
name = "poetry"
2023-05-01 08:22:51 -04:00
version = "1.3.2"
2019-11-19 14:50:31 +00:00
description = "Python dependency management and packaging made easy."
authors = [
2022-09-02 03:32:06 +12:00
"Sébastien Eustace <sebastien@eustace.io>",
]
maintainers = [
"Arun Babu Neelicattu <arun.neelicattu@gmail.com>",
"Bjorn Neergaard <bjorn@neersighted.com>",
"Branch Vincent <branchevincent@gmail.com>",
"Bryce Drennan <github@accounts.brycedrennan.com>",
"Daniel Eades <danieleades@hotmail.com>",
"Randy Döring <radoering.poetry@gmail.com>",
"Steph Samson <hello@stephsamson.com>",
"finswimmer <finswimmer77@gmail.com>",
2019-11-19 14:50:31 +00:00
]
license = "MIT"
readme = "README.md"
2022-09-02 03:32:06 +12:00
packages = [
{ include = "poetry", from = "src" }
]
include = [
{ path = "tests", format = "sdist" }
]
2019-12-13 12:53:27 +00:00
homepage = "https://python-poetry.org/"
repository = "https://github.com/python-poetry/poetry"
documentation = "https://python-poetry.org/docs"
2019-11-19 14:50:31 +00:00
keywords = ["packaging", "dependency", "poetry"]
classifiers = [
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules"
]
2022-12-10 17:51:45 +13:00
[tool.poetry.urls]
Changelog = "https://python-poetry.org/history/"
2022-09-02 03:32:06 +12:00
[tool.poetry.build]
generate-setup-file = false
2019-11-19 14:50:31 +00:00
# Requirements
[tool.poetry.dependencies]
2022-09-02 03:32:06 +12:00
python = "^3.7"
2020-10-01 14:36:24 +02:00
poetry-core = "1.4.0"
poetry-plugin-export = "^1.2.0"
2022-10-07 18:08:31 +13:00
"backports.cached-property" = { version = "^1.0.2", python = "<3.8" }
2022-09-02 03:32:06 +12:00
cachecontrol = { version = "^0.12.9", extras = ["filecache"] }
2022-12-10 17:51:45 +13:00
cleo = "^2.0.0"
crashtest = "^0.4.1"
dulwich = "^0.20.46"
2022-12-10 17:51:45 +13:00
filelock = "^3.8.0"
2019-11-19 14:50:31 +00:00
html5lib = "^1.0"
importlib-metadata = { version = "^4.4", python = "<3.10" }
2022-09-02 03:32:06 +12:00
jsonschema = "^4.10.0"
2022-12-10 17:51:45 +13:00
keyring = "^23.9.0"
2022-09-02 03:32:06 +12:00
# packaging uses calver, so version is unclamped
packaging = ">=20.4"
2019-11-19 14:50:31 +00:00
pexpect = "^4.7.0"
pkginfo = "^1.5"
2022-09-02 03:32:06 +12:00
platformdirs = "^2.5.2"
requests = "^2.18"
2022-12-10 17:51:45 +13:00
requests-toolbelt = ">=0.9.1,<0.11.0"
2022-09-02 03:32:06 +12:00
shellingham = "^1.5"
2022-12-10 17:51:45 +13:00
tomli = { version = "^2.0.1", python = "<3.11" }
2022-09-02 03:32:06 +12:00
# exclude 0.11.2 and 0.11.3 due to https://github.com/sdispater/tomlkit/issues/225
tomlkit = ">=0.11.1,<1.0.0,!=0.11.2,!=0.11.3"
2022-12-10 17:51:45 +13:00
# trove-classifiers uses calver, so version is unclamped
trove-classifiers = ">=2022.5.19"
2022-09-02 03:32:06 +12:00
# exclude 20.4.5 - 20.4.6 due to https://github.com/pypa/pip/issues/9953
2022-12-10 17:51:45 +13:00
virtualenv = [
{ version = "^20.4.3,!=20.4.5,!=20.4.6", markers = "sys_platform != 'win32' or python_version != '3.9'" },
2022-12-10 17:51:45 +13:00
# see https://github.com/python-poetry/poetry/pull/6950 for details
{ version = "^20.4.3,!=20.4.5,!=20.4.6,<20.16.6", markers = "sys_platform == 'win32' and python_version == '3.9'" },
2022-12-10 17:51:45 +13:00
]
xattr = { version = "^0.10.0", markers = "sys_platform == 'darwin'" }
2022-09-02 03:32:06 +12:00
urllib3 = "^1.26.0"
2019-11-19 14:50:31 +00:00
2022-10-11 11:37:31 +13:00
[tool.poetry.group.dev.dependencies]
2022-09-02 03:32:06 +12:00
pre-commit = "^2.6"
2022-10-11 11:37:31 +13:00
[tool.poetry.group.test.dependencies]
2022-12-10 17:51:45 +13:00
# Cachy frozen to test backwards compatibility for `poetry.utils.cache`.
cachy = "0.3.0"
deepdiff = "^5.0"
flatdict = "^4.0.1"
2022-09-02 03:32:06 +12:00
httpretty = "^1.0"
2022-10-11 11:37:31 +13:00
pytest = "^7.1"
pytest-cov = "^4.0"
pytest-mock = "^3.9"
pytest-randomly = "^3.12"
pytest-xdist = { version = "^2.5", extras = ["psutil"] }
2022-09-02 03:32:06 +12:00
zipp = { version = "^3.4", python = "<3.8" }
2022-10-11 11:37:31 +13:00
[tool.poetry.group.typing.dependencies]
mypy = ">=0.990"
2022-09-02 03:32:06 +12:00
types-html5lib = ">=1.1.9"
types-jsonschema = ">=4.9.0"
types-requests = ">=2.28.8"
2022-10-11 11:37:31 +13:00
typing-extensions = { version = "^4.0.0", python = "<3.8" }
# only used in github actions
[tool.poetry.group.github-actions]
optional = true
[tool.poetry.group.github-actions.dependencies]
pytest-github-actions-annotate-failures = "^0.1.7"
2019-11-19 14:50:31 +00:00
[tool.poetry.scripts]
2022-09-02 03:32:06 +12:00
poetry = "poetry.console.application:main"
2019-11-19 14:50:31 +00:00
2019-12-11 14:11:31 +01:00
[build-system]
2022-10-07 18:08:31 +13:00
requires = ["poetry-core>=1.1.0"]
2020-10-01 14:36:24 +02:00
build-backend = "poetry.core.masonry.api"
2019-12-11 14:11:31 +01:00
2019-11-19 14:50:31 +00:00
[tool.isort]
2022-09-02 03:32:06 +12:00
py_version = 37
2020-10-01 14:36:24 +02:00
profile = "black"
2019-11-19 14:50:31 +00:00
force_single_line = true
2022-09-02 03:32:06 +12:00
combine_as_imports = true
2019-11-19 14:50:31 +00:00
lines_between_types = 1
2022-09-02 03:32:06 +12:00
lines_after_imports = 2
src_paths = ["src", "tests"]
extend_skip = ["setup.py"]
known_third_party = ["poetry.core"]
2020-06-08 17:29:43 +02:00
[tool.black]
2022-09-02 03:32:06 +12:00
target-version = ['py37']
preview = true
force-exclude = '''
.*/setup\.py$
2020-06-08 17:29:43 +02:00
'''
2022-09-02 03:32:06 +12:00
[tool.mypy]
files = "src"
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
show_error_codes = true
strict = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
# use of importlib-metadata backport at python3.7 makes it impossible to
# satisfy mypy without some ignores: but we get a different set of ignores at
# different python versions.
#
# <https://github.com/python/mypy/issues/8823>, meanwhile suppress that
# warning.
[[tool.mypy.overrides]]
module = [
'poetry.console.commands.self.show.plugins',
'poetry.installation.executor',
'poetry.mixology.version_solver',
'poetry.plugins.plugin_manager',
'poetry.repositories.installed_repository',
'poetry.utils.env',
2022-09-02 03:32:06 +12:00
]
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = [
'cachecontrol.*',
'lockfile.*',
'pexpect.*',
'pkginfo.*',
'requests_toolbelt.*',
'shellingham.*',
'virtualenv.*',
'xattr.*',
2022-09-02 03:32:06 +12:00
]
ignore_missing_imports = true
2022-10-11 11:37:31 +13:00
[tool.pytest.ini_options]
addopts = "-n auto"
testpaths = [
"tests"
]
2022-09-02 03:32:06 +12:00
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]