-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sh
More file actions
23 lines (16 loc) · 696 Bytes
/
Copy pathbuild.sh
File metadata and controls
23 lines (16 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Ensure we exit immediately if any command fails
set -e
# Clean up old distribution files
echo "Cleaning up old distribution files..."
rm -rf dist/*
# Create source distribution and wheel
echo "Building source distribution and wheel..."
python -m build
# Optional: Run checks
echo "Running twine check..."
twine check dist/*
echo "Build complete. Distribution files are in the 'dist/' directory."
echo "To upload to test PyPI, run: twine upload --repository testpypi dist/*"
echo "Test installation from test PyPi, run: pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ ml2sql"
echo "To upload to PyPI, run: twine upload dist/*"