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.12
- pip
- Pipenv
- Docker
Fork the repository on GitHub and clone it to your local machine:
git clone [email protected]:YOUR-USERNAME/repository-service-tuf-api.git
Add 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/main
This repository has the requirements.txt
and the requirements-dev.txt
files to help build your virtual environment.
We also recommend using Pipenv to manage your virtual environment.
$ pip install pipenv
$ pipenv shell
Install development requirements
$ pipenv install -d
Running 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 precommit
This 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-dev
Open 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
$ tox
Project requirements
$ pipenv install {package}
Development requirements
$ pipenv install -d {package}
$ make requirements