-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (62 loc) · 1.69 KB
/
pyproject.toml
File metadata and controls
72 lines (62 loc) · 1.69 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ad4a-intro-to-programming"
version = "0.1.0"
description = "Introductory Java programming course for Android."
readme = "README.md"
requires-python = ">=3.9"
authors = [{ name = "Mark Rose", email = "markrose@acm.org" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Education",
"Topic :: Software Development",
"Programming Language :: Python :: 3",
]
dependencies = [
"mdit-py-plugins",
"markdown-it-py[linkify,plugins]==3.0.0",
"markdown-pdf",
"mkdocs",
# "mkdocs-material",
"mermaid-cli",
# After build must install Chromium: playright install chromium
# See: https://github.com/seigok/mermaid-cli-python
# Use a Hatch post-install-commands definition for the environment
]
[project.urls]
"Homepage" = "https://github.com/merose/ad4a-intro-to-programming"
"Bug Reports" = "https://github.com/merose/ad4a-intro-to-programming/issues"
"Source" = "https://github.com/merose/ad4a-intro-to-programming.git"
[project.scripts]
genpdf = "ad4a.util.genpdf:main"
[tool.hatch.build]
reproducible = false
[tool.hatch.build.targets.sdist]
ignore-vcs = true
exclude = [
"__pycache__",
"*.py[codz]",
"*$py.class",
".so",
"/build",
"/dist",
"/hooks",
"htmlcov",
"/config.json",
"/.venv",
"*~",
]
[tool.hatch.build.targets.wheel]
packages = [
"src/ad4a",
]
[tool.hatch.envs.course]
post-install-commands = [
"playwright install chromium"
]
[tool.hatch.envs.course.scripts]
pdf = ["genpdf mkdocs.yml dist/intro-to-programming.pdf"]
html = ["mkdocs build --no-directory-urls"]
serve = ["mkdocs serve --watch docs --open"]