-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
80 lines (69 loc) · 2.53 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 13 16:30:30 2018
@author: shane
"""
import glob
import os
import platform
from setuptools import find_packages, setup
from ntclient import PY_MIN_STR, __author__, __email__, __title__, __version__
os.chdir(os.path.dirname(os.path.realpath(__file__)))
PLATFORM_SYSTEM = platform.system()
CLASSIFIERS = [
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"Intended Audience :: Healthcare Industry",
"Intended Audience :: Education",
"Development Status :: 3 - Alpha",
"Natural Language :: English",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Framework :: Flake8",
"Framework :: Pytest",
"Operating System :: OS Independent",
"Operating System :: Microsoft :: Windows :: Windows XP",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.11",
"Programming Language :: SQL",
"Programming Language :: Unix Shell",
]
# ReadMe
with open("README.rst", encoding="utf-8") as file:
README = file.read()
# Requirements
# TODO: check PY_SYS_VER, and decide which requirements for e.g. 3.4, 3.6, 3.10, etc...
with open("requirements.txt", encoding="utf-8") as file:
REQUIREMENTS = file.read().split()
with open("requirements-optional.txt", encoding="utf-8") as file:
REQUIREMENTS_EXTRA = file.read().split()
# Setup method
setup(
name=__title__,
author=__author__,
author_email=__email__,
classifiers=CLASSIFIERS,
install_requires=REQUIREMENTS,
extras_require={"extras": REQUIREMENTS_EXTRA},
python_requires=">=%s" % PY_MIN_STR,
zip_safe=False,
packages=find_packages(exclude=["tests*"]),
include_package_data=True,
# Linux / macOS argcomplete compatible script "n"
scripts=glob.glob("scripts/*"),
# Windows compatible nutra.exe
entry_points={"console_scripts": ["nutra=ntclient.__main__:main"]},
platforms=["linux", "darwin", "win32"],
description="Home and office nutrient tracking software",
long_description=README,
long_description_content_type="text/x-rst",
url="https://github.com/nutratech/cli",
license="GPL v3",
version=__version__,
)