uv-bundler 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- uv_bundler-1.0.0/.github/workflows/artifacts.yml +188 -0
- uv_bundler-1.0.0/.github/workflows/ci.yml +97 -0
- uv_bundler-1.0.0/.github/workflows/release.yml +43 -0
- uv_bundler-1.0.0/.gitignore +222 -0
- uv_bundler-1.0.0/.pre-commit-config.yaml +23 -0
- uv_bundler-1.0.0/.python-version +1 -0
- uv_bundler-1.0.0/LICENSE +201 -0
- uv_bundler-1.0.0/Makefile +80 -0
- uv_bundler-1.0.0/PKG-INFO +245 -0
- uv_bundler-1.0.0/README.md +212 -0
- uv_bundler-1.0.0/pyproject.toml +101 -0
- uv_bundler-1.0.0/setup.cfg +4 -0
- uv_bundler-1.0.0/src/uv_bundler/__init__.py +5 -0
- uv_bundler-1.0.0/src/uv_bundler/adapters/fs.py +16 -0
- uv_bundler-1.0.0/src/uv_bundler/adapters/process.py +14 -0
- uv_bundler-1.0.0/src/uv_bundler/cli.py +195 -0
- uv_bundler-1.0.0/src/uv_bundler/domain/config.py +78 -0
- uv_bundler-1.0.0/src/uv_bundler/domain/platforms.py +34 -0
- uv_bundler-1.0.0/src/uv_bundler/services/bootstrap.py +41 -0
- uv_bundler-1.0.0/src/uv_bundler/services/config_loader.py +59 -0
- uv_bundler-1.0.0/src/uv_bundler/services/packager.py +163 -0
- uv_bundler-1.0.0/src/uv_bundler/services/resolver.py +129 -0
- uv_bundler-1.0.0/src/uv_bundler/services/staging.py +16 -0
- uv_bundler-1.0.0/src/uv_bundler.egg-info/PKG-INFO +245 -0
- uv_bundler-1.0.0/src/uv_bundler.egg-info/SOURCES.txt +70 -0
- uv_bundler-1.0.0/src/uv_bundler.egg-info/dependency_links.txt +1 -0
- uv_bundler-1.0.0/src/uv_bundler.egg-info/entry_points.txt +2 -0
- uv_bundler-1.0.0/src/uv_bundler.egg-info/requires.txt +15 -0
- uv_bundler-1.0.0/src/uv_bundler.egg-info/top_level.txt +1 -0
- uv_bundler-1.0.0/tests/__init__.py +0 -0
- uv_bundler-1.0.0/tests/benchmarks/test_packager_benchmark.py +30 -0
- uv_bundler-1.0.0/tests/integration/test_cli_dry_run.py +75 -0
- uv_bundler-1.0.0/tests/integration/test_packager_jar_integration.py +31 -0
- uv_bundler-1.0.0/tests/integration/test_packager_pex_integration.py +35 -0
- uv_bundler-1.0.0/tests/integration/test_packager_zip_integration.py +28 -0
- uv_bundler-1.0.0/tests/integration/test_resolver_cross_platform.py +115 -0
- uv_bundler-1.0.0/tests/unit/test_bootstrap.py +41 -0
- uv_bundler-1.0.0/tests/unit/test_cli_help.py +10 -0
- uv_bundler-1.0.0/tests/unit/test_cli_unit.py +348 -0
- uv_bundler-1.0.0/tests/unit/test_config_loader.py +144 -0
- uv_bundler-1.0.0/tests/unit/test_config_properties.py +42 -0
- uv_bundler-1.0.0/tests/unit/test_domain_config.py +135 -0
- uv_bundler-1.0.0/tests/unit/test_fs_adapter.py +34 -0
- uv_bundler-1.0.0/tests/unit/test_packager_jar.py +154 -0
- uv_bundler-1.0.0/tests/unit/test_packager_pex.py +205 -0
- uv_bundler-1.0.0/tests/unit/test_packager_zip.py +94 -0
- uv_bundler-1.0.0/tests/unit/test_platforms.py +53 -0
- uv_bundler-1.0.0/tests/unit/test_process_adapter.py +30 -0
- uv_bundler-1.0.0/tests/unit/test_resolver.py +233 -0
- uv_bundler-1.0.0/tests/unit/test_staging.py +12 -0
- uv_bundler-1.0.0/tests/utils/__init__.py +0 -0
- uv_bundler-1.0.0/tests/utils/uv_mocks.py +32 -0
- uv_bundler-1.0.0/uv.lock +1106 -0
- uv_bundler-1.0.0/validation/Makefile +31 -0
- uv_bundler-1.0.0/validation/README.md +152 -0
- uv_bundler-1.0.0/validation/samples/lambda-zip/README.md +79 -0
- uv_bundler-1.0.0/validation/samples/lambda-zip/lambda_jobs/__init__.py +0 -0
- uv_bundler-1.0.0/validation/samples/lambda-zip/lambda_jobs/handler.py +12 -0
- uv_bundler-1.0.0/validation/samples/lambda-zip/lambda_jobs/main.py +11 -0
- uv_bundler-1.0.0/validation/samples/lambda-zip/lambda_jobs/utils.py +9 -0
- uv_bundler-1.0.0/validation/samples/lambda-zip/pyproject.toml +31 -0
- uv_bundler-1.0.0/validation/samples/numpy-etl/README.md +69 -0
- uv_bundler-1.0.0/validation/samples/numpy-etl/etl/__init__.py +0 -0
- uv_bundler-1.0.0/validation/samples/numpy-etl/etl/main.py +9 -0
- uv_bundler-1.0.0/validation/samples/numpy-etl/etl/transform.py +17 -0
- uv_bundler-1.0.0/validation/samples/numpy-etl/pyproject.toml +36 -0
- uv_bundler-1.0.0/validation/samples/single-spark-job/README.md +102 -0
- uv_bundler-1.0.0/validation/samples/single-spark-job/app/__init__.py +0 -0
- uv_bundler-1.0.0/validation/samples/single-spark-job/app/main.py +9 -0
- uv_bundler-1.0.0/validation/samples/single-spark-job/pyproject.toml +38 -0
- uv_bundler-1.0.0/validation/samples/single-spark-job/uv.lock +32 -0
- uv_bundler-1.0.0/validation/validate_artifacts.py +148 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
name: Build & Validate Artifacts
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
# ── Build the uv-bundler distribution wheel ─────────────────────────────────
|
|
16
|
+
build-wheel:
|
|
17
|
+
name: Build uv-bundler wheel
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- uses: astral-sh/setup-uv@v5
|
|
23
|
+
|
|
24
|
+
- name: Build wheel
|
|
25
|
+
run: uv build --wheel
|
|
26
|
+
|
|
27
|
+
- uses: actions/upload-artifact@v4
|
|
28
|
+
with:
|
|
29
|
+
name: uv-bundler-wheel
|
|
30
|
+
path: dist/uv_bundler-*-py3-none-any.whl
|
|
31
|
+
retention-days: 1
|
|
32
|
+
|
|
33
|
+
# ── Cross-platform artifact builds ───────────────────────────────────────
|
|
34
|
+
#
|
|
35
|
+
# Three samples are built per runner, each targeting the OPPOSITE arch from
|
|
36
|
+
# the runner to exercise Ghost Resolution (uv pip compile/install --python-platform):
|
|
37
|
+
#
|
|
38
|
+
# ubuntu-latest (x86_64 host) → builds for linux/aarch64
|
|
39
|
+
# ubuntu-24.04-arm (aarch64 host) → builds for linux/x86_64
|
|
40
|
+
#
|
|
41
|
+
# Samples and formats:
|
|
42
|
+
# single-spark-job JAR + ZIP + PEX pyspark (pure Python)
|
|
43
|
+
# numpy-etl PEX numpy + pandas (C extensions — PEX extracts .so to disk)
|
|
44
|
+
# lambda-zip ZIP boto3 (pure Python, Lambda deployment format)
|
|
45
|
+
#
|
|
46
|
+
build-linux:
|
|
47
|
+
name: Build linux/${{ matrix.target-arch }} on ${{ matrix.runner-arch }}
|
|
48
|
+
needs: build-wheel
|
|
49
|
+
strategy:
|
|
50
|
+
fail-fast: false
|
|
51
|
+
matrix:
|
|
52
|
+
include:
|
|
53
|
+
- runner: ubuntu-latest # x86_64 host → aarch64 target
|
|
54
|
+
runner-arch: x86_64
|
|
55
|
+
target-arch: aarch64
|
|
56
|
+
- runner: ubuntu-24.04-arm # aarch64 host → x86_64 target
|
|
57
|
+
runner-arch: aarch64
|
|
58
|
+
target-arch: x86_64
|
|
59
|
+
runs-on: ${{ matrix.runner }}
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@v4
|
|
62
|
+
|
|
63
|
+
- name: Download uv-bundler wheel
|
|
64
|
+
uses: actions/download-artifact@v4
|
|
65
|
+
with:
|
|
66
|
+
name: uv-bundler-wheel
|
|
67
|
+
path: dist
|
|
68
|
+
|
|
69
|
+
# uv must be on PATH so uv-bundler can invoke `uv pip compile/install`
|
|
70
|
+
- uses: astral-sh/setup-uv@v5
|
|
71
|
+
|
|
72
|
+
- name: Install uv-bundler and pex
|
|
73
|
+
run: pip install dist/uv_bundler-*.whl pex
|
|
74
|
+
|
|
75
|
+
# PEX caches downloaded wheels in ~/.pex; key by arch + all PEX sample pyproject hashes
|
|
76
|
+
- name: Cache PEX downloads
|
|
77
|
+
uses: actions/cache@v4
|
|
78
|
+
with:
|
|
79
|
+
path: ~/.pex
|
|
80
|
+
key: pex-linux-${{ matrix.target-arch }}-${{ hashFiles('validation/samples/single-spark-job/pyproject.toml', 'validation/samples/numpy-etl/pyproject.toml') }}
|
|
81
|
+
restore-keys: pex-linux-${{ matrix.target-arch }}-
|
|
82
|
+
|
|
83
|
+
# ── single-spark-job (JAR + ZIP + PEX) ───────────────────────────────
|
|
84
|
+
- name: Build single-spark-job for linux/${{ matrix.target-arch }}
|
|
85
|
+
working-directory: validation/samples/single-spark-job
|
|
86
|
+
env:
|
|
87
|
+
OUT_DIR: ${{ github.workspace }}/artifacts
|
|
88
|
+
run: |
|
|
89
|
+
mkdir -p "$OUT_DIR"
|
|
90
|
+
uv-bundler --target spark-jar --arch ${{ matrix.target-arch }}
|
|
91
|
+
uv-bundler --target spark-zip --arch ${{ matrix.target-arch }}
|
|
92
|
+
uv-bundler --target spark-pex --arch ${{ matrix.target-arch }}
|
|
93
|
+
|
|
94
|
+
# ── numpy-etl (PEX — C extensions require PEX, not JAR/ZIP) ──────────
|
|
95
|
+
- name: Build numpy-etl for linux/${{ matrix.target-arch }}
|
|
96
|
+
working-directory: validation/samples/numpy-etl
|
|
97
|
+
env:
|
|
98
|
+
OUT_DIR: ${{ github.workspace }}/artifacts
|
|
99
|
+
run: |
|
|
100
|
+
uv-bundler --target etl-${{ matrix.target-arch }}
|
|
101
|
+
|
|
102
|
+
# ── lambda-zip (ZIP — pure Python boto3, Lambda deployment format) ────
|
|
103
|
+
- name: Build lambda-zip for linux/${{ matrix.target-arch }}
|
|
104
|
+
working-directory: validation/samples/lambda-zip
|
|
105
|
+
env:
|
|
106
|
+
OUT_DIR: ${{ github.workspace }}/artifacts
|
|
107
|
+
run: |
|
|
108
|
+
uv-bundler --target lambda-${{ matrix.target-arch }}
|
|
109
|
+
|
|
110
|
+
- name: Upload artifacts
|
|
111
|
+
uses: actions/upload-artifact@v4
|
|
112
|
+
with:
|
|
113
|
+
name: artifacts-linux-${{ matrix.target-arch }}
|
|
114
|
+
path: |
|
|
115
|
+
artifacts/single-spark-job-linux-${{ matrix.target-arch }}.*
|
|
116
|
+
artifacts/numpy-etl-linux-${{ matrix.target-arch }}.*
|
|
117
|
+
artifacts/lambda-zip-linux-${{ matrix.target-arch }}.*
|
|
118
|
+
retention-days: 7
|
|
119
|
+
|
|
120
|
+
# ── Runtime validation ────────────────────────────────────────────────────
|
|
121
|
+
#
|
|
122
|
+
# Each artifact set is validated on the NATIVE runner for that arch,
|
|
123
|
+
# inside python:3.10-slim Docker — the exact target environment.
|
|
124
|
+
#
|
|
125
|
+
# Separate steps per format and sample so failures are immediately visible.
|
|
126
|
+
# No packages are pre-installed: fat artifacts must be fully self-contained.
|
|
127
|
+
#
|
|
128
|
+
validate-linux:
|
|
129
|
+
name: Validate linux/${{ matrix.target-arch }}
|
|
130
|
+
needs: build-linux
|
|
131
|
+
strategy:
|
|
132
|
+
fail-fast: false
|
|
133
|
+
matrix:
|
|
134
|
+
include:
|
|
135
|
+
- runner: ubuntu-latest # x86_64 runtime
|
|
136
|
+
target-arch: x86_64
|
|
137
|
+
- runner: ubuntu-24.04-arm # aarch64 runtime
|
|
138
|
+
target-arch: aarch64
|
|
139
|
+
runs-on: ${{ matrix.runner }}
|
|
140
|
+
env:
|
|
141
|
+
SPARK_STEM: single-spark-job-linux-${{ matrix.target-arch }}
|
|
142
|
+
ETL_STEM: numpy-etl-linux-${{ matrix.target-arch }}
|
|
143
|
+
LAMBDA_STEM: lambda-zip-linux-${{ matrix.target-arch }}
|
|
144
|
+
IMAGE: python:3.10-slim
|
|
145
|
+
steps:
|
|
146
|
+
- name: Download artifacts
|
|
147
|
+
uses: actions/download-artifact@v4
|
|
148
|
+
with:
|
|
149
|
+
name: artifacts-linux-${{ matrix.target-arch }}
|
|
150
|
+
path: artifacts
|
|
151
|
+
|
|
152
|
+
# ── single-spark-job ─────────────────────────────────────────────────
|
|
153
|
+
- name: Run single-spark-job JAR in linux/${{ matrix.target-arch }} container
|
|
154
|
+
run: |
|
|
155
|
+
docker run --rm \
|
|
156
|
+
-v "${{ github.workspace }}/artifacts:/artifacts" \
|
|
157
|
+
"$IMAGE" \
|
|
158
|
+
sh -c "python /artifacts/$SPARK_STEM.jar | tee /dev/stderr | grep -q 'Running single Spark job with pyspark'"
|
|
159
|
+
|
|
160
|
+
- name: Run single-spark-job ZIP in linux/${{ matrix.target-arch }} container
|
|
161
|
+
run: |
|
|
162
|
+
docker run --rm \
|
|
163
|
+
-v "${{ github.workspace }}/artifacts:/artifacts" \
|
|
164
|
+
"$IMAGE" \
|
|
165
|
+
sh -c "python /artifacts/$SPARK_STEM.zip | tee /dev/stderr | grep -q 'Running single Spark job with pyspark'"
|
|
166
|
+
|
|
167
|
+
- name: Run single-spark-job PEX in linux/${{ matrix.target-arch }} container
|
|
168
|
+
run: |
|
|
169
|
+
docker run --rm \
|
|
170
|
+
-v "${{ github.workspace }}/artifacts:/artifacts" \
|
|
171
|
+
"$IMAGE" \
|
|
172
|
+
sh -c "python /artifacts/$SPARK_STEM.pex | tee /dev/stderr | grep -q 'Running single Spark job with pyspark'"
|
|
173
|
+
|
|
174
|
+
# ── numpy-etl (native numpy/pandas C extensions via PEX) ─────────────
|
|
175
|
+
- name: Run numpy-etl PEX in linux/${{ matrix.target-arch }} container
|
|
176
|
+
run: |
|
|
177
|
+
docker run --rm \
|
|
178
|
+
-v "${{ github.workspace }}/artifacts:/artifacts" \
|
|
179
|
+
"$IMAGE" \
|
|
180
|
+
sh -c "python /artifacts/$ETL_STEM.pex | tee /dev/stderr | grep -q 'ETL complete'"
|
|
181
|
+
|
|
182
|
+
# ── lambda-zip (pure Python boto3 in ZIP format) ──────────────────────
|
|
183
|
+
- name: Run lambda-zip ZIP in linux/${{ matrix.target-arch }} container
|
|
184
|
+
run: |
|
|
185
|
+
docker run --rm \
|
|
186
|
+
-v "${{ github.workspace }}/artifacts:/artifacts" \
|
|
187
|
+
"$IMAGE" \
|
|
188
|
+
sh -c "python /artifacts/$LAMBDA_STEM.zip | tee /dev/stderr | grep -q 'lambda ok'"
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
# ── Lint & typecheck (runs once, not in matrix) ──────────────────────────
|
|
15
|
+
lint:
|
|
16
|
+
name: Lint & Typecheck
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- uses: astral-sh/setup-uv@v5
|
|
22
|
+
with:
|
|
23
|
+
enable-cache: true
|
|
24
|
+
cache-dependency-glob: "uv.lock"
|
|
25
|
+
python-version: "3.12"
|
|
26
|
+
|
|
27
|
+
- run: uv sync --all-extras
|
|
28
|
+
|
|
29
|
+
- name: Ruff + Black
|
|
30
|
+
run: |
|
|
31
|
+
uv run ruff check .
|
|
32
|
+
uv run black --check .
|
|
33
|
+
|
|
34
|
+
- name: Mypy
|
|
35
|
+
run: uv run mypy src
|
|
36
|
+
|
|
37
|
+
# ── Unit tests (matrix across supported Python versions) ─────────────────
|
|
38
|
+
unit:
|
|
39
|
+
name: Unit / Python ${{ matrix.python-version }}
|
|
40
|
+
needs: lint
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@v4
|
|
48
|
+
|
|
49
|
+
- uses: astral-sh/setup-uv@v5
|
|
50
|
+
with:
|
|
51
|
+
enable-cache: true
|
|
52
|
+
cache-dependency-glob: "uv.lock"
|
|
53
|
+
python-version: ${{ matrix.python-version }}
|
|
54
|
+
|
|
55
|
+
- run: uv sync --all-extras
|
|
56
|
+
|
|
57
|
+
- name: Run unit tests
|
|
58
|
+
run: uv run pytest tests/unit -q
|
|
59
|
+
|
|
60
|
+
# ── Integration tests (single Python version, gated on unit) ─────────────
|
|
61
|
+
integration:
|
|
62
|
+
name: Integration Tests
|
|
63
|
+
needs: unit
|
|
64
|
+
runs-on: ubuntu-latest
|
|
65
|
+
steps:
|
|
66
|
+
- uses: actions/checkout@v4
|
|
67
|
+
|
|
68
|
+
- uses: astral-sh/setup-uv@v5
|
|
69
|
+
with:
|
|
70
|
+
enable-cache: true
|
|
71
|
+
cache-dependency-glob: "uv.lock"
|
|
72
|
+
python-version: "3.12"
|
|
73
|
+
|
|
74
|
+
- run: uv sync --all-extras
|
|
75
|
+
|
|
76
|
+
- name: Run integration tests
|
|
77
|
+
run: uv run pytest tests/integration -q
|
|
78
|
+
|
|
79
|
+
# ── Benchmarks (only on push to main, not on every PR) ───────────────────
|
|
80
|
+
benchmarks:
|
|
81
|
+
name: Benchmarks
|
|
82
|
+
needs: unit
|
|
83
|
+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
|
84
|
+
runs-on: ubuntu-latest
|
|
85
|
+
steps:
|
|
86
|
+
- uses: actions/checkout@v4
|
|
87
|
+
|
|
88
|
+
- uses: astral-sh/setup-uv@v5
|
|
89
|
+
with:
|
|
90
|
+
enable-cache: true
|
|
91
|
+
cache-dependency-glob: "uv.lock"
|
|
92
|
+
python-version: "3.12"
|
|
93
|
+
|
|
94
|
+
- run: uv sync --all-extras
|
|
95
|
+
|
|
96
|
+
- name: Run benchmarks
|
|
97
|
+
run: uv run pytest tests/benchmarks -q -k bench
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Release to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: Build distribution
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0 # setuptools-scm needs full history for version
|
|
16
|
+
|
|
17
|
+
- uses: astral-sh/setup-uv@v5
|
|
18
|
+
|
|
19
|
+
- name: Build wheel and sdist
|
|
20
|
+
run: uv build
|
|
21
|
+
|
|
22
|
+
- uses: actions/upload-artifact@v4
|
|
23
|
+
with:
|
|
24
|
+
name: dist
|
|
25
|
+
path: dist/
|
|
26
|
+
|
|
27
|
+
publish:
|
|
28
|
+
name: Publish to PyPI
|
|
29
|
+
needs: build
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
environment:
|
|
32
|
+
name: pypi
|
|
33
|
+
url: https://pypi.org/p/uv-bundler
|
|
34
|
+
permissions:
|
|
35
|
+
id-token: write # required for trusted publishing (OIDC)
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/download-artifact@v4
|
|
38
|
+
with:
|
|
39
|
+
name: dist
|
|
40
|
+
path: dist/
|
|
41
|
+
|
|
42
|
+
- name: Publish to PyPI
|
|
43
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Intellij
|
|
10
|
+
.idea
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
share/python-wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
MANIFEST
|
|
31
|
+
|
|
32
|
+
# PyInstaller
|
|
33
|
+
# Usually these files are written by a python script from a template
|
|
34
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
35
|
+
*.manifest
|
|
36
|
+
*.spec
|
|
37
|
+
|
|
38
|
+
# Installer logs
|
|
39
|
+
pip-log.txt
|
|
40
|
+
pip-delete-this-directory.txt
|
|
41
|
+
|
|
42
|
+
# Unit test / coverage reports
|
|
43
|
+
htmlcov/
|
|
44
|
+
.tox/
|
|
45
|
+
.nox/
|
|
46
|
+
.coverage
|
|
47
|
+
.coverage.*
|
|
48
|
+
.cache
|
|
49
|
+
nosetests.xml
|
|
50
|
+
coverage.xml
|
|
51
|
+
*.cover
|
|
52
|
+
*.py.cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
.pytest_cache/
|
|
55
|
+
cover/
|
|
56
|
+
|
|
57
|
+
# Translations
|
|
58
|
+
*.mo
|
|
59
|
+
*.pot
|
|
60
|
+
|
|
61
|
+
# Django stuff:
|
|
62
|
+
*.log
|
|
63
|
+
local_settings.py
|
|
64
|
+
db.sqlite3
|
|
65
|
+
db.sqlite3-journal
|
|
66
|
+
|
|
67
|
+
# Flask stuff:
|
|
68
|
+
instance/
|
|
69
|
+
.webassets-cache
|
|
70
|
+
|
|
71
|
+
# Scrapy stuff:
|
|
72
|
+
.scrapy
|
|
73
|
+
|
|
74
|
+
# Sphinx documentation
|
|
75
|
+
docs/_build/
|
|
76
|
+
|
|
77
|
+
# PyBuilder
|
|
78
|
+
.pybuilder/
|
|
79
|
+
target/
|
|
80
|
+
|
|
81
|
+
# Jupyter Notebook
|
|
82
|
+
.ipynb_checkpoints
|
|
83
|
+
|
|
84
|
+
# IPython
|
|
85
|
+
profile_default/
|
|
86
|
+
ipython_config.py
|
|
87
|
+
|
|
88
|
+
# pyenv
|
|
89
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
90
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
91
|
+
# .python-version
|
|
92
|
+
|
|
93
|
+
# pipenv
|
|
94
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
95
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
96
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
97
|
+
# install all needed dependencies.
|
|
98
|
+
#Pipfile.lock
|
|
99
|
+
|
|
100
|
+
# UV
|
|
101
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
102
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
103
|
+
# commonly ignored for libraries.
|
|
104
|
+
#uv.lock
|
|
105
|
+
|
|
106
|
+
# poetry
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
108
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
109
|
+
# commonly ignored for libraries.
|
|
110
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
111
|
+
#poetry.lock
|
|
112
|
+
#poetry.toml
|
|
113
|
+
|
|
114
|
+
# pdm
|
|
115
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
116
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
117
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
118
|
+
#pdm.lock
|
|
119
|
+
#pdm.toml
|
|
120
|
+
.pdm-python
|
|
121
|
+
.pdm-build/
|
|
122
|
+
|
|
123
|
+
# pixi
|
|
124
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
125
|
+
#pixi.lock
|
|
126
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
127
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
128
|
+
.pixi
|
|
129
|
+
|
|
130
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
131
|
+
__pypackages__/
|
|
132
|
+
|
|
133
|
+
# Celery stuff
|
|
134
|
+
celerybeat-schedule
|
|
135
|
+
celerybeat.pid
|
|
136
|
+
|
|
137
|
+
# SageMath parsed files
|
|
138
|
+
*.sage.py
|
|
139
|
+
|
|
140
|
+
# Environments
|
|
141
|
+
.env
|
|
142
|
+
.envrc
|
|
143
|
+
.venv
|
|
144
|
+
env/
|
|
145
|
+
venv/
|
|
146
|
+
ENV/
|
|
147
|
+
env.bak/
|
|
148
|
+
venv.bak/
|
|
149
|
+
|
|
150
|
+
# Spyder project settings
|
|
151
|
+
.spyderproject
|
|
152
|
+
.spyproject
|
|
153
|
+
|
|
154
|
+
# Rope project settings
|
|
155
|
+
.ropeproject
|
|
156
|
+
|
|
157
|
+
# mkdocs documentation
|
|
158
|
+
/site
|
|
159
|
+
|
|
160
|
+
# mypy
|
|
161
|
+
.mypy_cache/
|
|
162
|
+
.dmypy.json
|
|
163
|
+
dmypy.json
|
|
164
|
+
|
|
165
|
+
# Pyre type checker
|
|
166
|
+
.pyre/
|
|
167
|
+
|
|
168
|
+
# pytype static type analyzer
|
|
169
|
+
.pytype/
|
|
170
|
+
|
|
171
|
+
# Cython debug symbols
|
|
172
|
+
cython_debug/
|
|
173
|
+
|
|
174
|
+
# PyCharm
|
|
175
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
176
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
177
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
178
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
179
|
+
#.idea/
|
|
180
|
+
|
|
181
|
+
# Abstra
|
|
182
|
+
# Abstra is an AI-powered process automation framework.
|
|
183
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
184
|
+
# Learn more at https://abstra.io/docs
|
|
185
|
+
.abstra/
|
|
186
|
+
|
|
187
|
+
# Visual Studio Code
|
|
188
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
189
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
190
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
191
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
192
|
+
# .vscode/
|
|
193
|
+
|
|
194
|
+
# Ruff stuff:
|
|
195
|
+
.ruff_cache/
|
|
196
|
+
|
|
197
|
+
# PyPI configuration file
|
|
198
|
+
.pypirc
|
|
199
|
+
|
|
200
|
+
# Cursor
|
|
201
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
202
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
203
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
204
|
+
.cursorignore
|
|
205
|
+
.cursorindexingignore
|
|
206
|
+
|
|
207
|
+
# Marimo
|
|
208
|
+
marimo/_static/
|
|
209
|
+
marimo/_lsp/
|
|
210
|
+
__marimo__/
|
|
211
|
+
|
|
212
|
+
# Docs
|
|
213
|
+
docs/IMPLEMENTATION_PLAN.md
|
|
214
|
+
.trae/
|
|
215
|
+
|
|
216
|
+
# Validation
|
|
217
|
+
.hypothesis
|
|
218
|
+
.venv_validation/
|
|
219
|
+
.venv_*
|
|
220
|
+
validation/out/
|
|
221
|
+
Validation/VALIDATION_PLAN.md
|
|
222
|
+
validation/**/.uv-bundler
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.6.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-yaml
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
9
|
+
rev: v0.6.9
|
|
10
|
+
hooks:
|
|
11
|
+
- id: ruff
|
|
12
|
+
args: [--fix]
|
|
13
|
+
- repo: https://github.com/psf/black
|
|
14
|
+
rev: 24.10.0
|
|
15
|
+
hooks:
|
|
16
|
+
- id: black
|
|
17
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
18
|
+
rev: v1.10.0
|
|
19
|
+
hooks:
|
|
20
|
+
- id: mypy
|
|
21
|
+
files: ^src/
|
|
22
|
+
additional_dependencies:
|
|
23
|
+
- pydantic>=2.5
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.10
|