-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
176 lines (145 loc) · 4.08 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# Project metadata
[project]
name = "rsm-markup"
version = "0.2.1"
description = "ReStructured Manuscripts (RSM) markup language"
readme = "README.md"
authors = [{ name = "Leo Torres", email = "leo@leotrs.com" }]
license = { file = "LICENSE.md" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
keywords = ["markup", "science", "publishing", "static site generator"]
dependencies = [
"fs >= 2.4.15",
"icecream >= 2.1.2",
"livereload >= 2.6.3",
"tree-sitter >= 0.20.1",
]
requires-python = ">=3.9"
[project.optional-dependencies]
doc = ["Sphinx>=5.3.0", "sphinx-autobuild >= 2021.3.14", "pydata-sphinx-theme >= 0.12.0"]
dev = [
"black >= 22.3.0",
"fastapi >= 0.86.0",
"isort >= 5.10.1",
"libsass >= 0.21.0",
"mypy >= 0.942",
"mypy-extensions >= 0.4.3",
"uvicorn >= 0.19.0",
"pytest>=7.1.1",
]
[project.urls]
Homepage = "https://write-rsm.org/"
[project.scripts]
rsm-make = "rsm.cli:make"
rsm-render = "rsm.cli:render"
rsm-lint = "rsm.cli:lint"
# cibuildwheel
[tool.cibuildwheel]
build = ["cp310-manylinux_x86_64", "cp311-manylinux_x86_64", "cp310-macosx_x86_64", "cp311-macosx_x86_64", "cp310-win_amd64", "cp310-win32", "cp311-win_amd64", "cp311-win32"]
manylinux-x86_64-image = "manylinux_2_24"
[tool.cibuildwheel.linux]
before-all = "ldd --version && curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt install -y nodejs"
# Mypy
[tool.mypy]
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_unused_ignores = true
warn_return_any = true
warn_redundant_casts = true
[[tool.mypy.overrides]]
module = ["icecream.*", "livereload.*", "sass.*"]
ignore_missing_imports = true
# Misc. tools
[tool.black]
line-length = 88
target-version = ["py310"]
[tool.pylint.main]
max-line-length = 88
good-names = ["i", "j", "k", "t", "c", "h", "ex", "Run", "_", "fn"]
disable = ["too-few-public-methods"]
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
markers = [
'slow: marks tests as slow (deselect with "-m \"not slow\"")',
"serial",
]
filterwarnings = [
"ignore:.*pkg_resources.*:DeprecationWarning",
]
# Poe the poet
[tool.poe.tasks]
test = "pytest -vv -k 'not slow'"
test-all = "pytest -vv"
test-docs = { shell = "cd docs/ && make doctest && cd .. && pytest -vv --doctest-modules rsm/" }
docs = "sphinx-build docs/source/ docs/build/"
docs-clean = { shell= "cd docs && make clean" }
docs-serve = { shell = "sphinx-autobuild docs/source/ docs/build/ --port 7001 --watch rsm/" }
css = { shell = "pysassc rsm/static/rsm.scss rsm/static/rsm.css" }
# Build stuff
[tool.poetry]
name = "rsm-markup"
version = "0.2.4"
description = "ReStructured Manuscript (RSM) markup language"
authors = ["leotrs <leo@leotrs.com>"]
license = "MIT"
readme = "README.md"
packages = [
{include = "rsm"}
]
include = [
{path = "rsm/*.so", format = "wheel"},
{path = "tree-sitter-rsm/", format = "sdist"}
]
[[tool.poetry.source]]
name = "test"
url = "https://test.pypi.org/simple/"
priority = "supplemental"
[tool.poetry.build]
script = "build.py"
generate-setup-file = false
[tool.poetry.dependencies]
python = "^3.9"
tree-sitter = "^0.20.1"
icecream = "^2.1.3"
livereload = "^2.6.3"
fs = "^2.4.16"
mypy = "^0.991"
pre-commit = "^2.20.0"
# tree-sitter-test = "^0.20.2"
ujson = "^5.6.0"
types-ujson = "^5.6.0.0"
pygments = "^2.14.0"
[tool.poetry.group.dev.dependencies]
black = "^22.12.0"
fastapi = "^0.88.0"
isort = "^5.10.1"
libsass = "^0.22.0"
mypy = "^0.991"
mypy-extensions = "^0.4.3"
uvicorn = "^0.20.0"
pytest = "^7.2.0"
pytest-sugar = "^0.9.6"
pylint = "^2.15.8"
poethepoet = "^0.16.5"
cibuildwheel = "^2.11.4"
[tool.poetry.group.doc.dependencies]
Sphinx = "^5.3.0"
sphinx-autobuild = "^2021.3.14"
pydata-sphinx-theme = "^0.12.0"
sphinx-design = "^0.3.0"
sphinx-copybutton = "^0.5.1"
sphinx-autodoc-typehints = "^1.19.5"
[tool.poetry.scripts]
rsm-make = "rsm.cli:make"
rsm-render = "rsm.cli:render"
rsm-lint = "rsm.cli:lint"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"