Skip to content

Commit c12f516

Browse files
committed
add dynamic reqs
1 parent 930372e commit c12f516

File tree

2 files changed

+24
-10
lines changed

2 files changed

+24
-10
lines changed

pyproject.toml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,30 @@ readme = "README.md"
99
requires-python = ">=3.9"
1010
authors = [
1111
{ name = "tom van mele", email = "[email protected]" },
12-
{ name = "Petras Vestartas", email = "[email protected]" }
12+
{ name = "Petras Vestartas", email = "[email protected]" },
1313
]
14-
classifiers = [
15-
"License :: OSI Approved :: BSD License"
16-
]
17-
dynamic = ["version"]
14+
classifiers = ["License :: OSI Approved :: BSD License"]
15+
dynamic = ['dependencies', 'optional-dependencies', 'version']
1816

1917
[project.urls]
2018
Homepage = "https://compas.dev/compas_libigl/latest/"
2119

20+
# ============================================================================
21+
# setuptools config
22+
# ============================================================================
23+
24+
# [tool.setuptools]
25+
# package-dir = { "" = "src" }
26+
# include-package-data = true
27+
# zip-safe = false
28+
29+
[tool.setuptools.dynamic]
30+
dependencies = { file = "requirements.txt" }
31+
optional-dependencies = { dev = { file = "requirements-dev.txt" } }
32+
33+
# [tool.setuptools.packages.find]
34+
# where = ["src"]
35+
2236
# ============================================================================
2337
# pytest configuration
2438
# ============================================================================
@@ -36,21 +50,21 @@ norecursedirs = [
3650
".tox",
3751
".env",
3852
".pytest_cache",
39-
".ruff_cache"
53+
".ruff_cache",
4054
]
4155
addopts = [
4256
"-ra",
4357
"--strict-markers",
4458
"--doctest-glob=*.rst",
4559
"--tb=short",
46-
"--import-mode=importlib"
60+
"--import-mode=importlib",
4761
]
4862
doctest_optionflags = [
4963
"NORMALIZE_WHITESPACE",
5064
"IGNORE_EXCEPTION_DETAIL",
5165
"ALLOW_UNICODE",
5266
"ALLOW_BYTES",
53-
"NUMBER"
67+
"NUMBER",
5468
]
5569

5670
# ============================================================================
@@ -60,7 +74,7 @@ doctest_optionflags = [
6074
[tool.scikit-build]
6175
minimum-version = "build-system.requires"
6276
build-dir = "build/{wheel_tag}"
63-
wheel.py-api = "cp312" # Build all Python currently supported versions
77+
wheel.py-api = "cp312" # Build all Python currently supported versions
6478
cmake.version = ">=3.15"
6579
cmake.build-type = "Release"
6680

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ twine
1414
wheel
1515
setuptools
1616
nanobind
17-
cibuildwheel==2.23.1
17+
cibuildwheel==2.23.1

0 commit comments

Comments
 (0)