CLI tool for managing Zenodo uploads.
- Python v3.9+
It is recommended to use a virtual environment to install and run the application.
To create a virtual environment named
lycophron
, run the following command in your terminal:python3 -m venv lycophron source lycophron/bin/activate
To install the CLI tool just run:
# For using the tool
python -m pip install -r requirements.txt
# For local development
python -m pip install requirements-dev.txt
TODO
TODO
TODO
To manage Python dependencies, lycophron uses pip-tools
.
You should not need to do this. More often, you will want to just bump all dependencies to their latest versions. See upgrading dependencies
Two major files are used by pip-tools
:
requirements.in
, used for productionrequirements-dev.in
, used for development
The files are generated from scratch like so:
# Generate requirements.txt
pip-compile requirements.in
# Generate requirements-dev.txt
pip-compile requirements-dev.in
To add a new dependency, add it in the dependencies
section of the pyproject.toml
file. Add testing/development dependencies under [project.optional-dependencies]
section's tests
extra.
# Update the requirements.txt file
pip-compile requirements.in --upgrade-package <new-package>
# Update the requirements.dev.txt file
pip-compile requirements-dev.in --upgrade-package <new-package>
To upgrade all dependencies in development, run the following command in your terminal:
pip-compile requirements-dev.in --upgrade
and for production:
pip-compile --upgrade
pip-compile requirements.in --upgrade