/
setup.py
42 lines (38 loc) · 1.37 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
#!/usr/bin/env python
# -*- coding: "utf-8" -*-
from setuptools import setup, find_packages
#from distutils.core import setup
import sys
#from distutils.command.build_py import build_py as _build_py
#import unittest
#import sys
if "install" in sys.argv or "setup" in sys.argv or "sdist" in sys.argv:
from check_arg import test_valid
import unittest
loader= unittest.TestLoader()
suite=loader.loadTestsFromModule(test_valid)
runner=unittest.TextTestRunner(verbosity=2)
result=runner.run(suite)
if not result.wasSuccessful():
raise Exception( "Test Failed")
setup(
name='check_arg',
version='0.1.3',
author='Julien Tayon',
author_email='julien@tayon.net',
packages=['check_arg'],
url='http://github.org/jul/check_arg',
license="License :: OSI Approved :: BSD License",
description="wrapping decorator to enhance the documentation",
long_description=open("README.txt").read(),
requires=[ ],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Python Software Foundation License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
)