MQTTSuite
Loading...
Searching...
No Matches
conanfile Namespace Reference

Classes

class  JsonSchemaValidatorConan

Functions

 get_version ()

Function Documentation

◆ get_version()

conanfile.get_version ( )

Definition at line 9 of file conanfile.py.

9def get_version():
10 try:
11 version = os.getenv('PROJECT_VERSION', None)
12 if version:
13 return version
14
15 content = load('CMakeLists.txt')
16 version = re.search('set\‍(PROJECT_VERSION (.*)\‍)', content).group(1)
17 return version.strip()
18 except:
19 return None
20