-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
26 lines (22 loc) · 1015 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
import os
from setuptools import find_packages, setup
_CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
def get_version():
with open(os.path.join(_CURRENT_DIR, "src/TempMonitor/__version__.py")) as file:
for line in file:
if line.startswith("__version__"):
return line[line.find("=") + 1:].strip(' \'"\n')
raise ValueError('`__version__` not defined in `TempMonitor/__version__.py`')
__version__ = get_version()
if __name__=='__main__':
setup(
name="TempMonitor",
version=__version__,
description="Derive the inside temperature from the surface temperature for monitoring additive manufacturing process",
author="Jiangce Chen",
author_email="[email protected]",
long_description=open(os.path.join(_CURRENT_DIR, "README.md")).read(),
long_description_content_type='text/markdown',
url="https://github.com/Jiangce2017/TempMonitor",
license="MIT",
)