Inside app/ext_check.py
We use Poetry for local development. Consider installing it.
After that you need to create Gitlab access token with read_api
, read_registry
and read_repository
scopes.
Then add your access credentials and registry with:
$ poetry config repositories.legal-checks https://gitlab.mati.io/api/v4/projects/323/packages/pypi/
$ poetry config http-basic.legal-checks <access_token_name> <access_token_value>
Note: you should do this step only ONCE
And finally, you can install all required dependecies:
$ poetry install
you need to set environment variables. an example can be taken from the deploy configs or the pytest.ini
file
command to run rmq consumer:
$ python -m app.worker
command to run http server:
$ python -m uvicorn app.api:app