-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
54 lines (49 loc) · 1.56 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
import os
import re
import sys
if sys.version_info < (2, 6):
raise Exception("SQLAlchemy TDS requires Python 2.6 or higher.")
from setuptools import setup
with open(
os.path.join(os.path.dirname(__file__), "sqlalchemy_pytds", "__init__.py")
) as fp:
rem = re.compile(r".*__version__ = \"(.*?)\"", re.S).match(fp.read())
assert rem is not None
VERSION = rem.group(1)
readme = os.path.join(os.path.dirname(__file__), "README.rst")
requires = [
"python-tds",
"SQLAlchemy >= 2.0",
]
setup(
name="sqlalchemy_pytds",
version=VERSION,
description="A Microsoft SQL Server TDS connector for SQLAlchemy.",
long_description=open(readme).read(),
long_description_content_type="text/x-rst",
author="Grzegorz Makarewicz",
author_email="[email protected]",
url="https://github.com/m32/sqlalchemy-tds",
license="MIT",
platforms=["any"],
packages=["sqlalchemy_pytds"],
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Topic :: Database :: Front-Ends",
],
keywords="SQLAlchemy Microsoft SQL Server",
install_requires=requires,
include_package_data=True,
tests_require=["nose >= 0.11"],
test_suite="nose.collector",
entry_points={
"sqlalchemy.dialects": [
"mssql.pytds = sqlalchemy_pytds.dialect:MSDialect_pytds",
]
},
)