Skip to content

Commit

Permalink
Allow VCS install using GLUONTS_FALLBACK_VERSION (#3028)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange authored Oct 25, 2023
1 parent eadfceb commit 806322e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gluonts/meta/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ def get_version_and_cmdclass(version_file):
)
"""

import os
import subprocess
from pathlib import Path

FALLBACK_VERSION = os.environ.get("GLUONTS_FALLBACK_VERSION", "0.0.0")

GIT_DESCRIBE = [
"git",
Expand Down Expand Up @@ -250,4 +252,4 @@ def make_release_tree(self, base_dir, files):
return {"sdist": sdist, "build_py": build_py}


__version__ = get_version(fallback="0.0.0")
__version__ = get_version(fallback=FALLBACK_VERSION)

0 comments on commit 806322e

Please sign in to comment.