Skip to content

Commit

Permalink
Release 0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
wxguy committed Feb 4, 2023
1 parent 739a503 commit dd6dcb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-pip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
pip install setuptools wheel twine setuptools-git-versioning build
- name: Build Package
run: |
echo "Updating '_version' file with: '$(setuptools-git-versioning)'..."
echo -e "# Generated by wrfplot build file. Do not edit it manually...\n__version__ = version = '$(setuptools-git-versioning)'" > _version.py
#echo "Updating '_version' file with: '$(setuptools-git-versioning)'..."
#echo -e "# Generated by wrfplot build file. Do not edit it manually...\n__version__ = version = '$(setuptools-git-versioning)'" > _version.py
python -m build --sdist
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1.5
Expand Down
10 changes: 6 additions & 4 deletions wrfplot/wrfplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,17 @@
warnings.filterwarnings("ignore", module="matplotlib")
warnings.filterwarnings("ignore", module="datetime")

VERSION = 'unknown'

try:
import _version
__version__ = _version.__version__

except:
__version__ = version("wrfplot")
except:
# package is not installed
# Get the version from local file
import _version
__version__ = _version.__version__
finally:
# Do nothing
pass


Expand Down

0 comments on commit dd6dcb3

Please sign in to comment.