-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (120 loc) · 4.6 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (120 loc) · 4.6 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
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
[build-system]
requires = ["setuptools>=66.0"]
build-backend = "setuptools.build_meta"
# ============================================================================
# Project info
# ============================================================================
[project]
name = "compas_plotter"
description = "2D visualisation of COMPAS geometry and data structures with matplotlib."
keywords = ["architecture", "engineering", "geometry", "visualisation", "matplotlib", "plotting"]
authors = [{ name = "tom van mele", email = "tom.v.mele@gmail.com" }]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.9"
dynamic = ['dependencies', 'optional-dependencies', 'version']
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
[project.urls]
Homepage = "https://compas.dev/compas_plotter"
Documentation = "https://compas.dev/compas_plotter"
Repository = "https://github.com/compas-dev/compas_plotter"
Changelog = "https://github.com/compas-dev/compas_plotter/blob/main/CHANGELOG.md"
Issues = "https://github.com/compas-dev/compas_plotter/issues"
Forum = "https://forum.compas-framework.org/"
# COMPAS discovers @plugin-decorated factories in installed packages. This entry
# point makes the "Plotter" scene-object registration discoverable.
[project.entry-points."compas.plugins"]
compas_plotter = "compas_plotter.scene"
[tool.setuptools.dynamic]
version = { attr = "compas_plotter.__version__.__version__" }
dependencies = { file = "requirements.txt" }
optional-dependencies = { dev = { file = "requirements-dev.txt" } }
[tool.setuptools.packages.find]
where = ["src"]
# ============================================================================
# Testing
# ============================================================================
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests", "src/compas_plotter"]
python_files = ["test_*.py", "tests.py"]
addopts = "-ra --strict-markers --tb=short --import-mode=importlib"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE ALLOW_BYTES NUMBER"
filterwarnings = "ignore::DeprecationWarning"
# ============================================================================
# Linting and formatting
# ============================================================================
[tool.ruff]
line-length = 179
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["I001", "F401"]
"tests/*" = ["I001", "E501"]
"tasks.py" = ["I001"]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["compas_plotter"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pycodestyle]
max-doc-length = 179
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = "dynamic"
# ============================================================================
# Release automation
# ============================================================================
[tool.bumpversion]
current_version = "1.0.0"
message = "Bump version to {new_version}"
commit = true
tag = true
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
- # dash separator for pre-release section
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}-{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
[tool.bumpversion.parts.pre_l]
values = ["rc", "final"]
optional_value = "final"
[[tool.bumpversion.files]]
filename = "src/compas_plotter/__version__.py"
search = "{current_version}"
replace = "{new_version}"
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = 'version: "{current_version}"'
replace = 'version: "{new_version}"'
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "Unreleased"
replace = "[{new_version}] {now:%Y-%m-%d}"