-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPUBLISH_TO_PYPI.sh
More file actions
executable file
·44 lines (36 loc) · 993 Bytes
/
PUBLISH_TO_PYPI.sh
File metadata and controls
executable file
·44 lines (36 loc) · 993 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
42
43
44
#!/bin/bash
# Script to publish oilpriceapi SDK v1.0.1 to PyPI
set -e # Exit on error
echo "="
echo "Publishing oilpriceapi v1.0.1 to PyPI"
echo "="
echo ""
# Activate build environment
cd /home/kwaldman/code/sdks/python
source build-env/bin/activate
# Verify packages exist and are valid
echo "✓ Checking packages..."
twine check dist/oilpriceapi-1.0.1*
echo ""
# Show what we're about to upload
echo "📦 Packages to upload:"
ls -lh dist/oilpriceapi-1.0.1*
echo ""
# Upload to PyPI
echo "🚀 Uploading to PyPI..."
echo ""
echo "You'll be prompted for your PyPI credentials:"
echo " Username: __token__"
echo " Password: pypi-xxxxx (your API token)"
echo ""
twine upload dist/oilpriceapi-1.0.1*
echo ""
echo "="
echo "✅ PUBLISHED SUCCESSFULLY!"
echo "="
echo ""
echo "Next steps:"
echo "1. Wait 2-3 minutes for PyPI to process"
echo "2. Test: pip install --upgrade oilpriceapi"
echo "3. Verify version: python -c 'import oilpriceapi; print(oilpriceapi.__version__)'"
echo ""