duckpack 0.2.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.
- duckpack-0.2.0/.github/workflows/release.yml +190 -0
- duckpack-0.2.0/.gitignore +24 -0
- duckpack-0.2.0/Cargo.lock +2563 -0
- duckpack-0.2.0/Cargo.toml +38 -0
- duckpack-0.2.0/LICENSE +21 -0
- duckpack-0.2.0/PKG-INFO +976 -0
- duckpack-0.2.0/README.md +955 -0
- duckpack-0.2.0/duckpack_logo.png +0 -0
- duckpack-0.2.0/pyproject.toml +40 -0
- duckpack-0.2.0/python/duckpack/__init__.py +474 -0
- duckpack-0.2.0/python/duckpack/__main__.py +4 -0
- duckpack-0.2.0/python/duckpack/_duckpack.pyi +99 -0
- duckpack-0.2.0/python/duckpack/cli.py +128 -0
- duckpack-0.2.0/python/duckpack/notebook.py +271 -0
- duckpack-0.2.0/python/duckpack/py.typed +1 -0
- duckpack-0.2.0/python/duckpack/runner.py +94 -0
- duckpack-0.2.0/python/duckpack/terminal.py +186 -0
- duckpack-0.2.0/scripts/scaffold_demo_project.sh +151 -0
- duckpack-0.2.0/src/catalog.rs +1443 -0
- duckpack-0.2.0/src/diff.rs +2289 -0
- duckpack-0.2.0/src/engine.rs +1656 -0
- duckpack-0.2.0/src/ide.rs +7328 -0
- duckpack-0.2.0/src/lib.rs +10 -0
- duckpack-0.2.0/src/main.rs +1153 -0
- duckpack-0.2.0/src/python.rs +1898 -0
- duckpack-0.2.0/src/query.rs +283 -0
- duckpack-0.2.0/src/syntax.rs +458 -0
- duckpack-0.2.0/src/tui.rs +519 -0
- duckpack-0.2.0/tests/test_python_api.py +714 -0
- duckpack-0.2.0/tests/v2_compat_test.rs +227 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*.*.*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build-and-release:
|
|
11
|
+
name: Build and Release (${{ matrix.asset_name }})
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
include:
|
|
19
|
+
# Linux x86_64 (glibc 2.35 - works on Debian 12 Bookworm, Ubuntu 22.04+, Debian 13+, Fedora 36+, RHEL 9+)
|
|
20
|
+
- os: ubuntu-22.04
|
|
21
|
+
target: x86_64-unknown-linux-gnu
|
|
22
|
+
artifact_name: duckpack
|
|
23
|
+
asset_name: duckpack-linux-amd64
|
|
24
|
+
|
|
25
|
+
# Linux aarch64 (ARM64 dev containers, Docker on Apple Silicon, AWS Graviton - native ARM runner)
|
|
26
|
+
- os: ubuntu-24.04-arm
|
|
27
|
+
target: aarch64-unknown-linux-gnu
|
|
28
|
+
artifact_name: duckpack
|
|
29
|
+
asset_name: duckpack-linux-arm64
|
|
30
|
+
rustflags: "-C link-arg=-Wl,--undefined=duckdb_register_static_extensions"
|
|
31
|
+
|
|
32
|
+
# macOS (Intel)
|
|
33
|
+
- os: macos-latest
|
|
34
|
+
target: x86_64-apple-darwin
|
|
35
|
+
artifact_name: duckpack
|
|
36
|
+
asset_name: duckpack-macos-amd64
|
|
37
|
+
deployment_target: "10.15"
|
|
38
|
+
|
|
39
|
+
# macOS (Apple Silicon)
|
|
40
|
+
- os: macos-latest
|
|
41
|
+
target: aarch64-apple-darwin
|
|
42
|
+
artifact_name: duckpack
|
|
43
|
+
asset_name: duckpack-macos-arm64
|
|
44
|
+
deployment_target: "10.15"
|
|
45
|
+
|
|
46
|
+
# Windows x86_64
|
|
47
|
+
- os: windows-latest
|
|
48
|
+
target: x86_64-pc-windows-msvc
|
|
49
|
+
artifact_name: duckpack.exe
|
|
50
|
+
asset_name: duckpack-windows-amd64.exe
|
|
51
|
+
|
|
52
|
+
steps:
|
|
53
|
+
- name: Checkout code
|
|
54
|
+
uses: actions/checkout@v4
|
|
55
|
+
|
|
56
|
+
- name: Install Rust
|
|
57
|
+
uses: dtolnay/rust-toolchain@stable
|
|
58
|
+
with:
|
|
59
|
+
targets: ${{ matrix.target }}
|
|
60
|
+
|
|
61
|
+
- name: Build Release Binary
|
|
62
|
+
run: cargo build --release --target ${{ matrix.target }}
|
|
63
|
+
env:
|
|
64
|
+
RUSTFLAGS: ${{ matrix.rustflags || '' }}
|
|
65
|
+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target || '' }}
|
|
66
|
+
|
|
67
|
+
- name: Rename Artifact (Linux/macOS)
|
|
68
|
+
run: mv target/${{ matrix.target }}/release/${{ matrix.artifact_name }} ${{ matrix.asset_name }}
|
|
69
|
+
if: runner.os != 'Windows'
|
|
70
|
+
|
|
71
|
+
- name: Rename Artifact (Windows)
|
|
72
|
+
run: mv target/${{ matrix.target }}/release/${{ matrix.artifact_name }} ${{ matrix.asset_name }}
|
|
73
|
+
if: runner.os == 'Windows'
|
|
74
|
+
shell: bash
|
|
75
|
+
|
|
76
|
+
- name: Upload Release
|
|
77
|
+
uses: softprops/action-gh-release@v2
|
|
78
|
+
with:
|
|
79
|
+
files: ${{ matrix.asset_name }}
|
|
80
|
+
|
|
81
|
+
wheels:
|
|
82
|
+
name: Build Python Wheels (${{ matrix.target }})
|
|
83
|
+
runs-on: ${{ matrix.os }}
|
|
84
|
+
permissions:
|
|
85
|
+
contents: write
|
|
86
|
+
strategy:
|
|
87
|
+
fail-fast: false
|
|
88
|
+
matrix:
|
|
89
|
+
include:
|
|
90
|
+
- os: ubuntu-latest
|
|
91
|
+
target: x86_64-unknown-linux-gnu
|
|
92
|
+
- os: ubuntu-24.04-arm
|
|
93
|
+
target: aarch64-unknown-linux-gnu
|
|
94
|
+
- os: macos-latest
|
|
95
|
+
target: aarch64-apple-darwin
|
|
96
|
+
deployment_target: "10.15"
|
|
97
|
+
- os: macos-latest
|
|
98
|
+
target: x86_64-apple-darwin
|
|
99
|
+
deployment_target: "10.15"
|
|
100
|
+
- os: windows-latest
|
|
101
|
+
target: x86_64-pc-windows-msvc
|
|
102
|
+
steps:
|
|
103
|
+
- name: Checkout code
|
|
104
|
+
uses: actions/checkout@v4
|
|
105
|
+
|
|
106
|
+
- name: Build wheels
|
|
107
|
+
uses: PyO3/maturin-action@v1
|
|
108
|
+
with:
|
|
109
|
+
target: ${{ matrix.target }}
|
|
110
|
+
args: --release --out dist
|
|
111
|
+
env:
|
|
112
|
+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.deployment_target || '' }}
|
|
113
|
+
|
|
114
|
+
- name: Upload Release Wheels
|
|
115
|
+
uses: softprops/action-gh-release@v2
|
|
116
|
+
with:
|
|
117
|
+
files: dist/*.whl
|
|
118
|
+
|
|
119
|
+
- name: Upload Wheel Artifacts
|
|
120
|
+
uses: actions/upload-artifact@v4
|
|
121
|
+
with:
|
|
122
|
+
name: python-wheels-${{ matrix.target }}
|
|
123
|
+
path: dist/*.whl
|
|
124
|
+
|
|
125
|
+
sdist:
|
|
126
|
+
name: Build Python Source Distribution
|
|
127
|
+
runs-on: ubuntu-latest
|
|
128
|
+
permissions:
|
|
129
|
+
contents: write
|
|
130
|
+
steps:
|
|
131
|
+
- name: Checkout code
|
|
132
|
+
uses: actions/checkout@v4
|
|
133
|
+
|
|
134
|
+
- name: Build sdist
|
|
135
|
+
uses: PyO3/maturin-action@v1
|
|
136
|
+
with:
|
|
137
|
+
command: sdist
|
|
138
|
+
args: --out dist
|
|
139
|
+
|
|
140
|
+
- name: Upload Release sdist
|
|
141
|
+
uses: softprops/action-gh-release@v2
|
|
142
|
+
with:
|
|
143
|
+
files: dist/*
|
|
144
|
+
|
|
145
|
+
- name: Upload sdist Artifact
|
|
146
|
+
uses: actions/upload-artifact@v4
|
|
147
|
+
with:
|
|
148
|
+
name: python-sdist
|
|
149
|
+
path: dist/*
|
|
150
|
+
|
|
151
|
+
pypi-publish:
|
|
152
|
+
name: Publish to PyPI
|
|
153
|
+
needs: [wheels, sdist]
|
|
154
|
+
runs-on: ubuntu-latest
|
|
155
|
+
environment:
|
|
156
|
+
name: pypi
|
|
157
|
+
url: https://pypi.org/p/duckpack
|
|
158
|
+
permissions:
|
|
159
|
+
id-token: write
|
|
160
|
+
steps:
|
|
161
|
+
- name: Download all Python distribution artifacts
|
|
162
|
+
uses: actions/download-artifact@v4
|
|
163
|
+
with:
|
|
164
|
+
pattern: python-*
|
|
165
|
+
path: dist/
|
|
166
|
+
merge-multiple: true
|
|
167
|
+
|
|
168
|
+
- name: Check for PYPI_API_TOKEN secret
|
|
169
|
+
id: token-check
|
|
170
|
+
run: |
|
|
171
|
+
if [ -n "${{ secrets.PYPI_API_TOKEN }}" ]; then
|
|
172
|
+
echo "has_token=true" >> $GITHUB_OUTPUT
|
|
173
|
+
else
|
|
174
|
+
echo "has_token=false" >> $GITHUB_OUTPUT
|
|
175
|
+
fi
|
|
176
|
+
|
|
177
|
+
- name: Publish to PyPI (via API Token)
|
|
178
|
+
if: steps.token-check.outputs.has_token == 'true'
|
|
179
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
180
|
+
with:
|
|
181
|
+
packages-dir: dist/
|
|
182
|
+
skip-existing: true
|
|
183
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
184
|
+
|
|
185
|
+
- name: Publish to PyPI (via Trusted Publishing OIDC)
|
|
186
|
+
if: steps.token-check.outputs.has_token != 'true'
|
|
187
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
188
|
+
with:
|
|
189
|
+
packages-dir: dist/
|
|
190
|
+
skip-existing: true
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/target
|
|
2
|
+
*.sql
|
|
3
|
+
*.duckdb
|
|
4
|
+
/*/README.md
|
|
5
|
+
duck-project.toml
|
|
6
|
+
duckpack.toml
|
|
7
|
+
*.png
|
|
8
|
+
*.duckpack
|
|
9
|
+
/demo_project/*
|
|
10
|
+
.venv/
|
|
11
|
+
__pycache__/
|
|
12
|
+
*.so
|
|
13
|
+
*.pyd
|
|
14
|
+
*.whl
|
|
15
|
+
.pytest_cache/
|
|
16
|
+
debug_query.txt
|
|
17
|
+
/medium
|
|
18
|
+
*.jpg
|
|
19
|
+
/decisions/
|
|
20
|
+
.env*
|
|
21
|
+
/sandbox/
|
|
22
|
+
/tests/fixtures/v2_0_compat/
|
|
23
|
+
/tests/fixtures/
|
|
24
|
+
dist/
|