We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c85cc5 commit 32b2bbaCopy full SHA for 32b2bba
cli/conanfile.py
@@ -3,6 +3,7 @@
3
4
from pathlib import Path
5
6
+import toml
7
from conan import ConanFile
8
from conan.tools import files, scm, env
9
@@ -48,9 +49,5 @@ class CloeLaunchProfile(ConanFile):
48
49
channel = "develop"
50
51
def set_version(self):
- for line in files.load(self, "setup.py").split("\n"):
52
- if not line.strip().startswith("version="):
53
- continue
54
- self.version = line.strip().split("=")[1].strip('",')
55
- return
56
- raise Exception("cannot find cloe-launch version")
+ pyproject = toml.loads(files.load(self, "pyproject.toml"))
+ self.version = pyproject["project"]["version"]
0 commit comments