Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Check __version__ matches the tag
run: |
ver='${{ github.ref_name }}'
ver="${ver#v}"
pkg_ver=$(sed -n 's/^__version__ = "\(.*\)"$/\1/p' yt_xarray/__init__.py)
if [ "$pkg_ver" != "$ver" ]; then
echo "Tag version $ver does not match yt_xarray.__version__ ($pkg_ver); fix __init__.py before tagging." >&2
exit 1
fi
echo "yt_xarray.__version__ == $ver"
- name: Extract section for this version
run: |
ver='${{ github.ref_name }}'
Expand Down
2 changes: 1 addition & 1 deletion yt_xarray/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = """Chris Havlin"""
__email__ = "chris.havlin@gmail.com"
__version__ = "0.4.2"
__version__ = "0.5.0"


# import the xarray accessor so it is registered with xarray
Expand Down
Loading