forked from quantopian/pgcontents
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
60 lines (50 loc) · 1.76 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
from __future__ import print_function
from setuptools import setup, find_packages
from os.path import join, dirname, abspath
import sys
long_description = ''
if 'upload' in sys.argv or '--long-description' in sys.argv:
with open('README.rst') as f:
long_description = f.read()
def read_requirements(basename):
reqs_file = join(dirname(abspath(__file__)), basename)
with open(reqs_file) as f:
return [req.strip() for req in f.readlines()]
def main():
reqs = read_requirements('requirements.txt')
test_reqs = read_requirements('requirements_test.txt')
setup(
name='pgcontents',
version='0.2.1',
description="A Postgres-backed ContentsManager for IPython/Jupyter.",
long_description=long_description,
author="Scott Sanderson",
author_email="ssanderson@quantopian.com",
packages=find_packages(include='pgcontents.*'),
license='Apache 2.0',
include_package_data=True,
zip_safe=False,
url="https://github.com/quantopian/pgcontents",
classifiers=[
'Development Status :: 3 - Alpha',
'Framework :: IPython',
'Framework :: Jupyter',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python',
'Topic :: Database',
],
install_requires=reqs,
extras_require={
'test': test_reqs,
'ipy4': 'notebook>=4.0',
},
scripts=[
'bin/pgcontents',
],
)
if __name__ == '__main__':
main()