-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
95 lines (79 loc) · 2.79 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
[tool.poetry]
name = "rnginline"
version = "1.0.0"
description = "Flatten multi-file RELAX NG schemas"
readme = "README.md"
authors = ["Hal Blackburn <hwtb2@cam.ac.uk>"]
license = "Apache-2.0"
repository = "https://github.com/h4l/rnginline"
documentation = "https://rnginline.readthedocs.io/en/latest/"
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Markup :: XML",
]
keywords = ["relaxng", "inline", "lxml", "xml"]
[tool.poetry.scripts]
rnginline = "rnginline.cmdline:main"
# 3.7 is the oldest supported Python version. Most downloads currently come from
# 3.8, according to https://pypistats.org/packages/rnginline
[tool.poetry.dependencies]
docopt-ng = "^0.8.1"
lxml = "^4"
python = "^3.7"
typing-extensions = "^4.5.0"
importlib-metadata = "^6.6.0"
[tool.poetry.group.dev.dependencies]
tox = "^3.25.1"
# ipython navigation is broken in 8.12.1
# https://github.com/ipython/ipython/issues/14051
ipython = { version = "^8.11, !=8.12.1 ,!=8.13.1", python = ">=3.9" }
[tool.poetry.group.test.dependencies]
pytest = "^7.1.2"
pytest-cov = "^4.0.0"
importlib-resources = "^5.12.0"
[tool.poetry.group.lint.dependencies]
ruff = "^0.0.264"
[tool.poetry.group.tasks.dependencies]
invoke = "^1.7.1"
[tool.poetry.group.docs.dependencies]
requests = "^2.28.1"
sphinx = ">=4,<6"
[tool.poetry.group.readme.dependencies]
restructuredtext-lint = "^1.4.0"
Pygments = "^2.13.0"
[tool.poetry.group.typing.dependencies]
mypy = "^1.2.0"
types-lxml = { version = "^2023.3.28", python = ">=3.8" }
types-setuptools = "^67.7.0.1"
[tool.poetry.group.fmt.dependencies]
black = "^23.3.0"
isort = { version = "^5.12.0", python = "^3.8" }
[tool.isort]
profile = "black"
[tool.mypy]
# enabled implicitly using mypy daemon, so makes sense to enable it always
local_partial_types = true
strict = true
disallow_any_unimported = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
show_error_codes = true
[tool.coverage.run]
omit = ["rnginline/test/*"]
include = ["rnginline/*"]
[tool.coverage.report]
exclude_lines = ["if __name__ == .__main__.:", "\\.\\.\\.", "if TYPE_CHECKING:"]
[build-system]
# We use pre-relese of poetry-core because we need Poetry 1.2 in order to use
# dependency groups, and at this time 1.2 is still in beta. Dependency groups
# don't work with the current stable release of poetry-core.
requires = ["poetry-core>=1.2"]
build-backend = "poetry.core.masonry.api"