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

Publish to pypi #68

Merged
merged 2 commits into from
May 30, 2024
Merged

Publish to pypi #68

merged 2 commits into from
May 30, 2024

Conversation

rwb27
Copy link
Collaborator

@rwb27 rwb27 commented May 30, 2024

labthings-fastapi can now be installed from PyPI. Each commit will be built and uploaded to test.pypi.org, and tagged versions will be uploaded to the real thing.

Due to an error during testing, v0.0.1 has already been pushed to PyPI. I will tag the merge commit of this MR; it's not strictly the commit that resulted in the published package, but the code has not changed - this branch only touches CI, and the configuration in pyproject.toml is identical to what was published.

I've split the optional dependencies, so there's now a "server" option. This means that the package can be installed without fastapi. At present, nothing is guaranteed to work - though the client module ought to work OK.

rwb27 added 2 commits May 30, 2024 22:16
This splits out the FastAPI dependency into a [server]
optional dep, and sets up PyPI
using trusted publishing.
Duplicated publishing job so that all commits go to test pypi
but only tags go to the real one.
@rwb27 rwb27 merged commit ec45561 into main May 30, 2024
5 of 6 checks passed
@rwb27 rwb27 deleted the test-pypi branch May 30, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant