827 B
827 B
Build
-
Install
build
for example viapacman -S python-build
on ArchLinux -
Afterwards run the command to generate pip packgases in
dist/
:pyproject-build
This is also needed before development because the command generates ./src/nsupdate/_version.py
.
Run tests
Tests need to run inside Docker because they depend on bind9 config.
-
Build the docker image using:
docker build -t nsupdate scripts/docker/
once -
Then run tests via
docker run --dns 127.0.0.1 -v $PWD:/app nsupdate
Lint
Run pylint in error-only mode to check any problems: pipenv run pylint src/nsupdate
Test locally
-
Create database using
pipenv run python ./manage.py migrate
-
Create a superuser with
pipenv run python ./manage.py createsuperuser
-
Run the server with
pipenv run python ./manage.py runserver