-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
santosh
authored and
santosh
committed
Sep 2, 2024
1 parent
cbcf68a
commit 49e064b
Showing
68 changed files
with
2,510 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: Publish 🦆duckdb_extension_arrow 🐍📦 to PyPI | ||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build duckdb_extension_arrow 📦 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Act dependencies | ||
if: ${{ env.ACT }} | ||
run: | | ||
apt-get update && apt-get install sudo -y | ||
- name: Install uv | ||
run: | | ||
sudo apt update | ||
sudo apt install -y curl unzip | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Install python | ||
run: uv venv | ||
- name: build duckdb_extension_arrow for osx_arm64 | ||
working-directory: ./extensions/duckdb_extension_arrow | ||
run: | | ||
uv tool run hatch build -t wheel osx_arm64 | ||
- name: build duckdb_extension_arrow for linux_amd64_gcc4 | ||
working-directory: ./extensions/duckdb_extension_arrow | ||
run: | | ||
uv tool run hatch build -t wheel linux_amd64_gcc4 | ||
# - name: build duckdb_extension_arrow for linux_arm64 | ||
# working-directory: ./extensions/duckdb_extension_arrow | ||
# run: | | ||
# uv tool run hatch build -t wheel linux_arm64 | ||
- name: build duckdb_extension_arrow for osx_amd64 | ||
working-directory: ./extensions/duckdb_extension_arrow | ||
run: | | ||
uv tool run hatch build -t wheel osx_amd64 | ||
- name: build duckdb_extension_arrow for windows_amd64 | ||
working-directory: ./extensions/duckdb_extension_arrow | ||
run: | | ||
uv tool run hatch build -t wheel windows_amd64 | ||
- name: Copy wheels to dist directory | ||
run: | | ||
mkdir dist | ||
cp extensions/*/*/*.whl dist | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: duckdb-extension-arrow-distributions | ||
path: dist/*.whl | ||
test: | ||
needs: | ||
- build | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
# - arm-ubuntu-22.04 | ||
- windows-latest | ||
- macos-latest | ||
- macos-13 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Act dependencies | ||
if: ${{ env.ACT }} | ||
run: | | ||
apt-get update && apt-get install sudo -y | ||
- name: Install curl | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update | ||
sudo apt install -y curl | ||
- name: Install uv via curl | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Install uv via powershell | ||
if: runner.os == 'Windows' | ||
run: powershell -c "irm https://astral.sh/uv/install.ps1 | iex" | ||
- name: Install python | ||
run: uv venv | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: duckdb-extension-arrow-distributions | ||
path: dist/ | ||
- name: Install packages | ||
env: | ||
EXTENSION_NAME: arrow | ||
run: | | ||
uv sync --verbose | ||
uv pip install pytest | ||
uv pip install --no-index --find-links dist --verbose duckdb-extension-arrow | ||
uv run pytest | ||
publish-to-pypi: | ||
name: Publish 🦆duckdb_extension_arrow 🐍📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: | ||
- test | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/duckdb-extension-arrow | ||
|
||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: duckdb-extension-arrow-distributions | ||
path: dist/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: Publish 🦆duckdb_extension_autocomplete 🐍📦 to PyPI | ||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build duckdb_extension_autocomplete 📦 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Act dependencies | ||
if: ${{ env.ACT }} | ||
run: | | ||
apt-get update && apt-get install sudo -y | ||
- name: Install uv | ||
run: | | ||
sudo apt update | ||
sudo apt install -y curl unzip | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Install python | ||
run: uv venv | ||
- name: build duckdb_extension_autocomplete for osx_arm64 | ||
working-directory: ./extensions/duckdb_extension_autocomplete | ||
run: | | ||
uv tool run hatch build -t wheel osx_arm64 | ||
- name: build duckdb_extension_autocomplete for linux_amd64_gcc4 | ||
working-directory: ./extensions/duckdb_extension_autocomplete | ||
run: | | ||
uv tool run hatch build -t wheel linux_amd64_gcc4 | ||
# - name: build duckdb_extension_autocomplete for linux_arm64 | ||
# working-directory: ./extensions/duckdb_extension_autocomplete | ||
# run: | | ||
# uv tool run hatch build -t wheel linux_arm64 | ||
- name: build duckdb_extension_autocomplete for osx_amd64 | ||
working-directory: ./extensions/duckdb_extension_autocomplete | ||
run: | | ||
uv tool run hatch build -t wheel osx_amd64 | ||
- name: build duckdb_extension_autocomplete for windows_amd64 | ||
working-directory: ./extensions/duckdb_extension_autocomplete | ||
run: | | ||
uv tool run hatch build -t wheel windows_amd64 | ||
- name: Copy wheels to dist directory | ||
run: | | ||
mkdir dist | ||
cp extensions/*/*/*.whl dist | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: duckdb-extension-autocomplete-distributions | ||
path: dist/*.whl | ||
test: | ||
needs: | ||
- build | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
# - arm-ubuntu-22.04 | ||
- windows-latest | ||
- macos-latest | ||
- macos-13 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Act dependencies | ||
if: ${{ env.ACT }} | ||
run: | | ||
apt-get update && apt-get install sudo -y | ||
- name: Install curl | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update | ||
sudo apt install -y curl | ||
- name: Install uv via curl | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Install uv via powershell | ||
if: runner.os == 'Windows' | ||
run: powershell -c "irm https://astral.sh/uv/install.ps1 | iex" | ||
- name: Install python | ||
run: uv venv | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: duckdb-extension-autocomplete-distributions | ||
path: dist/ | ||
- name: Install packages | ||
env: | ||
EXTENSION_NAME: autocomplete | ||
run: | | ||
uv sync --verbose | ||
uv pip install pytest | ||
uv pip install --no-index --find-links dist --verbose duckdb-extension-autocomplete | ||
uv run pytest | ||
publish-to-pypi: | ||
name: Publish 🦆duckdb_extension_autocomplete 🐍📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: | ||
- test | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/duckdb-extension-autocomplete | ||
|
||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: duckdb-extension-autocomplete-distributions | ||
path: dist/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: Publish 🦆duckdb_extension_aws 🐍📦 to PyPI | ||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build duckdb_extension_aws 📦 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Act dependencies | ||
if: ${{ env.ACT }} | ||
run: | | ||
apt-get update && apt-get install sudo -y | ||
- name: Install uv | ||
run: | | ||
sudo apt update | ||
sudo apt install -y curl unzip | ||
curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Install python | ||
run: uv venv | ||
- name: build duckdb_extension_aws for osx_arm64 | ||
working-directory: ./extensions/duckdb_extension_aws | ||
run: | | ||
uv tool run hatch build -t wheel osx_arm64 | ||
- name: build duckdb_extension_aws for linux_amd64_gcc4 | ||
working-directory: ./extensions/duckdb_extension_aws | ||
run: | | ||
uv tool run hatch build -t wheel linux_amd64_gcc4 | ||
# - name: build duckdb_extension_aws for linux_arm64 | ||
# working-directory: ./extensions/duckdb_extension_aws | ||
# run: | | ||
# uv tool run hatch build -t wheel linux_arm64 | ||
- name: build duckdb_extension_aws for osx_amd64 | ||
working-directory: ./extensions/duckdb_extension_aws | ||
run: | | ||
uv tool run hatch build -t wheel osx_amd64 | ||
- name: build duckdb_extension_aws for windows_amd64 | ||
working-directory: ./extensions/duckdb_extension_aws | ||
run: | | ||
uv tool run hatch build -t wheel windows_amd64 | ||
- name: Copy wheels to dist directory | ||
run: | | ||
mkdir dist | ||
cp extensions/*/*/*.whl dist | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: duckdb-extension-aws-distributions | ||
path: dist/*.whl | ||
test: | ||
needs: | ||
- build | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
# - arm-ubuntu-22.04 | ||
- windows-latest | ||
- macos-latest | ||
- macos-13 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Act dependencies | ||
if: ${{ env.ACT }} | ||
run: | | ||
apt-get update && apt-get install sudo -y | ||
- name: Install curl | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update | ||
sudo apt install -y curl | ||
- name: Install uv via curl | ||
if: runner.os == 'Linux' || runner.os == 'macOS' | ||
run: curl -LsSf https://astral.sh/uv/install.sh | sh | ||
- name: Install uv via powershell | ||
if: runner.os == 'Windows' | ||
run: powershell -c "irm https://astral.sh/uv/install.ps1 | iex" | ||
- name: Install python | ||
run: uv venv | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: duckdb-extension-aws-distributions | ||
path: dist/ | ||
- name: Install packages | ||
env: | ||
EXTENSION_NAME: aws | ||
run: | | ||
uv sync --verbose | ||
uv pip install pytest | ||
uv pip install --no-index --find-links dist --verbose duckdb-extension-aws | ||
uv run pytest | ||
publish-to-pypi: | ||
name: Publish 🦆duckdb_extension_aws 🐍📦 to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: | ||
- test | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/duckdb-extension-aws | ||
|
||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: duckdb-extension-aws-distributions | ||
path: dist/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
Oops, something went wrong.