-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
108 lines (91 loc) · 2.68 KB
/
setup.py
File metadata and controls
108 lines (91 loc) · 2.68 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#!/usr/bin/env python
import glob
import io
import os
import os.path
import platform
import re
import setuptools
import setuptools.dist
import sys
install_requires = [
'ctds>=1.6',
'SQLAlchemy',
]
setup_requires = [
'pytest-runner'
]
tests_require = [
'pytest'
]
def read(*names, **kwargs):
with io.open(
os.path.join(os.path.dirname(__file__), *names),
encoding=kwargs.get('encoding', 'utf-8')
) as fp:
return fp.read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(
r'''^__version__ = ['"]([^'"]*)['"]''',
version_file,
re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setuptools.setup(
name = 'sqlalchemy_ctds',
version = find_version(os.path.dirname(__file__), 'src', 'sqlalchemy_ctds', '__init__.py'),
author = 'Joshua Lang',
author_email = 'joshual@zillowgroup.com',
description = 'SQLAlchemy connector for ctds',
long_description = read('README.rst'),
keywords = [
'ctds',
'mssql',
'SQL Server',
'SQLAlchemy',
],
license = 'MIT',
url = 'https://github.com/joshuahlang/sqlalchemy-ctds',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Programming Language :: C',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: SQL',
'Topic :: Database',
'Topic :: Database :: Front-Ends',
],
python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*',
packages = setuptools.find_packages('src'),
package_data = {
'sqlalchemy_ctds': []
},
package_dir = {'': 'src'},
entry_points = {
'sqlalchemy.dialects': [
'mssql.ctds = sqlalchemy_ctds.ctds:MSDialect_ctds',
]
},
install_requires = install_requires,
setup_requires = setup_requires,
tests_require = tests_require,
extras_require = {
'tests': tests_require,
},
# Prevent easy_install from warning about use of __file__.
zip_safe = False
)