We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46e3ce8 commit 83481f5Copy full SHA for 83481f5
.gitignore
@@ -29,3 +29,4 @@ main.js.map
29
# Pycharm
30
.idea
31
32
+stubs/version.py
stubs/MANIFEST.in
@@ -1,3 +1,4 @@
1
include metaflow-stubs/**/*.pyi
2
include metaflow-stubs/py.typed
3
include metaflow-stubs/generated_for.txt
4
+include version.py
stubs/setup.py
@@ -1,6 +1,14 @@
+import os
+import shutil
from setuptools import setup
-with open("../metaflow/version.py", mode="r") as f:
5
+source_file = "../metaflow/version.py"
6
+destination_file = "./version.py"
7
+
8
+if not os.path.exists(destination_file):
9
+ shutil.copy(source_file, destination_file)
10
11
+with open(destination_file, mode="r") as f:
12
version = f.read().splitlines()[0].split("=")[1].strip(" \"'")
13
14
setup(
0 commit comments