Skip to content

Draft: Working towards a PyPI package

Nick Whitelegg requested to merge nickw1/geovisio:pypi-package into develop

This is the beginnings of a merge request to provide the GeoVisio API as a PyPI package.

Note it's not production-ready yet, but I've opened it primarily to invite comment.

The most important step is to move all the source into its own package-specific directory, as per the requirements for PyPI. For now, this is called geovisio_nickw1 as a placeholder name.

I've also changed various paths in the source code to be compatible with this.

I have published it to the testpypi repository : https://test.pypi.org/project/geovisio-nickw1/

I have tested a small app and it appears to work. Code as follows:

import dotenv
import geovisio_nickw1

dotenv.load_dotenv()
app = geovisio_nickw1.create_app()
app.run()

As I said, this is NOT ready to merge yet, in particular it's failing the CI due to trying to import src rather than src.geovisio_nickw1 in the tests. (Though I did update the tests to reflect this).

I'm opening it now primarily as a place to invite discussion and begin tidying it up so it's ready to merge.

Edited by Nick Whitelegg

Merge request reports