Skip to content

Commit

Permalink
use PyPI upload workflow from OpenAstronomy (#214)
Browse files Browse the repository at this point in the history
* use OpenAstronomy PyPI upload workflow

* try copying Astropy's config (may need to omit arm entries)

* force CPython

* fix upload event filter
  • Loading branch information
zacharyburnett authored Sep 28, 2023
1 parent 9e7d567 commit c175cfa
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build

on:
release:
types: [ released ]
pull_request:
workflow_dispatch:

jobs:
build:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1
with:
upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }}
targets: |
- cp3?-manylinux_x86_64
- cp3?-macosx_x86_64
sdist: true
secrets:
pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}

16 changes: 0 additions & 16 deletions .github/workflows/publish-to-pypi.yml

This file was deleted.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,9 @@ exclude = [
'.tox',
'.eggs',
]

[tool.cibuildwheel.macos]
archs = ["x86_64", "arm64"]

[tool.cibuildwheel.linux]
archs = ["auto", "aarch64"]

0 comments on commit c175cfa

Please sign in to comment.