Skip to content
Snippets Groups Projects
Commit 001d04c4 authored by Moul's avatar Moul
Browse files

pyproject.toml: Create test and doc groups

Requires Poetry v1.2
https://python-poetry.org/blog/announcing-poetry-1.2.0/#dependency-groups

doc group is optional and installed for doc job
parent e5616366
No related branches found
No related tags found
1 merge request!175Poetry v1.2, pytest-clarity, runners, coverage, bump deps
...@@ -140,7 +140,7 @@ release_test: ...@@ -140,7 +140,7 @@ release_test:
pages: pages:
stage: publish_doc stage: publish_doc
script: script:
- poetry install - poetry install --with doc
- poetry run sphinx-apidoc -o docs . - poetry run sphinx-apidoc -o docs .
- poetry run sphinx-build -b html docs public - poetry run sphinx-build -b html docs public
artifacts: artifacts:
......
...@@ -37,10 +37,15 @@ libnacl = "^1.7.2" ...@@ -37,10 +37,15 @@ libnacl = "^1.7.2"
pyaes = "^1.6.1" pyaes = "^1.6.1"
mnemonic = "^0.19" mnemonic = "^0.19"
[tool.poetry.dev-dependencies] [tool.poetry.group.test.dependencies]
pytest = "^7.1.2" pytest = "^7.1.2"
pytest-cov = "^3.0.0" pytest-cov = "^3.0.0"
pytest-sugar = "^0.9.4" pytest-sugar = "^0.9.4"
[tool.poetry.group.doc]
optional = true
[tool.poetry.group.doc.dependencies]
sphinx = "^4.3.0" sphinx = "^4.3.0"
sphinx_rtd_theme = "^1.0.0" sphinx_rtd_theme = "^1.0.0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment