forked from sassoftware/python-sasctl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (69 loc) · 2.55 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
#!/usr/bin/env python
# encoding: utf-8
#
# Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import os
import re
from setuptools import setup, find_packages
def read_dunder(name):
with open(os.path.join("src", "sasctl", "__init__.py")) as f:
for line in f.readlines():
match = re.search(r'(?<=^__{}__ = [\'"]).*\b'.format(name), line)
if match:
return match.group(0)
raise RuntimeError("Unable to find __%s__ in __init__.py" % name)
def get_file(filename):
with open(filename, "r") as f:
return f.read()
setup(
name="sasctl",
description="SAS Viya Python Client",
long_description=get_file("README.md"),
long_description_content_type="text/markdown",
version=read_dunder("version"),
author=read_dunder("author"),
license="Apache v2.0",
url="https://github.com/sassoftware/python-sasctl/",
project_urls={
"Bug Tracker": "https://github.com/sassoftware/python-sasctl/issues",
"Documentation": "https://sassoftware.github.io/python-sasctl/",
"Source Code": "https://github.com/sassoftware/python-sasctl",
},
include_package_data=True,
packages=find_packages(where="src"),
package_dir={"": "src"},
python_requires=">=3.5",
install_requires=["pandas", "scikit-learn", "requests", "pyyaml", "packaging"],
extras_require={
"swat": ["swat"],
"GitPython": ["GitPython"],
"kerberos": [
'kerberos ; platform_system != "Windows"',
'winkerberos ; platform_system == "Windows"',
],
"all": [
"swat",
"GitPython",
'kerberos ; platform_system != "Windows"',
'winkerberos ; platform_system == "Windows"',
],
},
entry_points={"console_scripts": ["sasctl = sasctl.utils.cli:main"]},
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: OS Independent",
],
)