forked from bninja/pilo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (53 loc) · 1.61 KB
/
setup.py
File metadata and controls
60 lines (53 loc) · 1.61 KB
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
import re
import setuptools
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
pytest.main(self.test_args)
extras_require = {
'tests': [
'pytest >=2.5.2,<3',
'pytest-cov >=1.7,<2',
'mock >=1.0,<2.0',
'unittest2 >=0.5.1,<0.6',
'iso8601 >=0.1,<0.2',
],
}
packages = setuptools.find_packages('.', exclude=('tests', 'tests.*'))
setuptools.setup(
name='pilo',
version=(
re
.compile(r".*__version__ = '(.*?)'", re.S)
.match(open('pilo/__init__.py').read())
.group(1)
),
url='https://github.com/bninja/pilo/',
license=open('LICENSE').read(),
author='egon',
author_email='egon@gb.com',
description='Yet another form parser.',
long_description=open('README.rst').read(),
packages=packages,
package_data={'': ['LICENSE']},
include_package_data=True,
extras_require=extras_require,
tests_require=extras_require['tests'],
install_requires=[],
cmdclass={'test': PyTest},
classifiers=[
'Intended Audience :: Developers',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: ISC License (ISCL)',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
],
)