- How to Contribute
- Developer Anaconda environment
- Structure of the repository
- User directory
- Git Guidelines
- Release
- Other command
- Create a Anaconda environment for developers
- Create a branch by forking the repository and apply your change.
- Commit and push your change on that branch.
- Create a pull request.
- 👉 Please follow the Git Guidlines.
- Wait for our code review and approval, possibly enhancing your change on request.
- Note that the wahooMapsCreator maintainers have many duties. So, depending on the required effort for reviewing, testing, and clarification, this may take a while.
- Once the change has been approved and merged, we will inform you in a comment.
- Celebrate! 🎉
- /conda_env/gdal-user.yml is for creating Anaconda environment for users
- /conda_env/gdal-dev.yml is for creating Anaconda environment for developers
The Anaconda environment for development can be installed via
- macOS/ Linux
conda env create -f ./conda_env/gdal-dev.yml
- Windows
conda env create -f .\conda_env\gdal-dev.yml
more information on documentation for sharing Anaconda environments
The .yml files with only the installed packages were created via
conda env export > environment.yml --from-history
There is one python coding base for both Windows and for macOS. Differences between the different OS are the used programs. The folders in the repo have the following purposes:
wahoo_mc
- custom python fileswahoo_mc/resources
- config, json fileswahoo_mc/tooling_win
- programs, scripts for Windowstooling
- programs, scripts used by Windows and macOS to test and check the generated maps
Files which are processed through the tool are stored in the user directory to be release-independent. The name of the directory is: $user_directory/wahooMapsCreatorData
and has the follwing folders:
- root - generated files are saved here
_download
- all downloaded files are saved and extracted here_tiles
- intermediate files per tile are stored here
Please use rebase instead of merge to update a branch to the latest master. This helps keeping a clean commit history in the project.
The pull request title is a short description of the change to be introduced in the repository.
The pull request tilte will later on be used for the squash commit summary and then appear in the CHANGELOG.
- The title should be 50-70 characters long.
- The commit summary must be prefixed by one of the following types.
- The commit summary must be prefixed by one of the following types.
- Use
[FEATURE]
for new features / enhancements. - Use
[FIX]
for bugfixes. - Use
[DEV]
for development, infrastructure, test or CI topics. - Use
[BREAKING]
for breaking / incompatible changes.
Note: The commit body of a breaking change should also include a paragraph starting withBREAKING CHANGE:
.
This paragraph will be highlighted in the changelog. - Exceptions are changes created by automated processes like releases or dependency updates
- Use
The commit summary is the first line of the commit message.
For a squash commit to appear in the CHANGELOG.md later on, it has to follow a certain naming pattern:
- [type] ... (#PR-number)
- The commit summary must be prefixed by one of the types.
- In the end there must be the
#pull request number
to be automatically linked in Github
[FEATURE] Add check for required input parameter for CLI and GUI (#41)
[FIX] Storing and interpretation of CLI arguments (#48)
Coding is updated in the develop-branch mainly via pull requests.
After testing carefully, a Release will be created based on branch devlop or a hotfix branc.
After installing git-chglog locally, the CHANGELOG.md can be generated with this command:
git-chglog -o CHANGELOG.md
To generate the CHANGELOG.md for a upcoming release (no tag exists yet), the following command can be used:
git-chglog -o CHANGELOG.md --next-tag v0.10.0
- Change the version in setup.cfg and gdal-user.yml
- Build a new release to publish to PyPI:
py -m build
- Publish these files to PyPI:
twine upload dist\*
Run pylint for all relevant directories/files
pylint -j 0 ./wahoomc ./tests