This repository has been archived by the owner on Apr 24, 2019. It is now read-only.
forked from smartsheet-platform/smartsheet-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
81 lines (74 loc) · 2.5 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
69
70
71
72
73
74
75
76
77
78
79
80
81
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
NAME = 'smartsheet-python-sdk'
REQUIRES = [
'requests',
'requests-toolbelt',
'six >= 1.9',
'certifi',
'python-dateutil'
]
# test packages:
# https://github.com/coagulant/coveralls-python
# https://github.com/pytest-dev/pytest
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name=NAME,
description='Library that uses Python to connect to Smartsheet services (using API 2.0).',
author='Smartsheet',
author_email='api@smartsheet.com',
url='http://smartsheet-platform.github.io/api-docs/',
license='Apache-2.0',
keywords=['Smartsheet', 'Collaboration', 'Project Management', 'Excel', 'spreadsheet'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Office/Business :: Financial :: Spreadsheet',
],
use_scm_version={
'write_to': 'smartsheet/version.py'
},
setup_requires=['setuptools_scm'],
install_requires=REQUIRES,
packages=find_packages(),
include_package_data=True,
long_description=open('README.rst').read(),
extras_require={
'test': ['coverage', 'coveralls', 'pytest'],
'develop': [
'coverage',
'coveralls[yaml]',
'pytest',
'pytest-instafail'
]
},
tests_require=['pytest'],
cmdclass={
'test': PyTest
}
)