Usage
Basic Usage
Add the plugin and configure it in your pyproject.toml:
[tool.poetry.dependencies]
reqstool-python-decorators = "<version>"
[tool.reqstool]
sources = ["src", "tests"]
test_results = ["build/**/junit.xml"]
dataset_directory = "docs/reqstool"
output_directory = "build/reqstool"
Decorator Dependency
To use @Requirements and @SVCs decorators in your code, add the decorators package as a dependency:
[tool.poetry.dependencies]
reqstool-python-decorators = "<version>"
See reqstool-python-decorators for decorator usage.
Default Lifecycle
The plugin integrates into the Poetry build process:
-
poetry buildis invoked -
The plugin scans
sourcesdirectories for decorated code -
An
annotations.ymlis generated in theoutput_directory -
A
reqstool_config.ymlis created in the project root for sdist inclusion -
reqstool data is included in the built package
-
The temporary
reqstool_config.ymlis removed after the build completes