-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (92 loc) · 3.04 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (92 loc) · 3.04 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ghpython_componentizer"
dynamic = ["version"]
description = "Build Grasshopper .ghuser components out of plain Python source bundles"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
authors = [
{ name = "Gonzalo Casas" },
{ name = "Andrea Settimi" },
{ name = "Chen Kasirer" },
{ name = "Rafael Pastrana" },
{ name = "Sam Wilcock" },
]
maintainers = [{ name = "compas-dev", email = "info@compas.dev" }]
keywords = ["grasshopper", "rhino", "ghuser", "ghpython", "compas"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Multimedia :: Graphics :: 3D Modeling",
]
dependencies = ["pythonnet>=3.0.3"]
[project.optional-dependencies]
dev = ["pytest>=7.0", "ruff>=0.5", "build>=1.0", "bump-my-version>=0.20"]
[project.urls]
Homepage = "https://github.com/compas-dev/ghpython_componentizer"
Repository = "https://github.com/compas-dev/ghpython_componentizer"
Issues = "https://github.com/compas-dev/ghpython_componentizer/issues"
[project.scripts]
ghpython-componentizer = "ghpython_componentizer.cli:main"
[tool.hatch.version]
path = "src/ghpython_componentizer/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/ghpython_componentizer"]
[tool.hatch.build.targets.sdist]
include = ["src", "tests", "README.md", "CHANGELOG.md", "LICENSE"]
[tool.bumpversion]
current_version = "0.1.1"
message = "Bump version to {new_version}"
commit = true
tag = true
tag_name = "v{new_version}"
[[tool.bumpversion.files]]
filename = "src/ghpython_componentizer/__init__.py"
search = "{current_version}"
replace = "{new_version}"
# Turns the `Unreleased` heading into the released one. The release-pr action
# adds the next `Unreleased` section back on top.
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "Unreleased"
replace = "[{new_version}] {now:%Y-%m-%d}"
[tool.ruff]
line-length = 179
indent-width = 4
target-version = "py39"
# Component code runs inside Grasshopper, with implicit globals and Rhino-only imports.
extend-exclude = ["examples"]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["I001"]
"tests/*" = ["I001"]
"tasks.py" = ["I001"]
[tool.ruff.lint.isort]
force-single-line = true
known-first-party = [
"ghpython_componentizer",
]
[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"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"dotnet: tests that build actual components, and need a .NET runtime for it",
]