-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (26 loc) · 903 Bytes
/
setup.py
File metadata and controls
32 lines (26 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from pathlib import Path
from setuptools import find_packages, setup
def find_version() -> str:
version = "0.0.1"
extension_yaml_path = Path(__file__).parent / "extension" / "extension.yaml"
try:
with open(extension_yaml_path, encoding="utf-8") as f:
for line in f:
if line.startswith("version"):
version = line.split(" ")[-1].strip('"')
break
except Exception:
pass
return version
setup(
name="python_vscode_example",
version=find_version(),
description="Python_vscode_example python EF2 extension",
author="Dynatrace",
packages=find_packages(),
python_requires=">=3.10",
package_data={"python_vscode_example":["sqlite_files/*"]},
include_package_data=True,
install_requires=["dt-extensions-sdk"],
extras_require={"dev": ["dt-extensions-sdk[cli]"]},
)