Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Introduce PyPI setup to distribute python package #117

Merged
merged 13 commits into from
May 7, 2022

Conversation

treee111
Copy link
Owner

@treee111 treee111 commented May 3, 2022

This PR…

Considerations and implementations

  • adds relevant files to create a release and publish it to PyPI
  • refactores the directories to have equal calls when using the version from PyPI, the .zip files and being in the repository
  • updates documentation accordingly

Benefits:

  • no .zip download is needed to use wahooMapsCreator
  • one does not have to cd within directories
  • one does not need to know where wahooMapsCreator was exctracted to
  • gdal-user.yml file is not needed for installation (but can still be used)
  • upgrades are easier

How to test

  1. ...
  2. ...

Pull Request Checklist

@treee111 treee111 added enhancement New feature or request infrastructure Infrastructure labels May 3, 2022
@treee111 treee111 changed the title [FEATURE] Introduce PyPI setup to distrubute on python package [FEATURE] Introduce PyPI setup to distribute on python package May 3, 2022
@treee111 treee111 changed the title [FEATURE] Introduce PyPI setup to distribute on python package [FEATURE] Introduce PyPI setup to distribute python package May 3, 2022
* replace occurences of old values to wahoo_mc

- "common_"...
- "wahoo_maps_creator"

* adjust docs to the user directory
@treee111 treee111 force-pushed the pypi-setup branch 2 times, most recently from 96a5498 to 9f9628a Compare May 7, 2022 11:04
@treee111 treee111 marked this pull request as ready for review May 7, 2022 12:55
@treee111 treee111 merged commit e8f0b67 into release-v2.0.0 May 7, 2022
@treee111 treee111 deleted the pypi-setup branch May 7, 2022 12:55
treee111 added a commit that referenced this pull request May 7, 2022
* [FIX] Adjust documentation from #115 and #119 (#120)

* replace occurences of old values to wahoo_mc

- "common_"...
- "wahoo_maps_creator"

* adjust docs to the user directory

* introduce config files for pypi
- gitignore build-files

* adjust conda .yml files according to PyPI setup

- gdal-user.yml according to setup.cfg
- gdal-dev.yml for publish packages

* Bump to version v2.0.0a2

* align the package folder to the package name

- rename wahoo_mc to wahoo-mc

* Bump to version v2.0.0a3

* Revert "align the package folder to the package name"

This reverts commit 95a32cd.

* rename to mahoomc

* Bump to version v2.0.0a4

* temp documentation

* Bump to version v2.0.0a5

* add upgrading wahoomc via pip

* add commands to publish the release to PyPI
treee111 added a commit that referenced this pull request May 8, 2022
- remaning from wahoo_mc to mahoomc was via #117
treee111 added a commit that referenced this pull request May 8, 2022
- remaning from wahoo_mc to mahoomc was via #117
treee111 added a commit that referenced this pull request May 8, 2022
- remaning from wahoo_mc to mahoomc was via #117
treee111 added a commit that referenced this pull request May 8, 2022
…endering (#106)

* initial VTM rendering theme

- from https://gist.github.com/Intyre/7494d5c6c86b5bc60ce4d03b9cfce2df

* copy files in

- from: https://github.com/zenziwerken/Bolt2-Mapsforge-Rendertheme

* write new files to the created .zip files

* add docu for POI creation

* move themes folder to root directory

- docs: copy the whole vtm_theme_poi content (does not harm on e.g. BOLT)

* scale icons to appear bigger

* launch config for POIs

* read out content of generated .map files

- to check, if certain OSM tags / POIs are in the generated .map files

* Added some tags not to be filtered.

Added landuse forest and amenity for =fuel =cafe, shop=bicycle =bakery

* add drinking_water POI in all relevant files

* make some streets black for bolt

* do not render place/locality

* publish device_themes as separate .zip
- refactor and correct copyFiles  script
- correct cd .. statements

* fix unittests according to new POI constants

* adjust documentation

* use new symbol for drinking water

- from: https://github.com/mapsforge/vtm/blob/master/vtm-themes/resources/assets/symbols/food/drinkingtap.svg

* adjust launch config to correct module name

- remaning from wahoo_mc to mahoomc was via #117

* vtm device theme adjustments

- make highways smaller on bolt (because they are black)
- who drinking_water on the same zoom-level as bakeries

* adjust gitignore for osmfilter files

* adjust copyFiles script

* README: add POI pictures

Co-authored-by: zenziwerken <[email protected]>
treee111 added a commit that referenced this pull request May 8, 2022
* [FIX] Adjust documentation from #115 and #119 (#120)

* replace occurences of old values to wahoo_mc

- "common_"...
- "wahoo_maps_creator"

* adjust docs to the user directory

* introduce config files for pypi
- gitignore build-files

* adjust conda .yml files according to PyPI setup

- gdal-user.yml according to setup.cfg
- gdal-dev.yml for publish packages

* Bump to version v2.0.0a2

* align the package folder to the package name

- rename wahoo_mc to wahoo-mc

* Bump to version v2.0.0a3

* Revert "align the package folder to the package name"

This reverts commit 95a32cd.

* rename to mahoomc

* Bump to version v2.0.0a4

* temp documentation

* Bump to version v2.0.0a5

* add upgrading wahoomc via pip

* add commands to publish the release to PyPI

BREAKING CHANGE:
The GUI and CLI of wahooMapsCreator will now be called differently than
before:
- `python wahoomc gui` and
- `python wahoomc cli -co malta`
treee111 added a commit that referenced this pull request May 8, 2022
…endering (#106)

* initial VTM rendering theme

- from https://gist.github.com/Intyre/7494d5c6c86b5bc60ce4d03b9cfce2df

* copy files in

- from: https://github.com/zenziwerken/Bolt2-Mapsforge-Rendertheme

* write new files to the created .zip files

* add docu for POI creation

* move themes folder to root directory

- docs: copy the whole vtm_theme_poi content (does not harm on e.g. BOLT)

* scale icons to appear bigger

* launch config for POIs

* read out content of generated .map files

- to check, if certain OSM tags / POIs are in the generated .map files

* Added some tags not to be filtered.

Added landuse forest and amenity for =fuel =cafe, shop=bicycle =bakery

* add drinking_water POI in all relevant files

* make some streets black for bolt

* do not render place/locality

* publish device_themes as separate .zip
- refactor and correct copyFiles  script
- correct cd .. statements

* fix unittests according to new POI constants

* adjust documentation

* use new symbol for drinking water

- from: https://github.com/mapsforge/vtm/blob/master/vtm-themes/resources/assets/symbols/food/drinkingtap.svg

* adjust launch config to correct module name

- remaning from wahoo_mc to mahoomc was via #117

* vtm device theme adjustments

- make highways smaller on bolt (because they are black)
- who drinking_water on the same zoom-level as bakeries

* adjust gitignore for osmfilter files

* adjust copyFiles script

* README: add POI pictures

Co-authored-by: zenziwerken <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request infrastructure Infrastructure refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant