forked from python-poetry/poetry-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
161 lines (137 loc) · 3.98 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[tool.poetry]
name = "poetry-core"
version = "1.1.0a6"
description = "Poetry PEP 517 Build Backend"
authors = ["Sébastien Eustace <[email protected]>"]
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.urls]
"Bug Tracker" = "https://github.com/python-poetry/poetry/issues"
[tool.poetry.dependencies]
python = "^3.6"
# required for compatibility
importlib-metadata = {version = ">=1.7.0", python = "<3.8"}
dataclasses = {version = ">=0.8", python = "~3.6"}
[tool.poetry.dev-dependencies]
pre-commit = {version = "^2.15.0", python = "^3.6.1"}
pyrsistent = "^0.18.0"
pytest = "^6.2"
pytest-cov = "^2.8"
pytest-mock = "^3.5"
tox = "^3.0"
vendoring = {version = "^0.3", python = "^3.8"}
pep517 = "^0.11.0"
black = {version = "^21.9b0", markers = "python_version >= '3.6.2' and python_version < '4.0' and implementation_name != 'pypy'"}
isort = {version = "^5.9.3", python = "^3.6.1"}
[tool.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| src/poetry/core/_vendor/*
)/
'''
[tool.isort]
profile = "black"
force_single_line = true
atomic = true
include_trailing_comma = true
lines_after_imports = 2
lines_between_types = 1
use_parentheses = true
skip_glob = ["*/setup.py", "*/poetry/core/_vendor/*"]
filter_files = true
known_first_party = "poetry.core"
known_third_party = ["poetry.core._vendor"]
[tool.mypy]
follow_imports = "silent"
explicit_package_bases = true
namespace_packages = true
mypy_path = "src"
files = "src, tests"
exclude = "(?x)(^tests/.*/fixtures | ^src/poetry/core/_vendor)"
# The following whitelist is used to allow for incremental adoption
# of Mypy. Modules should be removed from this whitelist as and when
# their respective type errors have been addressed. No new modules
# should be added to this whitelist.
# see https://github.com/python-poetry/poetry-core/pull/199.
[[tool.mypy.overrides]]
module = [
# src modules
'poetry.core.masonry.builders.*',
'poetry.core.packages.constraints',
'poetry.core.packages.constraints.constraint',
'poetry.core.packages.constraints.empty_constraint',
'poetry.core.packages.constraints.multi_constraint',
'poetry.core.packages.constraints.union_constraint',
'poetry.core.packages.utils.utils',
'poetry.core.packages.dependency',
'poetry.core.packages.directory_dependency',
'poetry.core.packages.file_dependency',
'poetry.core.packages.package',
'poetry.core.packages.project_package',
'poetry.core.packages.url_dependency',
'poetry.core.packages.vcs_dependency',
'poetry.core.pyproject.*',
'poetry.core.semver.*',
'poetry.core.version.*',
# test modules
'tests.masonry.*',
'tests.packages.*',
'tests.semver.*',
'tests.version.*',
'tests.testutils.*',
'tests.integration/test_pep517',
]
ignore_errors = true
[tool.vendoring]
destination = "src/poetry/core/_vendor/"
requirements = "src/poetry/core/_vendor/vendor.txt"
namespace = ""
protected-files = ["__init__.py", "README.md", "vendor.txt"]
patches-dir = "vendors/patches"
[tool.vendoring.transformations]
substitute = []
drop = [
"bin/",
"*.so",
"typing.*",
"*/tests/"
]
[tool.vendoring.typing-stubs]
six = ["six.__init__", "six.moves.__init__", "six.moves.configparser"]
appdirs = []
[tool.vendoring.license.directories]
[tool.vendoring.license.fallback-urls]
pyrsistent = "https://raw.githubusercontent.com/tobgu/pyrsistent/master/LICENSE.mit"
[build-system]
requires = ["dataclasses>=0.6;python_version < '3.7'"]
build-backend = "poetry.core.masonry.api"
backend-path = ["src"]