invenio-circulation is a module used in RERO-ils to manage item loans.
RERO ILS uses a specific module to develop and enhance invenio-circulation module. You can find documentation on RERO circulation module.
You first need invenio-circulation branch from Github. Choose among one of:
git@github.com:inveniosoftware/invenio-circulation.git(official)git@github.com:rero/invenio-circulation.git(ours)
git clone git@github.com:rero/invenio-circulation.git
cd invenio-circulationThen install all needed dependencies (in invenio-circulation directory):
pipenv run pip install -r requirements-devel.txt
pipenv run pip install -e .[all,elasticsearch6,postgresql]Check that your RERO-ils docker containers are launched (in rero-ils directory):
cd ../rero-ils
docker-compose up -d && ./docker/wait-for-services.shFinally you can launch invenio-circulation module tests like this (in invenio-circulation directory):
cd ../invenio-circulation
pipenv run python setup.py testIn rero-ils directory (git@github.com:rero/rero-ils.git repository), you need to change pyproject.toml. Especially this line:
invenio-circulation = {tag = "v1.0.0a23", git = "https://github.com/inveniosoftware/invenio-circulation.git"}- tag could be a branch name
- git should be changed by your repository path on Github (or elsewhere)
Then do:
poetry update invenio-circulationThis will install your repository from your github fork of invenio-circulation.