-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublish.sh
More file actions
executable file
·35 lines (26 loc) · 804 Bytes
/
Copy pathpublish.sh
File metadata and controls
executable file
·35 lines (26 loc) · 804 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
#!/bin/bash
# One-click publish script for decision-frameworks (PyPI)
# Prerequisites:
# pip install build twine
# Configure ~/.pypirc or use TWINE_USERNAME/TWINE_PASSWORD env vars
set -e
echo "=== Publishing decision-frameworks to PyPI ==="
# Check dependencies
echo "Checking build tools..."
python3 -m pip install --quiet build twine
# Run tests
echo "Running tests..."
python3 tests/test_all.py
# Clean previous builds
echo "Cleaning previous builds..."
rm -rf dist/ build/ *.egg-info decision_frameworks.egg-info
# Build
echo "Building package..."
python3 -m build
# Check package
echo "Checking package..."
python3 -m twine check dist/*
# Upload
echo "Uploading to PyPI..."
python3 -m twine upload dist/*
echo "Done! Package published to https://pypi.org/project/decision-frameworks/"