-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (34 loc) · 1.15 KB
/
setup.py
File metadata and controls
37 lines (34 loc) · 1.15 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
import sys
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 = []
self.test_suite = True
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name = "pystogram",
version = "0.2.0",
description = "Display time-series histograms of Apache-style log files on the command-line",
author = "Clay McClure",
author_email = "clay@daemons.net",
url = "https://github.com/claymation/pystogram",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Logging',
],
packages = ['pystogram'],
scripts = ['bin/pystogram'],
tests_require = ['pytest'],
cmdclass = {'test': PyTest},
)