Skip to content

Commit 8ffc283

Browse files
authored
Merge pull request #2904 from alicevision/MeirArani-fix-local-versioning
Fix local versioning to match PyPA standards and modern setuptools requirements [UPDATE]
2 parents f3e3fa8 + f816c8e commit 8ffc283

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

meshroom/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import os
55
import sys
66

7-
87
class VersionStatus(Enum):
98
release = 1
109
develop = 2
@@ -15,7 +14,7 @@ class VersionStatus(Enum):
1514
__version_status__ = VersionStatus.develop
1615

1716
if __version_status__ is VersionStatus.develop:
18-
__version__ += "-" + __version_status__.name
17+
__version__ += "+" + __version_status__.name
1918

2019
__version_label__ = __version__
2120
# Modify version label if we are in a development phase.
@@ -29,15 +28,10 @@ class VersionStatus(Enum):
2928
data = headFile.readlines()
3029
branchName = data[0].split('/')[-1].strip()
3130
__version_label__ += " branch=" + branchName
32-
else:
33-
# Add a generic default label "develop"
34-
__version_label__ += "-" + __version_status__.name
3531

3632
# Allow override from env variable
3733
if "REZ_MESHROOM_VERSION" in os.environ:
3834
__version_label__ += " package=" + os.environ.get("REZ_MESHROOM_VERSION")
39-
elif "ION_MESHROOM_VERSION" in os.environ:
40-
__version_label__ += " container=" + os.environ.get("ION_MESHROOM_VERSION")
4135

4236

4337
# Internal imports after the definition of the version

0 commit comments

Comments
 (0)