A module that automatically syncs geographical information standards managed on GitHub to https://register.geostandaarden.nl
The Guide for information model owners and maintainers [NL] explains how to add information models to GitHub and offer them for tracking to https://register.geostandaarden.nl
The Guide for registry maintainers [NL] explains how to setup tracking of new information models by the register.
This modules runs on Linux and macOS. You are encouraged to create a staging
and production
environment on your server as follows
-
create your
staging
directorycd /var/www/geostandaarden/ mkdir staging
-
create a virtual environment called e.g.
tr_staging
and activate itcd staging virtualenv tr_staging source tr_staging/bin/activate
-
Clone this repository and install the module in editable mode with
pip
asgit clone https://www.github.com/geonovum/technisch-register cd technisch-register pip install -e ./
The
-e
flag makes sure that "any changes you make to the code will immediately apply accross the system". In other words, you don't have to install the module every time you update the code.pip
will automatically install the project's dependencies (seesetup.py
). -
Switch to the
staging
branchgit checkout staging
-
Rename
technisch_register/settings-example.py
totechnisch_register/settings.py
and provide the needed paths. -
Run
technisch_register/initialize.py
to create the required directories and build the registercd technisch_register python initialize.py
-
Copy
technisch_register/cgi-bin.py
to your server'scgi-bin
folder, rename it tobuild.py
and adapt the paths tostaging
andproduction
environments as needed. -
Build the
production
environment by following steps 1 - 6 (except 4) while changing all mentions ofstaging
toproduction
The main script is build.py
. It reads a GitHub JSON payload from stdin
. Run build.py
as
cd technisch_register
cat github-payload.json | python build.py
Install pytest and run the tests as
pip install pytest
py.test tests/