Note
This service is in Experimental stage.
Repository Service for TUF API is part of Repository Service for TUF.
Repository Service for TUF Repository API Docker Image documentation
- Python >=3.13
- pip
- Pipenv
- Docker
Fork the repository on GitHub and clone it to your local machine:
git clone git@github.com:YOUR-USERNAME/repository-service-tuf-api.gitAdd a remote and regularly sync to make sure you stay up-to-date with our repository:
git remote add upstream https://github.com/repository-service-tuf/repository-service-tuf-api
git checkout main
git fetch upstream
git merge upstream/mainThis repository uses Pipenv
We also recommend using Pipenv to manage your virtual environment.
$ pip install pipenv
$ pipenv shellInstall development requirements
Note
if you want to use python venv directly you can use generate the requirements.txt using pipenv requirements --dev
$ pipenv install -dRunning checks with pre-commit:
The pre-commit tool is installed as part of the development requirements.
To automatically run checks before you commit your changes you should run:
$ make precommitThis will install the git hook scripts for the first time and run the
pre-commit tool.
Now pre-commit will run automatically on git commit.
Running the API locally
$ make run-devOpen http://localhost:80/ in your browser.
Changes in the code will automatically update the service.
See the Makefile for more options.
We use Tox to manage running the tests.
Running tests
$ toxProject requirements
$ pipenv install {package}Development requirements
$ pipenv install -d {package}