Skip to content

Commit dd6a97e

Browse files
committed
Python Pytoml
1 parent bdbe710 commit dd6a97e

File tree

8 files changed

+33
-4
lines changed

8 files changed

+33
-4
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ Thumbs.db
1919
venv/
2020
.env/
2121

22+
# Python cache and package files
23+
__pycache__/
24+
*.py[cod]
25+
*$py.class
26+
*.so
27+
.Python
28+
*.egg-info/
29+
*.egg
30+
2231
# Node dependencies (if using JS tooling for types/docs)
2332
node_modules/
2433
dist/

__pycache__/__init__.cpython-312.pyc

-587 Bytes
Binary file not shown.

build-types.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ fi
108108
# Install Python package if requested
109109
if [[ "$PYTHON" == "true" && "$INSTALL" == "true" ]]; then
110110
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"
111+
pip install -e "python/" > /dev/null
112+
echo "✅ Python package installation complete (from 'python/' subdirectory)"
114113
fi
115114

116115
# Generate TypeScript types with a dedicated container build
Binary file not shown.
Binary file not shown.
Binary file not shown.

python/api_model/types/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: api.json
3-
# timestamp: 2025-04-07T07:46:24+00:00
3+
# timestamp: 2025-04-07T08:02:11+00:00
44

55
from __future__ import annotations
66

python/pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "api_model"
7+
version = "0.1.0"
8+
description = "EqualIQ API models generated from Smithy"
9+
authors = [
10+
{name = "EqualIQ Team"}
11+
]
12+
requires-python = ">=3.9"
13+
dependencies = [
14+
"pydantic>=2.0.0",
15+
]
16+
17+
[project.urls]
18+
"Homepage" = "https://github.com/equaliq/api-model"
19+
20+
[tool.setuptools]
21+
packages = ["api_model"]

0 commit comments

Comments
 (0)