This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
61 lines (49 loc) · 1.63 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import pip
from squishy import __version__
with open('README.rst') as fr:
with open('CHANGELOG.rst') as fc:
long_description = '{}\n\n{}'.format(fr.read(), fc.read())
ver = sys.version_info[:2]
if (ver < (2, 7)) or (ver[0] == 3 and ver < (3, 3)):
raise RuntimeError('unsupported Python version')
extras_require = {'gevent': ['gevent>=1.1.0']}
if ver[0] == 2:
extras_require['futures'] = ['futures>=3.0.5']
requirements = pip.req.parse_requirements(
'requirements.txt', session=pip.download.PipSession()
)
install_requires = [str(r.req) for r in requirements]
setup(
name='squishy',
version=__version__,
description='A simple Amazon SQS consumer library.',
long_description=long_description,
author='Travis Mehlinger',
author_email='[email protected]',
url='https://github.com/tmehlinger/squishy',
packages=find_packages(),
entry_points={
'console_scripts': [
'squishy = squishy.cli:main',
],
},
install_requires=install_requires,
extras_require=extras_require,
license='BSD',
keywords='squishy',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
zip_safe=False,
)