forked from ni/hightime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (45 loc) · 1.62 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
43
44
45
46
47
48
49
50
51
52
53
import os
from setuptools import setup
pypi_name = "hightime"
def read_contents(file_to_read):
with open(file_to_read, "r") as f:
return f.read()
def get_version():
script_dir = os.path.dirname(os.path.realpath(__file__))
version_path = os.path.join(script_dir, pypi_name, "VERSION")
return read_contents(version_path).strip()
setup(
name=pypi_name,
zip_safe=True,
version=get_version(),
description="Hightime Python API",
long_description=read_contents("README.md"),
long_description_content_type="text/markdown",
author="National Instruments",
author_email="[email protected]",
url="https://github.com/ni/hightime",
maintainer="National Instruments",
maintainer_email="[email protected]",
keywords=[pypi_name],
license="MIT",
include_package_data=True,
packages=[pypi_name],
install_requires=[],
tests_require=["pytest"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
package_data={pypi_name: ["VERSION"]},
)