-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
67 lines (63 loc) · 1.6 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
# -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
import versioneer
IS_PY3 = sys.version_info > (3,)
setup_requires = (
'pytest-runner',
)
install_requires = (
'cnx-common >= 1.2.1',
'cnx-transforms',
'psycopg2',
'sqlalchemy',
'requests',
'rhaptos.cnxmlutils',
'venusian',
'zope.deprecation >= 3.5.0',
)
tests_require = [
'pyramid',
'pytest',
'pytest-mock',
]
extras_require = {
'test': tests_require,
}
description = "Connexions Database Library"
with open('README.rst', 'r') as readme, \
open('docs/changes.rst', 'r') as changes:
long_description = '\n'.join([
readme.read(),
changes.read(),
])
if not IS_PY3:
tests_require.append('mock==1.0.1')
setup(
name='cnx-db',
version=versioneer.get_version(),
author='Connexions team',
author_email='info@cnx.org',
url="https://github.com/connexions/cnx-db",
license='LGPL, See also LICENSE.txt',
description=description,
long_description=long_description,
setup_requires=setup_requires,
install_requires=install_requires,
tests_require=tests_require,
extras_require=extras_require,
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
package_data={
'cnxdb': ['*-sql/*.sql', '*-sql/**/*.sql', 'schema/*.json'],
},
cmdclass=versioneer.get_cmdclass(),
entry_points="""\
[console_scripts]
cnx-db = cnxdb.cli.main:main
[dbmigrator]
migrations_directory = cnxdb:migrations
[pytest11]
cnx-db = cnxdb.contrib.pytest
""",
)