-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
63 lines (56 loc) · 1.82 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
# coding: utf-8
import sys
# It's odd, but setuptools provide by distribute package.
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = [
'--pep8',
'--clearcache',
'--doctest-glob=*.rst',
# '--doctest-modules',
]
self.test_suite = True
def run_tests(self):
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
readme_text = open('README.rst').read()
changelog_text = open('CHANGELOG.rst').read()
setup(
name='dehydrate',
version='0.3.7',
packages=['dehydrate'],
url='https://github.com/l0kix2/python-dehydrate',
license='MIT',
author='Kirill Sibirev',
author_email='[email protected]',
description='Small lib for representing python objects as a dicts',
long_description=readme_text + '\n\n' + changelog_text,
install_requires=['six'],
tests_require=[
'pytest>=2.4.2',
'pytest-pep8',
'pretend',
'mock',
'coverage',
'coveralls'
],
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Software Development :: Libraries',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: CPython',
]
)