Skip to content
Newer
Older
100644 65 lines (55 sloc) 1.83 KB
bfe1ca5 @andymccurdy added support for setuptools, finally. props to Paul Hubbard for auth…
authored
1 #!/usr/bin/env python
3d98253 @andymccurdy long description is now the contents of the readme file
authored
2 import os
e1233ff pytest framework and server commands
andy authored
3 import sys
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
4
f8d44ef @andymccurdy updating setuptools to look for redis-py-VERSION.tar.gz
authored
5 from redis import __version__
bfe1ca5 @andymccurdy added support for setuptools, finally. props to Paul Hubbard for auth…
authored
6
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
7 try:
8 from setuptools import setup
e1233ff pytest framework and server commands
andy authored
9 from setuptools.command.test import test as TestCommand
10
11 class PyTest(TestCommand):
12 def finalize_options(self):
13 TestCommand.finalize_options(self)
14 self.test_args = []
15 self.test_suite = True
16
17 def run_tests(self):
c0ca9ad @andymccurdy pep8
authored
18 # import here, because outside the eggs aren't loaded
e1233ff pytest framework and server commands
andy authored
19 import pytest
20 errno = pytest.main(self.test_args)
21 sys.exit(errno)
22
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
23 except ImportError:
e1233ff pytest framework and server commands
andy authored
24
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
25 from distutils.core import setup
92e3618 @paulkeene Fix pep8 errors
paulkeene authored
26
85b8561 @andymccurdy satisfy pep8 updates
authored
27 def PyTest(x):
28 x
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
29
d93a7fa use README.rst for long description
andy authored
30 f = open(os.path.join(os.path.dirname(__file__), 'README.rst'))
3d98253 @andymccurdy long description is now the contents of the readme file
authored
31 long_description = f.read()
32 f.close()
33
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
34 setup(
35 name='redis',
36 version=__version__,
37 description='Python client for Redis key-value store',
38 long_description=long_description,
39 url='http://github.com/andymccurdy/redis-py',
40 author='Andy McCurdy',
41 author_email='sedrik@gmail.com',
42 maintainer='Andy McCurdy',
43 maintainer_email='sedrik@gmail.com',
44 keywords=['Redis', 'key-value store'],
45 license='MIT',
46 packages=['redis'],
6ae2cbb @andymccurdy require pytest>=2.5 when running tests from setup.py
authored
47 tests_require=['pytest>=2.5.0'],
e1233ff pytest framework and server commands
andy authored
48 cmdclass={'test': PyTest},
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
49 classifiers=[
f8d44ef @andymccurdy updating setuptools to look for redis-py-VERSION.tar.gz
authored
50 'Development Status :: 5 - Production/Stable',
bfe1ca5 @andymccurdy added support for setuptools, finally. props to Paul Hubbard for auth…
authored
51 'Environment :: Console',
52 'Intended Audience :: Developers',
53 'License :: OSI Approved :: MIT License',
54 'Operating System :: OS Independent',
309a2a9 Added classifiers to indicate supported Python versions
Alex Grönholm authored
55 'Programming Language :: Python',
56 'Programming Language :: Python :: 2.6',
57 'Programming Language :: Python :: 2.7',
58 'Programming Language :: Python :: 3',
59 'Programming Language :: Python :: 3.2',
60 'Programming Language :: Python :: 3.3',
3aecfe3 @andymccurdy test against Python 3.4 with tox. note 3.4.0 has issues, use 3.4.1 in…
authored
61 'Programming Language :: Python :: 3.4',
882937e @andymccurdy add the python 3.5 classifier
authored
62 'Programming Language :: Python :: 3.5',
12f2e4f @pabelanger Format code per pep8 guidelines
pabelanger authored
63 ]
826364f Cleaned up code for PEP 8 compliance
Alex Grönholm authored
64 )
Something went wrong with that request. Please try again.