-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
40 lines (34 loc) · 1.05 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
"""Setuptools install script"""
from setuptools import setup, find_packages
def get_readme():
"""Get readme contents"""
with open("README.md") as f:
return f.read()
def get_version():
"""Get the version number"""
with open("nirfsg/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="nirfsg",
version=get_version(),
author="Lee Johnston",
author_email="[email protected]",
description="Python control of NI RF Signal Generators using NI-RFSG",
long_description=get_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",
],
include_package_data=True,
)