feat: prepare climate-api for PyPI release#85
Merged
Conversation
This reverts commit 2cfee5c.
This was referenced May 9, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #62.
What
Prepares
climate-apifor PyPI publication.Changes
Flat package layout
src/climate_api/moved toclimate_api/at the project root. Updatedpyproject.toml([tool.uv.build-backend] module-root = ""),Makefile, andDockerfileaccordingly. No import paths change.Blocker removed:
dhis2eogit-sourced dependencydhis2eois removed fromdependencies(it was already on PyPI as of PR #74). It is called lazily viaimportlib.import_moduleinside_get_dynamic_function, so the core API is unaffected. AModuleNotFoundErrorhandler now surfaces a clear install instruction if a download is attempted without the package.Version bump:
0.1.0→0.1.0a1PEP 440 alpha pre-release — invisible to
pip install climate-apiby default, opt-in viapip install --pre climate-apior an explicit pin.Package metadata
Added to
pyproject.toml:license,authors,readme,keywords,classifiers,[project.urls]. ALICENSEfile is included at the project root.Publish workflow
.github/workflows/publish.yml— triggers onv*tags, builds withuv build, publishes via Trusted Publishing (no API token stored in secrets).What still needs doing before first publish
climate-apion PyPI and configure Trusted Publishing for this repopypienvironment in repo settingsv0.1.0a1tagRestores PR #75, which was accidentally merged then reverted.