A module that automatically syncs geographical information standards managed on GitHub to http://register.geostandaarden.nl
You need a Unix shell to run this module. Linux and OS X have one by default. If you have installed git
on Windows you can use Git Bash
. Can't find it? Try Babun instead.
-
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".pip
will automatically install the project's dependencies (seesetup.py
). -
Rename
technisch_register/settings-example.py
totechnisch_register/settings.py
and provide the needed paths. -
Create the required directories and build the register
cd technisch_register python initialize.py
The main script is build.py
. It reads a GitHub JSON payload from stdin
and builds the register in staging
or production
mode. Run build.py
as
cat github-payload.json | python build.py
Line 32 of github-payload.json
determines whether the script should build staging
or production
. Change prerelease
to false
to build production
and vice versa.
Install pytest and run the tests as
pip install pytest
py.test tests/
The code is written on OS X and deployed on Ubuntu. Windows support is shaky at best.