-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
129 lines (117 loc) · 3.27 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
[build-system]
requires = ["setuptools>=45"]
build-backend = "setuptools.build_meta"
[project]
name = "talondoc"
version = "1.0.0"
description = "A Sphinx extension for Talon user directories."
license = { file = 'LICENSE' }
authors = [{ name = "Wen Kokke", email = "[email protected]" }]
readme = "README.md"
keywords = ["talon", "sphinx"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Compilers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
requires-python = ">=3.9,<3.12"
dependencies = [
"awesome_progress_bar >=1.7,<2",
"docstring_parser >=0.14,<0.16",
"editdistance >=0.6,<0.7",
"Jinja2 >=3,<4",
"Sphinx >=5,<8",
"talonfmt >=1.7.4,<2",
"tree_sitter_talon >=3!1.0,<3!2",
"colorlog >=6.7,<7",
"packaging >=23.1,<24",
'pywin32; platform_system=="Windows"',
"singledispatchmethod >=1.0,<2; python_version <'3.8'",
]
[project.optional-dependencies]
mypy = [
"types_click",
"types_docutils",
"types_editdistance",
"types_jinja2",
"types_pytz",
"types_setuptools",
]
test = [
"bumpver",
"myst_parser >=1,<2",
"sphinx_rtd_theme >=1.2,<2",
"sphinx_tabs >=3.4,<5"
]
docs = [
"myst_parser >=1,<2",
"sphinx_rtd_theme >=1.2,<2",
"sphinx_tabs >=3.4,<5"
]
[project.scripts]
talondoc = "talondoc:talondoc"
[tool.bumpver]
current_version = "1.0.0"
version_pattern = "MAJOR.MINOR.PATCH[TAG]"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^current_version = "{version}"$',
'^version = "{pep440_version}"$',
]
"example/docs/conf.py" = ['^release = "{pep440_version}"$']
"src/talondoc/_version.py" = ['^__version__: str = "{pep440_version}"$']
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
python_version = 3.9
strict = true
ignore_missing_imports = true
implicit_reexport = false
warn_unused_ignores = false
[[tool.mypy.overrides]]
module = "sphinx.application"
implicit_reexport = true
[tool.pytest.ini_options]
enable_assertion_pass_hook = true
filterwarnings = ["ignore::DeprecationWarning:.*:"]
minversion = "6.0"
testpaths = ["tests"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{39,310,311}-{rst,md}
isolated_build = true
[testenv]
allowlist_externals = cp, mkdir, rm
extras =
test
setenv =
TALONDOC_STRICT = 1
rst: TALONDOC_FORMAT = rst
md: TALONDOC_FORMAT = md
commands_pre =
cp -R '{tox_root}/example/knausj_talon' '{env_tmp_dir}/knausj_talon'
mkdir -p '{env_tmp_dir}/docs'
cp '{tox_root}/example/docs/conf.py' '{env_tmp_dir}/docs/conf.py'
cp '{tox_root}/example/docs/index.md' '{env_tmp_dir}/docs/index.md'
cp -R '{tox_root}/example/docs/_static' '{env_tmp_dir}/docs/_static'
commands =
{envpython} -m bumpver update --patch --no-fetch --dry
{envpython} -X utf8 -m talondoc autogen '{env_tmp_dir}/docs' -o 'knausj_talon' --generate-index
{envpython} -X utf8 -m talondoc build '{env_tmp_dir}/docs' '{env_tmp_dir}/docs/_build'
commands_post =
rm -rf '{env_tmp_dir}/knausj_talon'
rm -f '{env_tmp_dir}/docs/conf.py'
rm -f '{env_tmp_dir}/docs/index.md'
rm -rf '{env_tmp_dir}/docs/_static'
"""