forked from anaconda/anaconda-project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
66 lines (57 loc) · 2.33 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
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2016, Anaconda, Inc. All rights reserved.
#
# Licensed under the terms of the BSD 3-Clause License.
# The full license is in the file LICENSE.txt, distributed with this software.
# -----------------------------------------------------------------------------
"""Setup script."""
# Standard library imports
import ast
import io
import os
# Third party imports
from setuptools import find_packages, setup
HERE = os.path.abspath(os.path.dirname(__file__))
REQUIREMENTS = ['anaconda-client', 'requests', 'ruamel_yaml', 'tornado >= 4.2']
def get_version(module='anaconda_project'):
"""Get version."""
version_path = os.path.join(HERE, module, 'version.py')
with io.open(version_path, 'r', encoding='utf-8') as f:
data = f.read()
lines = data.split('\n')
for line in lines:
if line.startswith('VERSION_INFO'):
version_tuple = ast.literal_eval(line.split('=')[-1].strip())
version = '.'.join(map(str, version_tuple))
break
return version
def get_description():
"""Get long description."""
with io.open(os.path.join(HERE, 'README.md'), 'r', encoding='utf-8') as f:
data = f.read()
return data
setup(name='anaconda-project',
version=get_version(),
keywords=["conda anaconda project reproducible data science"],
url='http://github.com/Anaconda-Server/anaconda-project',
license='BSD 3-Clause',
author="Anaconda, Inc",
author_email='info@anaconda.com',
maintainer='Anaconda, Inc',
maintainer_email='info@anaconda.com',
description='Tool for encapsulating, running, and reproducing data science projects',
long_description=get_description(),
zip_safe=False,
install_requires=REQUIREMENTS,
entry_points={
'console_scripts': [
'anaconda-project = anaconda_project.cli:main',
]
},
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
classifiers=[
'Development Status :: 5 - Production/Stable', 'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6'
])