Template for PyRoll Plugin Repositories.
Please follow the following instructions when creating your own PyRoll plugins:
-
The folder
pyrollis a namespace package, place your plugin package therein to make it discoverable by the CLI for example by just renaming the nestedpluginpackage to the desired). -
Use
pytestfor creating unit tests. Place all test files in thetestsfolder. -
Update the
pyproject.tomlwith your metadata. It is recommended to usehatchto maintain dependencies, as is preconfigured. It is recommended that the plugin major version corresponds to the PyRoll Core major version (so plugin versions 2.x.x working withpyroll-core2.x.x). -
Place documentation in the
docsfolder:- you may provide a printable documentation using LaTeX based on the
docs.textemplate and the providedPyRollDocsclass - you may provide a web documentation using Markdown or RST rendered by GitHub or external tools like Sphinx
- you may provide a printable documentation built from Markdown or RST by tools such as Pandoc
- if appropriate, include the result PDF in the commit and link it from
README.mdlike so - include model and usage information in the documentation
- you may provide a printable documentation using LaTeX based on the
-
Please use a permissive license such as BSD or MIT
-
Edit this readme file with contents of your own needs.
-
If you want your plugin to be listed on the main documentation website (see here), please contact the maintainers preferably using an issue or PR.
To build the docs use (needs a working LaTeX installation)
hatch run docs:build
To run the tests use
hatch run test:all
The test environment is preconfigured to test with Python 3.9, 3.10 and 3.11. The tests are skipped for the respective version, if it can not be found.