We have two methods for contribution:
- Local install
- Docker-based debugging
git clone https://github.com/jgrss/geowombat.git
Modify the Python version (i.e., 3.8.15) as needed
pyenv virtualenv 3.8.15 venv.gw
pyenv activate venv.gw
(venv.gw) pip install pre-commit
(venv.gw) pre-commit install
Install other extras from setup.cfg
as needed.
(venv.gw) cd geowombat/
(venv.gw) pip install -e .[tests]
(venv.gw) git checkout -b new_branch_name
(venv.gw) cd tests/
(venv.gw) python -m unittest
- Build
geowombat/dockerfiles/gw_docker_debug
by right clicking and hitBuild Image...
- This will take a long time the first time only
- Give the image a name like
gw_debug
, hit Enter
- Click on dock extension tab on left panel of vscode
- Under Images click on
gw_debug
right click onlatest
, hitRun Interactive
- Under Individual Containers, right click on your running
gw_debug
instance, hitAttach Visual Studio Code
- Once opened make sure the
python
andipython
vscode extensions are installed in your attached vscode server - Go to
geowombat/src/debug_script.py
run top cell. - Add code and run
debug cell
git add .
git commit -m 'your commit message'
git push origin new_branch_name
- Go to 'Pull Requests' tab
- Go to 'New Pull Request'
- Choose 'base:main' and 'compare:new_branch_name'
- 'Create pull request'