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

chore: add instructions and commands to manually release the python package. #1073

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions client/python/cryoet_data_portal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ build:
python -m pip install --upgrade pip
pip install build twine
python -m build

release/testpypi: build
python -m twine upload --repository testpypi dist/*

release/pypi: build
# Manually release in case CI/CD pipeline is not working in ./.github/workflows/release.yml
python -m twine upload dist/*
9 changes: 9 additions & 0 deletions client/python/cryoet_data_portal/release_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ The python client can be build locally by running the following:
```bash
make build
```

# Manual Release Process
After merging in the release-please PR, if the python package did not release it can be manually release by doing the following:
1. Setup your environment to upload to pypi by following the instructions [here](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account)
2. Pull the latest changes from main
3Run the following command to release the python client:
Bento007 marked this conversation as resolved.
Show resolved Hide resolved
```bash
make release/pypi
```
Loading