Skip to content

Python MapScript Updates 2018

Seth G edited this page May 15, 2019 · 10 revisions

This wiki page lists development tasks relating to updating Python MapScript to work with the latest MapServer API and with Python3. See discussions at http://lists.osgeo.org/pipermail/mapserver-dev/2018-April/thread.html for more details.

Task List

Versioning Notes

In PyPI you can only change deployment packages by changing version number.

I propose versioning following MapServer versioning (as the package will need to match the binaries), with a possible additional descriptor at the end to allow for some beta releases and patches. This follows PEP 440 guidelines.

e.g. 7.0.7a1, 7.0.7rc1, 7.0.7, 7.0.7.post1 etc.

Debian Packaging Notes

See https://github.com/mapserver/mapserver/issues/5140

Possible Tasks

Autogenerating MapScript API Documentation

The current MapScript API documentation contains many legacy methods, and is missing newer methods. With PHP moving to SWIG correct API documentation has becoming increasinly important.

I propose to use the SWIG autodoc feature to try and rectify this situation.

Steps would involve:

Possible issues:

  • installing the mapscript module as part of the docs build process may throw errors as MapServer won't be installed (will need a way to import mapscript without crashing)
  • docs build process will become more complicated (although hopefully will just be another Python dependency)
  • could be harder for non-devs to update code comments? Although current and suggested approach both require Git knowledge)

Clone this wiki locally