Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the way the current version is checked on CD #27

Merged
merged 1 commit into from
Apr 2, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/pythonpublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python --version
- name: Check current package version
run: |
python setup.py --version
python -c "import pangeo_forge_esgf; print(pangeo_forge_esgf.__version__)
- name: Build tarball and wheels
run: |
git clean -xdf
Expand Down
5 changes: 5 additions & 0 deletions pangeo_forge_esgf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import logging
import backoff # noqa #https://github.com/litl/backoff/issues/71

try:
from ._version import __version__
except ImportError:
__version__ = "unknown"

logging.getLogger("backoff").setLevel(logging.FATAL)
# not sure if this is needed, but I want to avoid the many backoff messages

Expand Down