This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
68 lines (62 loc) · 1.95 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
68
import io
import re
from codecs import open
from os import path
from setuptools import setup, find_packages
with io.open("paperspace/version.py", "rt", encoding="utf8") as f:
version = re.search(r"version = \"(.*?)\"", f.read()).group(1)
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError, OSError):
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='paperspace',
version=version,
description='Paperspace Python',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/paperspace/paperspace-python',
author='Paperspace Co.',
author_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'License :: OSI Approved :: ISC License (ISCL)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='paperspace api development library',
packages=find_packages(exclude=['contrib', 'docs', 'tests', 'old_tests']),
install_requires=[
'requests[security]',
'six',
'gradient-statsd',
'click',
'gradient-sdk',
'terminaltables',
'click-didyoumean',
'click-help-colors',
'click-completion',
'colorama',
'requests-toolbelt',
'progressbar2',
],
entry_points={'console_scripts': [
'paperspace-python = paperspace:main',
]},
extras_require={
"dev": [
'tox',
'pytest',
'mock',
],
},
)