-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
Β·39 lines (31 loc) Β· 1.02 KB
/
Copy pathrelease.sh
File metadata and controls
executable file
Β·39 lines (31 loc) Β· 1.02 KB
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
#!/bin/bash
conda activate coaiapy
# CoaiaPy Release Script
# Prepares distribution and publishes to PyPI
set -e # Exit on any error
echo "π CoaiaPy Release Script Starting..."
# Clean previous builds
echo "π§Ή Cleaning previous builds..."
make clean
# Bump version
echo "π Bumping version..."
make bump
# Build distribution
echo "π¨ Building distribution..."
make build
# Upload to PyPI
echo "π¦ Publishing to PyPI..."
make upload
# Get current version and create git tag
echo "π·οΈ Creating git tag..."
VERSION=$(grep -E "^\s*version\s*=\s*[\"']" setup.py | sed -E "s/.*[\"']([^\"']+)[\"'].*/\1/")
git add setup.py pyproject.toml
git commit -m "v${VERSION}" || echo "No changes to commit"
git tag "v${VERSION}"
echo "β
Release complete!"
echo "π Version: v${VERSION}"
echo "π Next steps:"
echo " - Push changes: git push origin main"
echo " - Push tag: git push origin v${VERSION}"
echo " - Verify package on PyPI: https://pypi.org/project/coaiapy/"
echo " - Test installation: pip install coaiapy"