poetry2nix/pkgs/poetry/pyproject.toml

205 lines
5.1 KiB
TOML
Raw Normal View History

2019-11-19 14:50:31 +00:00
[tool.poetry]
name = "poetry"
2023-09-05 07:28:31 -04:00
version = "1.6.1"
2019-11-19 14:50:31 +00:00
description = "Python dependency management and packaging made easy."
2023-09-05 07:28:31 -04:00
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
2022-09-02 03:32:06 +12:00
maintainers = [
"Arun Babu Neelicattu <arun.neelicattu@gmail.com>",
"Bjorn Neergaard <bjorn@neersighted.com>",
"Branch Vincent <branchevincent@gmail.com>",
"Randy Döring <radoering.poetry@gmail.com>",
"Steph Samson <hello@stephsamson.com>",
"finswimmer <finswimmer77@gmail.com>",
2023-09-05 07:28:31 -04:00
"Secrus <b.sokorski@gmail.com>",
2019-11-19 14:50:31 +00:00
]
license = "MIT"
readme = "README.md"
2023-09-05 07:28:31 -04: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",
2023-09-05 07:28:31 -04:00
"Topic :: Software Development :: Libraries :: Python Modules",
2019-11-19 14:50:31 +00:00
]
2022-12-10 17:51:45 +13:00
[tool.poetry.urls]
Changelog = "https://python-poetry.org/history/"
2019-11-19 14:50:31 +00:00
# Requirements
[tool.poetry.dependencies]
2023-09-05 07:28:31 -04:00
python = "^3.8"
2020-10-01 14:36:24 +02:00
2023-09-05 07:28:31 -04:00
poetry-core = "1.7.0"
poetry-plugin-export = "^1.5.0"
build = "^0.10.0"
cachecontrol = { version = "^0.13.0", extras = ["filecache"] }
2022-12-10 17:51:45 +13:00
cleo = "^2.0.0"
crashtest = "^0.4.1"
2023-09-05 07:28:31 -04:00
dulwich = "^0.21.2"
importlib-metadata = { version = ">=4.4", python = "<3.10" }
installer = "^0.7.0"
# jsonschema 4.18 uses Rust-based libraries which causes issues when building from source
jsonschema = ">=4.10.0,<4.18.0"
keyring = "^24.0.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"
2023-09-05 07:28:31 -04:00
pkginfo = "^1.9.4"
platformdirs = "^3.0.0"
pyproject-hooks = "^1.0.0"
requests = "^2.26"
requests-toolbelt = ">=0.9.1,<2"
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" }
2023-09-05 07:28:31 -04:00
tomlkit = ">=0.11.4,<1.0.0"
2022-12-10 17:51:45 +13:00
# trove-classifiers uses calver, so version is unclamped
trove-classifiers = ">=2022.5.19"
2023-09-05 07:28:31 -04:00
virtualenv = "^20.22.0"
2022-12-10 17:51:45 +13:00
xattr = { version = "^0.10.0", markers = "sys_platform == 'darwin'" }
2019-11-19 14:50:31 +00:00
2022-10-11 11:37:31 +13:00
[tool.poetry.group.dev.dependencies]
2023-09-05 07:28:31 -04:00
pre-commit = ">=2.6"
2022-10-11 11:37:31 +13:00
[tool.poetry.group.test.dependencies]
2023-09-05 07:28:31 -04:00
deepdiff = "^6.3"
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"
2023-09-05 07:28:31 -04:00
pytest-xdist = { version = "^3.1", extras = ["psutil"] }
2022-10-11 11:37:31 +13:00
[tool.poetry.group.typing.dependencies]
2023-09-05 07:28:31 -04:00
mypy = ">=1.0"
2022-09-02 03:32:06 +12:00
types-jsonschema = ">=4.9.0"
types-requests = ">=2.28.8"
2022-10-11 11:37:31 +13:00
# 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]
2023-09-05 07:28:31 -04:00
requires = ["poetry-core>=1.5.0"]
2020-10-01 14:36:24 +02:00
build-backend = "poetry.core.masonry.api"
2019-12-11 14:11:31 +01:00
2023-09-05 07:28:31 -04:00
[tool.ruff]
fix = true
unfixable = [
"ERA", # do not autoremove commented out code
]
target-version = "py38"
line-length = 88
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ERA", # flake8-eradicate/eradicate
"I", # isort
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep
"RUF", # ruff checks
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
]
ignore = [
"B904", # use 'raise ... from err'
"B905", # use explicit 'strict=' parameter with 'zip()'
"N818", # Exception name should be named with an Error suffix
]
extend-exclude = [
"docs/*",
# External to the project's coding standards
"tests/**/fixtures/*",
]
2020-06-08 17:29:43 +02:00
2023-09-05 07:28:31 -04:00
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.isort]
force-single-line = true
lines-between-types = 1
lines-after-imports = 2
known-first-party = ["poetry"]
known-third-party = ["poetry.core"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.per-file-ignores]
"src/poetry/console/*" = ["RUF012"] # Can't annotate properly until new version of Cleo
2020-06-08 17:29:43 +02:00
[tool.black]
2023-09-05 07:28:31 -04:00
target-version = ['py38']
2022-09-02 03:32:06 +12:00
preview = true
force-exclude = '''
.*/setup\.py$
2020-06-08 17:29:43 +02:00
'''
2022-09-02 03:32:06 +12:00
[tool.mypy]
2023-09-05 07:28:31 -04:00
files = "src, tests"
2022-09-02 03:32:06 +12:00
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",
]
2023-09-05 07:28:31 -04:00
exclude = [
"tests/fixtures",
"tests/masonry/builders/fixtures",
"tests/utils/fixtures",
]
2022-09-02 03:32:06 +12:00
2023-09-05 07:28:31 -04:00
# use of importlib-metadata backport makes it impossible to satisfy mypy
# without some ignores: but we get different sets of ignores at different
# python versions.
2022-09-02 03:32:06 +12:00
[[tool.mypy.overrides]]
module = [
2023-09-05 07:28:31 -04:00
'poetry.plugins.plugin_manager',
'poetry.repositories.installed_repository',
'poetry.utils.env.site_packages',
'tests.console.commands.self.test_show_plugins',
'tests.helpers',
'tests.repositories.test_installed_repository',
2022-09-02 03:32:06 +12:00
]
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = [
2023-09-05 07:28:31 -04:00
'deepdiff.*',
'httpretty.*',
'keyring.*',
'pexpect.*',
'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"
2023-09-05 07:28:31 -04:00
testpaths = ["tests"]
2022-10-11 11:37:31 +13:00
2022-09-02 03:32:06 +12:00
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]