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

Switch to using pdm #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
data/
*.egg-info/
.ipynb_checkpoints/

.pdm-python
1 change: 1 addition & 0 deletions .pdm-python
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Users/B280936/git-repos/eurec4a-environment/.venv/bin/python
2 changes: 0 additions & 2 deletions MANIFEST.in

This file was deleted.

13 changes: 8 additions & 5 deletions eurec4a_environment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

import xarray as xr

from ._version import get_versions
from .nomenclature import get_field_by_name
from .unit import convert_units

__version__ = get_versions()["version"]
del get_versions

from importlib.metadata import version as _version

try:
__version__ = _version(__name__)
except Exception:
# Local copy or not installed with setuptools.
# Disable minimum version checks on downstream libraries.
__version__ = "9999"

def get_field(ds, name, units=None):
"""
Expand Down
Loading
Loading