-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
57 lines (49 loc) · 1.42 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
import os
from setuptools import setup
def source_root():
"""Get the root of the source."""
return os.path.abspath(os.path.dirname(__file__))
def read_version():
"""Read the version from the resumable.version module."""
filename = os.path.join(source_root(), 'resumable/version.py')
with open(filename) as fp:
namespace = {}
exec(fp.read(), namespace) # pylint: disable=exec-used
return namespace['__version__']
def read_long_description():
"""Read the README file."""
filename = os.path.join(source_root(), 'README.rst')
with open(filename) as fp:
return fp.read()
setup(
name='resumable',
version=read_version(),
description='Python client for upload to a server supporting resumable.js',
long_description=read_long_description(),
url='https://github.com/acroz/resumable.py',
author='Andrew Crozier',
author_email='[email protected]',
license='MIT',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
packages=['resumable'],
setup_requires=[
'pytest-runner',
'wheel'
],
tests_require=[
'pytest',
'pytest-cov',
'mock',
'pytest-mock',
'six',
'flask'
],
install_requires=[
'requests',
'futures; python_version == "2.7"'
]
)