-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (40 loc) · 1.05 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
"""
Aragog
======
A collection of URL routers for Python.
"""
from setuptools import Command, setup
import aragog
class lint(Command):
"""
Run python linting commands: pep8 & pyflakes on source tree
"""
description = "Lint source code with python linters"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def pep8(self):
from pep8 import StyleGuide
sg = StyleGuide()
sg.input_dir('aragog')
sg.input_dir('test')
def run(self):
self.pep8()
print "> lint complete"
setup(
name="aragog",
description="A collection of python URL routers.",
url="https://github.com/bramwelt/aragog",
version=".".join(aragog.__version__),
author="Trevor Bramwell",
author_email="trevor@bramwell.net",
packages=['aragog', 'aragog.routers'],
license="Apache2",
install_requires=[],
long_description=open("README.rst").read(),
test_suite="test",
tests_require=["webtest"],
cmdclass={'lint': lint},
)