-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
55 lines (43 loc) · 1.54 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
# Project metadata
[tool.pdm.version]
source = "scm"
[project]
dynamic = ["version"]
name = "amaranth-soc"
description = "System on Chip toolkit for Amaranth HDL"
authors = [{name = "Amaranth HDL contributors"}]
license = {file = "LICENSE.txt"}
requires-python = "~=3.9"
dependencies = [
# this version requirement needs to be synchronized with the one in .github/workflows/main.yml
"amaranth>=0.5,<0.6",
]
[project.urls]
"Homepage" = "https://amaranth-lang.org/"
"Documentation" = "https://amaranth-lang.org/docs/amaranth-soc/" # modified in pdm_build.py
"Source Code" = "https://github.com/amaranth-lang/amaranth-soc"
"Bug Tracker" = "https://github.com/amaranth-lang/amaranth-soc/issues"
# Build system configuration
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
# Development workflow configuration
[tool.pdm.dev-dependencies]
test = [
"coverage",
]
docs = [
"sphinx~=7.1",
"sphinx-rtd-theme~=1.2",
"sphinx-autobuild",
]
[tool.pdm.scripts]
test.composite = ["test-code"]
# TODO: Once the amaranth requirement is bumped to 0.6, remove the RFC 66 warning filter and fix the deprecations.
test-code.env = {PYTHONWARNINGS = "error,ignore:Per RFC 66,:DeprecationWarning"}
test-code.cmd = "python -m coverage run -m unittest discover -t . -s tests -v"
test-docs.cmd = "sphinx-build -b doctest docs docs/_build"
document.cmd = "sphinx-build docs docs/_build"
document-live.cmd = "sphinx-autobuild docs docs/_build --watch amaranth_soc"
coverage-text.cmd = "python -m coverage report"
coverage-html.cmd = "python -m coverage html"