From 81a68ca63389beff15187096b4a33e2e3ad0e9ce Mon Sep 17 00:00:00 2001 From: Bento007 Date: Thu, 22 Aug 2024 12:02:04 -0700 Subject: [PATCH 1/2] add instructions and commands to manually release the python package. --- client/python/cryoet_data_portal/Makefile | 7 +++++++ client/python/cryoet_data_portal/release_process.md | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/client/python/cryoet_data_portal/Makefile b/client/python/cryoet_data_portal/Makefile index a0517b4a5..480a7c2eb 100644 --- a/client/python/cryoet_data_portal/Makefile +++ b/client/python/cryoet_data_portal/Makefile @@ -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/* diff --git a/client/python/cryoet_data_portal/release_process.md b/client/python/cryoet_data_portal/release_process.md index ca88fe14b..762d1ec65 100644 --- a/client/python/cryoet_data_portal/release_process.md +++ b/client/python/cryoet_data_portal/release_process.md @@ -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: +```bash +make release/pypi +``` From 40a20bfa58bcf67fb9b3d58bdbcf85962d79e2e8 Mon Sep 17 00:00:00 2001 From: Trent Smith <1429913+Bento007@users.noreply.github.com> Date: Thu, 22 Aug 2024 12:05:12 -0700 Subject: [PATCH 2/2] Update client/python/cryoet_data_portal/release_process.md Co-authored-by: Jessica Gadling --- client/python/cryoet_data_portal/release_process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/python/cryoet_data_portal/release_process.md b/client/python/cryoet_data_portal/release_process.md index 762d1ec65..868c0639b 100644 --- a/client/python/cryoet_data_portal/release_process.md +++ b/client/python/cryoet_data_portal/release_process.md @@ -13,7 +13,7 @@ make build 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: +3. Run the following command to release the python client: ```bash make release/pypi ```