-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (26 loc) · 862 Bytes
/
setup.py
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
32
33
import os
from setuptools import find_packages, setup
project_dir = os.path.dirname(os.path.realpath(__file__))
version_init_file = os.path.join(project_dir, "src/acconeer/exptool/__init__.py")
with open(version_init_file, "r") as f:
lines = f.readlines()
for line in lines:
if line.startswith("__version__"):
version = line.split("=")[1].strip()[1:-1]
break
else:
raise Exception("Could not find the version")
subpackages = find_packages(where="src/acconeer")
packages = ["acconeer." + sp for sp in subpackages]
setup(
name="acconeer-exptool",
version=version,
url="https://github.com/acconeer/acconeer-python-exploration",
author="Acconeer AB",
author_email="[email protected]",
license="BSD",
package_dir={"": "src"},
packages=packages,
zip_safe=False,
include_package_data=True,
)