This is a good place to start if you're writing a plugin for sourmash (sourmash-bio/sourmash/).
Note: plugins were added in sourmash v4.7.0.
You can use this repo as a template repo to create a new plugin!
See this set of changes for the minimal diff needed to get a plugin working!
First, go to the GitHub page and click "Use this template" to create a new repository.
Clone that repository into your development space.
Then, search for all places where 'xyz' is present, and replace 'xyz' with the name of your plugin.
Next, edit the code in src/sourmash_plugin_xyz.py
to implement the plugin
(you'll probably want to change the name of that file, too.)
Then run pip install .
to install and test your plugin! You can also
run pip install -e .
to install it in editable mode, which is more
convenient for development.
sourmash_plugin_avro and sourmash_plugin_load_urls are two examples you can follow.
Delete everything from this line on up and put in your new README ;).
pip install sourmash_plugin_xyz
non-xyz info goes here!
We suggest filing issues in the main sourmash issue tracker as that receives more attention!
xyz
is developed at https://github.com/sourmash-bio/sourmash_plugin_template.
Run:
pytest tests
Bump version number in pyproject.toml
and push.
Make a new release on github.
Then pull, and:
make dist
followed by twine upload dist/...
.