-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·41 lines (32 loc) · 881 Bytes
/
build.sh
File metadata and controls
executable file
·41 lines (32 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Build and test the package locally
# Usage: ./build.sh
set -e
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
else
echo "Virtual environment already exists, skipping creation..."
fi
echo "Activating virtual environment..."
source venv/bin/activate
echo "Upgrading pip..."
pip install --upgrade pip
echo "Installing build dependencies..."
pip install build twine
echo "Cleaning previous builds..."
rm -rf dist/ build/ *.egg-info
echo "Building package..."
python -m build
echo ""
echo "Build complete! Distribution files:"
ls -lh dist/
echo ""
echo "To upload to PyPI:"
echo " python -m twine upload dist/*"
echo ""
echo "To upload to Test PyPI first:"
echo " python -m twine upload --repository testpypi dist/*"
echo ""
echo "To install locally:"
echo " pip install dist/serialtalk-1.0.0-py3-none-any.whl"