-
Notifications
You must be signed in to change notification settings - Fork 30
/
pyproject.toml
222 lines (199 loc) · 7.57 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
[project]
name = "ipyvizzu-story"
dynamic = ["version"]
description = "Build, present and share animated data stories in Jupyter Notebook and similar environments."
authors = [
{name = "Vizzu Inc.", email = "hello@vizzuhq.com"},
]
readme = "README.md"
requires-python = ">=3.6"
dependencies = [
"ipyvizzu<1.0.0"
]
license = {text = "Apache-2.0"}
classifiers = [
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
keywords = [
"python",
"template",
"notebook",
"interactive",
"presentation",
"data-visualization",
"charting",
"datastory",
"datastorytelling",
]
[project.optional-dependencies]
jupyter = [
"IPython",
]
streamlit = [
"streamlit",
]
panel = [
"panel",
]
[project.urls]
Homepage = "https://ipyvizzu-story.vizzuhq.com"
Documentation = "https://ipyvizzu-story.vizzuhq.com"
Source = "https://github.com/vizzuhq/ipyvizzu-story"
Tracker = "https://github.com/vizzuhq/ipyvizzu-story/issues"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.package-dir]
ipyvizzustory = "src/ipyvizzustory"
[tool.pdm.version]
source = "file"
path = "src/ipyvizzustory/__version__.py"
[tool.pdm.scripts]
lock = {composite = ["lock-py", "lock-js"]}
lock-py = "pdm lock --no-default -d"
lock-js = "npm update"
format = {composite = ["format-src", "format-docs", "format-tools"]}
format-src = {composite = ["format-src-py"]}
format-src-py = {composite = ["format-black src tests"]}
format-docs = {composite = ["format-docs-py", "format-docs-js"]}
format-docs-py = {composite = ["format-mdformat docs README.md CONTRIBUTING.md CODE_OF_CONDUCT.md"]}
format-docs-js = {composite = ["format-prettier docs"]}
format-tools = {composite = ["format-tools-py", "format-tools-js"]}
format-tools-py = {composite = ["format-black tools"]}
format-tools-js = {composite = ["format-prettier package.json tools .github"]}
format-black = "black --diff --check"
format-mdformat = "python ./tools/ci/std_check.py mdformat --wrap 80 --end-of-line keep --line-length 70 --check"
format-prettier = "npx prettier -c"
lint = {composite = ["lint-src", "lint-docs", "lint-tools"]}
lint-src = {composite = ["lint-src-py"]}
lint-src-py = {composite = ["lint-pylint src tests"]}
lint-docs = {composite = ["lint-docs-js"]}
lint-docs-js = {composite = ["lint-eslint docs"]}
lint-tools = {composite = ["lint-tools-py"]}
lint-tools-py = {composite = ["lint-pylint tools"]}
lint-pylint = "pylint"
lint-eslint = "npx eslint"
type = {composite = ["type-src", "type-tools"]}
type-src = {composite = ["type-src-py"]}
type-src-py = {composite = ["type-mypy src tests"]}
type-tools = {composite = ["type-tools-py"]}
type-tools-py = {composite = ["type-mypy tools"]}
type-mypy = "mypy"
test = "tox"
ci = {composite = ["ci-src", "ci-docs", "ci-tools"]}
ci-src = {composite = ["ci-src-py"]}
ci-src-py = {composite = ["format-src-py", "lint-src-py", "type-src-py", "test"]}
ci-docs = {composite = ["ci-docs-py", "ci-docs-js"]}
ci-docs-py = {composite = ["format-docs-py"]}
ci-docs-js = {composite = ["format-docs-js", "lint-docs-js"]}
ci-tools = {composite = ["ci-tools-py", "ci-tools-js"]}
ci-tools-py = {composite = ["format-tools-py", "lint-tools-py", "type-tools-py"]}
ci-tools-js = {composite = ["format-tools-js"]}
fix = {composite = ["fix-format", "fix-lint"]}
fix-format = {composite = ["fix-format-src", "fix-format-docs", "fix-format-tools"]}
fix-format-src = {composite = ["fix-format-src-py"]}
fix-format-src-py = {composite = ["fix-format-black src tests"]}
fix-format-docs = {composite = ["fix-format-docs-py", "fix-format-docs-js"]}
fix-format-docs-py = {composite = ["fix-format-mdformat docs README.md CONTRIBUTING.md CODE_OF_CONDUCT.md"]}
fix-format-docs-js = {composite = ["fix-format-prettier docs"]}
fix-format-tools = {composite = ["fix-format-tools-py", "fix-format-tools-js"]}
fix-format-tools-py = {composite = ["fix-format-black tools"]}
fix-format-tools-js = {composite = ["fix-format-prettier package.json tools .github"]}
fix-format-black = "black"
fix-format-mdformat = "python ./tools/ci/std_check.py mdformat --wrap 80 --end-of-line keep --line-length 70"
fix-format-prettier = "npx prettier -w"
fix-lint = {composite = ["fix-lint-docs"]}
fix-lint-docs = {composite = ["fix-lint-docs-js"]}
fix-lint-docs-js = {composite = ["fix-lint-eslint docs"]}
fix-lint-eslint = "npx eslint --fix"
build-docs = "mkdocs build -f ./tools/docs/mkdocs.yml"
deploy-docs = {composite = ["pip install ipyvizzu --upgrade", "python ./tools/docs/deploy.py"]}
deploy = "pip install -e ."
build = {composite = ["python ./tools/ci/version.py False", "pdm build", "twine check dist/*.tar.gz dist/*.whl"]}
release = {composite = ["build", "python ./tools/ci/version.py True"]}
[tool.tox]
legacy_tox_ini = """
[tox]
envlist =
py{36,37,38,39,310,311}
coverage
[testenv]
setenv =
COVERAGE_FILE = .coverage/env/.coverage.{envname}
deps =
coverage[toml]
ddt
extras =
jupyter
streamlit
panel
commands =
python -m coverage run --branch --source ipyvizzustory -m unittest discover tests
python -m coverage report -m
python -c "import os; pyenv='{envname}'; os.rename('.coverage/env/.coverage.' + pyenv, '.coverage/env/.coverage.3.' + pyenv[3:])"
[testenv:py{37,38,39,310,311}]
package = editable
[testenv:coverage]
skip_install = True
commands =
python -m coverage combine --keep --data-file .coverage/.coverage .coverage/env/
python -m coverage html --data-file .coverage/.coverage -d .coverage/html
python -m coverage report --data-file .coverage/.coverage -m --fail-under=100
"""
[tool.pdm.dev-dependencies]
packagetool = [
"twine ; python_version >= '3.10'"
]
packagedeps = [
"ipyvizzu ; python_version >= '3.10'",
]
codequality = [
"pre-commit ; python_version >= '3.10'",
"black ; python_version >= '3.10'",
"black[jupyter] ; python_version >= '3.10'",
"pylint ; python_version >= '3.10'",
"mypy ; python_version >= '3.10'",
"ddt ; python_version >= '3.10'",
"tox ; python_version >= '3.10'",
]
env = [
"notebook ; python_version >= '3.10'",
"IPython ; python_version >= '3.10'",
"streamlit ; python_version >= '3.10'",
"panel ; python_version >= '3.10'",
]
docs = [
"mdformat ; python_version >= '3.10'",
"mdformat-beautysh ; python_version >= '3.10'",
"mdformat-black ; python_version >= '3.10'",
"mdformat-configurable-black ; python_version >= '3.10'",
"mdformat-config ; python_version >= '3.10'",
"mdformat-web ; python_version >= '3.10'",
"mdformat-admon ; python_version >= '3.10'",
"mdformat-gfm ; python_version >= '3.10'",
"mdformat-tables ; python_version >= '3.10'",
"mdformat-footnote ; python_version >= '3.10'",
"mdformat-frontmatter ; python_version >= '3.10'",
"mdx_truly_sane_lists ; python_version >= '3.10'",
"pyyaml ; python_version >= '3.10'",
"types-pyyaml ; python_version >= '3.10'",
"requests ; python_version >= '3.10'",
"types-requests ; python_version >= '3.10'",
"mkdocs ; python_version >= '3.10'",
"mkdocs-material ; python_version >= '3.10'",
"mkdocs-section-index ; python_version >= '3.10'",
"mkdocs-literate-nav ; python_version >= '3.10'",
"mkdocs-autorefs ; python_version >= '3.10'",
"mkdocstrings[python] ; python_version >= '3.10'",
"mkdocs-gen-files ; python_version >= '3.10'",
"mkdocs-coverage ; python_version >= '3.10'",
"mike ; python_version >= '3.10'",
]
[tool.pylint.messages-control]
disable = ["fixme"]
good-names= ["i", "df"]
[tool.coverage.paths]
source = ["src/", ".tox/py*/lib/python*/site-packages/"]