forked from aadil-sengupta/Tally.Py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_package.sh
More file actions
executable file
Β·42 lines (34 loc) Β· 1.12 KB
/
build_package.sh
File metadata and controls
executable file
Β·42 lines (34 loc) Β· 1.12 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
40
41
42
#!/bin/bash
# Build script for Tally Integration Library
# This script builds and validates the package for PyPI distribution
echo "π Building Tally Integration Library for PyPI"
echo "================================================"
# Clean previous builds
echo "π§Ή Cleaning previous builds..."
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
# Install build dependencies
echo "π¦ Installing build dependencies..."
pip install --upgrade build twine wheel setuptools
# Build the package
echo "π¨ Building the package..."
python -m build
# Check the package
echo "π Checking the package..."
python -m twine check dist/*
# List the built files
echo "π Built files:"
ls -la dist/
echo ""
echo "β
Package built successfully!"
echo ""
echo "π Next steps:"
echo "1. Test the package: pip install dist/tally_integration-1.0.0-py3-none-any.whl"
echo "2. Upload to TestPyPI: twine upload --repository testpypi dist/*"
echo "3. Upload to PyPI: twine upload dist/*"
echo ""
echo "π Required PyPI account setup:"
echo "- Create account at https://pypi.org/"
echo "- Generate API token"
echo "- Configure ~/.pypirc with credentials"