Skip to content

Commit e2344d7

Browse files
authored
Merge pull request #40 from petrasvestartas/pyproject
Pyproject
2 parents 1bc2059 + 987bb69 commit e2344d7

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
### Changed
2222

2323
* Fixed `compas_libigl` plugins are not detected.
24+
* Add project dependency groups in pyproject.toml.
2425
* Change requirements.txt to pyproject.toml.
2526

2627
### Removed

pyproject.toml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,36 @@ authors = [
1212
{ name = "Petras Vestartas", email = "[email protected]" },
1313
]
1414
classifiers = ["License :: OSI Approved :: BSD License"]
15-
dynamic = ['dependencies', 'optional-dependencies', 'version']
15+
16+
dynamic = ['version']
17+
dependencies = [
18+
"compas >=2.0.0",
19+
"tessagon",
20+
]
1621

1722
[project.urls]
1823
Homepage = "https://compas.dev/compas_libigl/latest/"
1924

2025
# ============================================================================
21-
# setuptools config
26+
# pyproject dependecy groups
2227
# ============================================================================
2328

24-
[tool.setuptools.dynamic]
25-
dependencies = { file = "requirements.txt" }
26-
optional-dependencies = { dev = { file = "requirements-dev.txt" } }
29+
[dependency-groups]
30+
dev = [
31+
"ruff",
32+
"pre-commit",
33+
"build",
34+
{ include-group = "tests" },
35+
{ include-group = "docs" },
36+
]
37+
tests = [
38+
"pytest",
39+
"numpy",
40+
]
41+
docs = [
42+
"sphinx",
43+
"sphinx-compas-theme",
44+
]
2745

2846
# ============================================================================
2947
# pytest configuration

0 commit comments

Comments
 (0)