Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
13 changes: 12 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include VERSION
include README.md
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1