-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.15 KB
/
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
34
35
36
37
38
39
40
41
42
"""setuptools install script"""
from setuptools import setup, find_packages
def readme():
"""Get readme contents"""
with open("README.md") as f:
return f.read()
def get_version():
"""Get the version number"""
with open("nitdms/version.py") as f:
lines = f.readlines()
line = ""
for line in lines:
if line.startswith("__version__"):
break
version = [s.strip().strip('"') for s in line.split("=")][1]
return version
setup(
name="nitdms",
version=get_version(),
author="Lee Johnston",
author_email="lee.johnston.100@gmail.com",
description="A pythonic reader for TDMS files generated by LabVIEW",
long_description=readme(),
long_description_content_type="text/markdown",
packages=find_packages(),
license="MIT",
classifiers=[
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Natural Language :: English",
],
url="https://github.com/l-johnston/nitdms",
install_requires=["numpy", "matplotlib", "unyt"],
)