This is just a POC for running plugins in Circulation Manager
- new route
/hello_world
in CM API returning a hello world message. - Frequently print "hello world" to output.
To upload a package twine is used.
pip install twine
-
Build the package
python setup.py sdist bdist_wheel
-
Upload to a PyPI server
twine upload --repository-url <pypi_server_name> dist/*
Note: To use a local pypi server, please follow this tutorial
Please use pip install -U --index-url <pypi_server_name> cm-plugin-hello
Once the plugin needs the server_core packages to run, it's necessary to have it under the core folder.
To to this, clone the server_core:
git clone https://github.com/arielmorelli/server_core core
To run tests, just run nosetests tests/
(don't forget to activate the virtualenv activated and install all requirements packages)