Skip to content

Commit

Permalink
ADD: Add new version technique (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrover1 authored Apr 25, 2024
1 parent d869fa9 commit 9761e52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions intake_esgf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import warnings

import xarray as xr
from pkg_resources import DistributionNotFound, get_distribution

warnings.simplefilter("ignore", category=xr.SerializationWarning)

Expand All @@ -26,10 +25,6 @@ def in_notebook() -> bool:

from intake_esgf.catalog import ESGFCatalog # noqa
from intake_esgf.config import conf # noqa
from intake_esgf._version import __version__ # noqa

__all__ = ["ESGFCatalog", "conf", "IN_NOTEBOOK"]

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound: # pragma: no cover
__version__ = "0.0.0" # pragma: no cover
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
version_scheme = "no-guess-dev"
local_scheme = "node-and-date"
fallback_version = "0.0.0"
write_to = "intake_esgf/_version.py"
write_to_template = '__version__ = "{version}"'

[tool.pytest.ini_options]
console_output_style = "count"
Expand Down

0 comments on commit 9761e52

Please sign in to comment.