-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
157 lines (138 loc) · 3.34 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
[build-system]
requires = ["setuptools>=65.5.1", "wheel>=0.29.0"]
build-backend = "setuptools.build_meta"
[project]
name = "pysyte"
version = "0.8.74" # version is controlled by bumpversion, which rewrites this
description = "Pysyte extends Python"
readme = "README.rst"
requires-python = ">=3.9"
license = {text = "MIT License"}
authors = [
{name = "jalanb", email = "github@al-got-rhythm.net"}
]
classifiers = [
"Programming Language :: Python :: 3.9",
"Development Status :: 4 - Beta",
"Natural Language :: English",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# Core dependencies
dependencies = [
"bidict",
"boltons",
"deprecated",
"inflect>=2.1.0",
"path.py==7.7.1",
"pym",
"pyyaml",
"rich",
"stackprinter",
"textual",
"yamlreader",
]
[project.optional-dependencies]
# Linting tools - standalone, no project dependencies needed
lint = [
"black",
"blackdoc",
"flake8",
"flake8-bugbear",
"flake8-comprehensions",
"flake8-eradicate",
"flake8-isort",
"Flake8-pyproject",
"isort",
"mypy",
]
# Testing needs project + dependencies
test = [
"pysyte",
"callee",
"codecov",
"coverage",
"pytest",
"pytest-cov",
"tox",
]
# DevOps needs testing capabilities plus deployment tools
devops = [
"pysyte[test]",
"pysyte[lint]",
"bump2version",
"ansible",
"pipx",
"pyinfra",
"build",
"twine",
]
# Full development environment
dev = [
"pysyte[devops]",
"httpie",
"ipython",
"pudb",
"pytest-pudb",
"pytest-sugar",
"sh",
]
[project.urls]
Homepage = "https://github.com/jalanb/pysyte"
[tool.setuptools.package-data]
# These patterns include doctests, which serve as both documentation and test cases,
# potentially useful for end users of pysyte.
pysyte = ["**/*.test", "**/*.tests", "**/*.yaml"]
[tool.setuptools.packages.find]
include = ["pysyte*"]
exclude = ["test_*.py"]
[tool.flake8]
# https://black.readthedocs.io/en/stable/compatible_configs.html#flake8
max-line-length = 88
ignore = ["E731", "E203", "W503"]
[tool.mypy]
ignore_missing_imports = true
install_types = true
non_interactive = true
check_untyped_defs = true
strict_optional = true
[tool.coverage.run]
omit = ["*/test/*"]
[tool.coverage.report]
exclude_also = [
"if __name__ == \"__main__\":",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.pytest.ini_options]
testpaths = ["test"]
addopts = "--doctest-modules --doctest-glob=*.test --doctest-glob=*.tests"
doctest_optionflags = ["ELLIPSIS", "NORMALIZE_WHITESPACE"]
[tool.tox]
env_list = ["lints", "tests"]
[tool.tox.env.lints]
deps = [".[lint]"]
commands = [
["black", "-S", "--check", "pysyte"],
["blackdoc", "-S", "--include", "[.](md|py|test|tests)", "--check", "pysyte"],
["flake8", "pysyte"],
["mypy", "pysyte"],
]
[tool.tox.env.tests]
deps = [".[test]"]
commands = [
["py.test", "--cov=pysyte", "pysyte" ]
]
[tool.tox.env.devs]
deps = [".[dev]"]
commands = [
["py.test", "--exitfirst", "pysyte" ]
]
[project.scripts]
kat = "pysyte.kat.__main__:main"
keys = "pysyte.keys.__main__:main"
imports = "pysyte.imports.__main__:main"
short_dir = "pysyte.short_dir.__main__:main"