-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
103 lines (89 loc) · 2.72 KB
/
setup.py
File metadata and controls
103 lines (89 loc) · 2.72 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
#!/usr/bin/env python
# -*- coding: us-ascii -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
import os
import sys
from setuptools import setup, find_packages
if len(sys.argv) <= 1:
print(
"""
Suggested setup.py parameters:
* build
* install
* sdist --formats=zip
* sdist # NOTE requires tar/gzip commands
python -m pip install -e .
PyPi:
python -m pip install setuptools twine
#twine upload dist/*
python setup.py sdist ; twine upload dist/* --verbose
"""
)
readme_filename = "README.md"
if os.path.exists(readme_filename):
f = open(readme_filename)
long_description = f.read()
f.close()
else:
long_description = None
# pick up version number, __version__
exec(
open(
os.path.join(
os.path.abspath(os.path.dirname(__file__)),
"lib",
"sqlalchemy_ingres",
"_version.py",
)
).read()
)
print("Current version is: %s\n" % __version__)
setup(
name="sqlalchemy-ingres", # note hypen, not underscore
version=__version__,
author="Chris Clark",
author_email="Chris.Clark@actian.com",
url="https://github.com/ActianCorp/sqlalchemy-ingres",
description="SQLAlchemy dialect for Actian databases; Actian Data Platform (nee Avalanche), Actian X, Ingres, and Vector",
long_description=long_description,
long_description_content_type="text/markdown",
maintainer="Michael Habiger",
maintainer_email="michael.habiger@hcl-software.com",
license="Apache-2.0",
packages=find_packages(
"lib"
), # TODO review, remove and replace with static and py_modules
package_dir={"": "lib"},
classifiers=[ # See http://pypi.python.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Database",
"Programming Language :: SQL",
],
platforms="any", # or distutils.util.get_platform()
install_requires=["sqlalchemy"],
extras_require={
"pyodbc": [
"pyodbc",
],
"pypyodbc": [
"pypyodbc",
],
"all": [
"pypyodbc",
"pyodbc",
],
},
entry_points={
"sqlalchemy.dialects": [
"ingres = sqlalchemy_ingres:base.dialect", # note underscore, not hypen
"ingres.pyodbc = sqlalchemy_ingres.pyodbc:Ingres_pyodbc", # note underscore, not hypen
]
},
)