-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
51 lines (46 loc) · 1.37 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
import setuptools
import os
import re
with open("README.md", "r") as fh:
long_description = fh.read()
def get_version(package):
"""
Return package version as listed in `__version__` in `__init__.py`.
"""
path = os.path.join(os.path.dirname(__file__), package, "__init__.py")
with open(path, "rb") as f:
init_py = f.read().decode("utf-8")
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
install_requirements = [
'cyanodbc >= 0.0.2',
'prompt_toolkit >= 3.0.5',
'Pygments>=2.6.1',
'sqlparse >= 0.3.1',
'configobj >= 5.0.6',
'click >= 7.1.2',
'cli_helpers >= 2.0.1'
]
setuptools.setup(
name = "odbcli",
version = get_version("odbcli"),
author = "Oliver Gjoneski",
author_email = "[email protected]",
description = "ODBC Client",
license = 'BSD-3',
long_description = long_description,
long_description_content_type = "text/markdown",
install_requires = install_requirements,
url = "https://github.com/pypa/odbc-cli",
scripts=[
'odbc-cli'
],
packages = setuptools.find_packages(),
include_package_data = True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
],
# As python prompt toolkit
python_requires = '>=3.6.1',
)