Skip to content

Commit ce2d4df

Browse files
authored
Update setup.py
1 parent 6e43d81 commit ce2d4df

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
from setuptools import setup, find_packages
2+
import os
3+
4+
if "GITHUB_REF" in os.environ:
5+
version = os.environ["GITHUB_REF"]
6+
else:
7+
version = "0.0.1"
28

39
setup(name='nimbus-python',
4-
version='0.0.1',
10+
version=version,
511
description='python bindings for nimbus 3D camera',
612
url='https://github.com/pieye/nimbus-python',
713
author='Markus Proeller',
@@ -12,4 +18,4 @@
1218
"websockets", "numpy", "requests"
1319
],
1420
packages=find_packages(),
15-
zip_safe=False)
21+
zip_safe=False)

0 commit comments

Comments
 (0)