-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
64 lines (53 loc) · 1.85 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
64
# encoding: utf-8
import sys, os
from setuptools import setup, find_packages, Command
from setuptools.command.test import test as TestCommand
version = '0.0.1'
class StressTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self)
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
os.system('rm -rf test')
errno = os.system('python mrfh/tests/stresstest.py')
sys.exit(errno)
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='mrfh',
version=version,
description="Multiprocess Rotating File Handler",
classifiers=[
"Development Status :: 4 - Beta",
'Environment :: Console',
'Natural Language :: English',
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
"Intended Audience :: Developers",
],
keywords='multi process rotating file handler concurrent multiprocess',
author='Dustin Ingram',
author_email='github@dustingram.com',
url='http://github.com/di/mrfh',
license='MIT',
long_description=readme(),
packages=find_packages(exclude=['examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[],
cmdclass={'test': StressTest},
)