Skip to content

Commit

Permalink
use PyPI upload workflow from OpenAstronomy (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored Oct 5, 2023
1 parent cd8cdb1 commit a939846
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build

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

jobs:
check:
name: check that `requirements-sdp.txt` is populated
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- if: github.event_name == 'release'
run: grep -v '^ *#' requirements-sdp.txt
build:
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1
needs: [ check ]
with:
upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }}
secrets:
pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }}
24 changes: 0 additions & 24 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 @@ -192,3 +192,9 @@ extend-select = ['NPY']

[tool.ruff.extend-per-file-ignores]
"romancal/associations/__init__.py" = ["E402"]

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

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

0 comments on commit a939846

Please sign in to comment.