Skip to content

Commit

Permalink
Merge pull request #10 from tyler-a-cox/fix_pyuvsim_tests
Browse files Browse the repository at this point in the history
Add automatic PyPI publishing to fftvis
  • Loading branch information
tyler-a-cox committed Apr 14, 2024
2 parents dd49dfc + e087e9a commit 0c221ee
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Python distributions to PyPI and TestPyPI

on:
push:
tags:
- '*'

jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
env:
ENV_NAME: publish
PYTHON: 3.9
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON }}

- name: Install build
run: pip install build

- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Publish to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = matvis
name = fftvis
description = An FFT-based visibility simulator
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
setup(
name="fftvis",
version="0.0.1",
description="A package for simulating visibilities using FFTs",
description="An FFT-based visibility simulator",
author="Tyler Cox",
author_email="[email protected]",
license="MIT",
Expand Down

0 comments on commit 0c221ee

Please sign in to comment.