-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
64 lines (55 loc) · 1.78 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
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
import io
import os
import re
from functools import partial
from setuptools import setup, find_packages
get_path = partial(os.path.join, os.path.dirname(os.path.abspath(__file__)))
def get_version(path):
version = None
try:
version = \
re.search(r'__version__\s*=\s*[\'"]([\d.]+)[\'"]',
io.open(path, encoding='utf-8').read()).group(1)
except (IOError, AttributeError):
pass
return version
setup(name='splitfile',
author='Greg Banks',
author_email='[email protected]',
version=get_version(get_path('splitfile/_version.py')),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Utility',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='AWS S3 boto multipart upload split',
url='https://github.com/gregbanks/splitfile',
description='Treat a file as an ordered set of smaller files',
long_description=io.open(get_path('README.rst'), encoding='utf-8').read(),
packages=find_packages(exclude=('tests',)),
test_suite='nose2.collector.collector',
install_requires=[
'six'
],
extras_require={
'dev': [
'ipdb'
],
'test': [
'nose2',
'cov-core',
'tox',
'pylint',
'boto',
'boto3'
]
})