Skip to content

Commit

Permalink
update optional dependencies with test requirements file
Browse files Browse the repository at this point in the history
  • Loading branch information
loaner committed Mar 13, 2024
1 parent 38be910 commit 372673f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ classifiers = [
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering"
]
dynamics = ["dependencies"]
dynamics = ["dependencies","optional-dependencies"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.optional-dependencies]
test = ["pytest", "xarray", "numpy"]
lint = ["flake8"]

[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
Expand All @@ -35,6 +31,7 @@ where = ["src"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
optional-dependencies = {dev = { file = ["requirements-test.txt"] }}

[tool.pytest.ini_options]
pythonpath = "src"
Expand Down
2 changes: 2 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest
flake8

0 comments on commit 372673f

Please sign in to comment.