Skip to content

Commit bdbe710

Browse files
committed
Get rid of setup.py
1 parent fc021db commit bdbe710

File tree

14 files changed

+14
-71
lines changed

14 files changed

+14
-71
lines changed

api_model.egg-info/PKG-INFO

Lines changed: 0 additions & 9 deletions
This file was deleted.

api_model.egg-info/SOURCES.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

api_model.egg-info/dependency_links.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

api_model.egg-info/requires.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

api_model.egg-info/top_level.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

build-types.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ usage() {
1212
echo " -t, --typescript Generate TypeScript types"
1313
echo " -a, --all Generate both Python and TypeScript"
1414
echo " -o, --output-dir Output directory (default: ./output)"
15+
echo " -i, --install Install Python package in development mode"
1516
echo " -h, --help Show this help message"
1617
echo ""
1718
echo "Example: $0 --all --output-dir ./types"
@@ -25,13 +26,17 @@ TYPESCRIPT=false
2526
OUTPUT_DIR="" # No default output directory since we have dedicated package directories
2627
OPENAPI_FILE="build/smithyprojections/api-model/openapi/openapi/EqualIQ.openapi.json"
2728

29+
# Default value for installation
30+
INSTALL=false
31+
2832
# Parse command-line arguments
2933
while [[ "$#" -gt 0 ]]; do
3034
case $1 in
3135
-p|--python) PYTHON=true ;;
3236
-t|--typescript) TYPESCRIPT=true ;;
3337
-a|--all) PYTHON=true; TYPESCRIPT=true ;;
3438
-o|--output-dir) OUTPUT_DIR="$2"; shift ;;
39+
-i|--install) INSTALL=true ;;
3540
-h|--help) usage ;;
3641
*) echo "Unknown parameter: $1"; usage ;;
3742
esac
@@ -100,6 +105,14 @@ if [[ "$PYTHON" == "true" ]]; then
100105
fi
101106
fi
102107

108+
# Install Python package if requested
109+
if [[ "$PYTHON" == "true" && "$INSTALL" == "true" ]]; then
110+
echo "Installing Python package in development mode..."
111+
pip install -e python/ > /dev/null
112+
pip install -e . > /dev/null
113+
echo "✅ Python package installation complete"
114+
fi
115+
103116
# Generate TypeScript types with a dedicated container build
104117
if [[ "$TYPESCRIPT" == "true" ]]; then
105118
echo "Generating TypeScript types..."

python/api_model.egg-info/PKG-INFO

Lines changed: 0 additions & 9 deletions
This file was deleted.

python/api_model.egg-info/SOURCES.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

python/api_model.egg-info/dependency_links.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

python/api_model.egg-info/requires.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)