From 6c42f41df7bd194cc4e26eaa16a700e66e600b99 Mon Sep 17 00:00:00 2001 From: Cheikh Mbengue <97647866+cmbengue-ec-intl@users.noreply.github.com> Date: Thu, 5 Mar 2026 15:58:36 -0400 Subject: [PATCH 1/3] release: ptcolors v1.0.1 (#31) * docs: updates README.md (#21) * test: add new context manager tests (#22) * docs: updates README.md * tests: Adds new context manager tests * version: updates to 0.1.8 * bump: Update setuptools version (#25) * Update production.txt * Update staging.txt * Update testing.txt * Update VERSION * bump: setuptools to v78.1.1 (#27) Co-authored-by: Kaitlyn Alphonse * release ptcolors v1.0.0 * Cm/bump/1.0.0=>1.0.1 (#30) * bump: ptcolor 1.0.0 => 1.0.1 --------- --------- Co-authored-by: Azendae Popo <97713029+Azendae-Popo@users.noreply.github.com> Co-authored-by: Kaitlyn Alphonse Co-authored-by: Kaitlyn Alphonse --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 3eefcb9..7dea76e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.0 +1.0.1 From 1887fa3d16df922c5398d2703ded40a343752ea2 Mon Sep 17 00:00:00 2001 From: Kaitlyn Alphonse Date: Fri, 6 Mar 2026 13:32:15 -0400 Subject: [PATCH 2/3] bug: ptcolors PYPI upload fails --- MANIFEST.in | 1 + 1 file changed, 1 insertion(+) diff --git a/MANIFEST.in b/MANIFEST.in index ceeea23..491e095 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1 +1,2 @@ include VERSION +include README.md From fd55b5ef1ee337c1c91ab27da66b6c1f3d4ceb3a Mon Sep 17 00:00:00 2001 From: Kaitlyn Alphonse Date: Fri, 6 Mar 2026 16:03:35 -0400 Subject: [PATCH 3/3] ci: clean build artifacts before PYPI upload --- .github/workflows/cd.yml | 13 ++++++++++++- .github/workflows/ci.yml | 18 +++++++++++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4e0155c..9986674 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -35,11 +35,22 @@ fi - name: Upgrade build tools - run: python -m pip install --upgrade build + run: python -m pip install --upgrade build twine + + - name: Clean previous builds + run: rm -rf build dist *.egg-info src/*.egg-info || true + + - name: Check VERSION and README + run: | + ls -l VERSION README.md + cat VERSION - name: Build the package run: python -m build + - name: Check built distributions + run: python -m twine check dist/* + - name: Upload to PyPI if: ${{ vars.DEPLOY_TO_PYPI == 'yes' }} env: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa2893f..0c405ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,8 +49,24 @@ jobs: if [ -f requirements/staging.txt ]; then pip install -r requirements/staging.txt; fi - python -m pip install --upgrade build + + echo "๐Ÿงน Cleaning old build artifacts." + rm -rf build dist *.egg-info src/*.egg-info || true + + echo "๐Ÿ” Checking metadata source files." + ls -l VERSION README.md + cat VERSION + + echo "๐Ÿ› ๏ธ Installing build tools." + python -m pip install --upgrade build twine + + echo "๐Ÿ—๏ธ Building package." python -m build + + echo "โœ… Checking distributions." + python -m twine check dist/* + + echo "๐Ÿš€ Uploading to Test PyPI." python -m twine upload --repository testpypi dist/* - name: Done