Skip to content

Commit 003ce6c

Browse files
committed
Remove environment checks on __version__.py setuptools_scm
1 parent dfb3b00 commit 003ce6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

labscript/__version__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import os
21
from pathlib import Path
32
try:
43
import importlib.metadata as importlib_metadata
54
except ImportError:
65
import importlib_metadata
76

87
VERSION_SCHEME = {
9-
"version_scheme": os.getenv("SCM_VERSION_SCHEME", "release-branch-semver"),
10-
"local_scheme": os.getenv("SCM_LOCAL_SCHEME", "node-and-date"),
8+
"version_scheme": "release-branch-semver",
9+
"local_scheme": "node-and-date",
1110
}
1211

1312
root = Path(__file__).parent.parent
1413
if (root / '.git').is_dir():
14+
1515
from setuptools_scm import get_version
1616
__version__ = get_version(root, **VERSION_SCHEME)
1717
else:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy