mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-18 16:06:30 +08:00
remove legacy versioning files
This commit is contained in:
parent
ac55da81d8
commit
b02abc2bf4
@ -1 +0,0 @@
|
|||||||
7
|
|
@ -1,13 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
override = os.getenv("VERSIONEER_OVERRIDE")
|
return os.getenv("VERSIONEER_OVERRIDE", default="7.0.beta")
|
||||||
if override:
|
|
||||||
return override
|
|
||||||
srcroot = os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir)
|
|
||||||
with open(os.path.join(srcroot, "MAJOR_VERSION"), "r") as f:
|
|
||||||
version = f.read().strip()
|
|
||||||
version += ".unknown"
|
|
||||||
if os.path.exists(os.path.join(srcroot, "BETA")):
|
|
||||||
version += ".beta"
|
|
||||||
return version
|
|
||||||
|
@ -11,16 +11,7 @@ def get_rev():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
override = os.getenv("VERSIONEER_OVERRIDE")
|
return os.getenv("VERSIONEER_OVERRIDE", default="7.0.beta")
|
||||||
if override:
|
|
||||||
return override
|
|
||||||
srcroot = os.path.dirname(os.path.abspath(__file__))
|
|
||||||
with open(os.path.join(srcroot, "MAJOR_VERSION"), "r") as f:
|
|
||||||
version = f.read().strip()
|
|
||||||
version += ".unknown"
|
|
||||||
if os.path.exists(os.path.join(srcroot, "BETA")):
|
|
||||||
version += ".beta"
|
|
||||||
return version
|
|
||||||
|
|
||||||
def get_rev():
|
def get_rev():
|
||||||
return os.getenv("VERSIONEER_REV", default="unknown")
|
return os.getenv("VERSIONEER_REV", default="unknown")
|
||||||
|
Loading…
Reference in New Issue
Block a user