Skip to content

Commit

Permalink
try to publish beta
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 22, 2023
1 parent 3b25ed1 commit c846d51
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 68 deletions.
103 changes: 37 additions & 66 deletions .github/workflows/python-core-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,23 @@ jobs:
manylinux: auto
args: --release --out dist -m python/core/Cargo.toml

- uses: uraimo/[email protected]
if: matrix.target == 'aarch64'
name: Install built wheel
with:
arch: ${{ matrix.target }}
distro: ubuntu20.04
githubToken: ${{ github.token }}
install: |
apt-get update
apt-get install -y --no-install-recommends python3 python3-pip
pip3 install -U pip
run: |
pip install geoarrow-rust-core --no-index --find-links dist --force-reinstall
python -c "import geoarrow.rust.core"
# This is currently failing with
# python: command not found

# - uses: uraimo/[email protected]
# if: matrix.target == 'aarch64'
# name: Install built wheel
# with:
# arch: ${{ matrix.target }}
# distro: ubuntu20.04
# githubToken: ${{ github.token }}
# install: |
# apt-get update
# apt-get install -y --no-install-recommends python3 python3-pip
# pip3 install -U pip
# run: |
# pip install geoarrow-rust-core --no-index --find-links dist --force-reinstall
# python -c "import geoarrow.rust.core"

# Have to set path from root
# https://github.com/actions/upload-artifact/issues/232#issuecomment-964235360
Expand Down Expand Up @@ -238,57 +241,25 @@ jobs:
# name: wheels
# path: dist

release:
name: Release
environment:
name: release
url: https://pypi.org/p/geoarrow-rust-core
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
runs-on: ubuntu-latest
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [macos, windows, linux, linux-cross]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels

# build_sdist:
# name: Build source distribution
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: python/core

# steps:
# - uses: actions/checkout@v3
# with:
# submodules: "recursive"

# - uses: actions/setup-python@v2
# name: Install Python
# with:
# python-version: "3.8"

# - name: Install Rust
# uses: dtolnay/rust-toolchain@stable

# - name: Build sdist
# run: |
# pip install -U build
# python -m build --sdist

# # Have to set path from root
# # https://github.com/actions/upload-artifact/issues/232#issuecomment-964235360
# - uses: actions/upload-artifact@v2
# with:
# path: python/core/dist/*.tar.gz

# upload_pypi:
# needs:
# [
# build-wheel-manylinux2014,
# build-wheels-mac,
# build-wheel-windows,
# build_sdist,
# ]
# runs-on: ubuntu-latest
# # Make sure we only run this on new tags/release
# if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: artifact
# path: dist
- uses: actions/setup-python@v4
with:
python-version: 3.8

# - uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_PASSWORD }}
# # To test: repository_url: https://test.pypi.org/legacy/
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion python/core/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "geoarrow-rust"
version = "0.1.0-beta.1"
version = "0.1.0-beta.2"
authors = ["Kyle Barron <[email protected]>"]
edition = "2021"
description = "Efficient, vectorized geospatial operations in Python."
Expand Down

0 comments on commit c846d51

Please sign in to comment.