corrade-nucleus-nucleons – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
2 | office | 1 | #!/usr/bin/env python |
2 | |||
3 | import os,sys |
||
4 | |||
5 | from setuptools import setup |
||
6 | from jsbeautifier.__version__ import __version__ |
||
7 | |||
8 | from setuptools.command.test import test as TestCommand |
||
9 | |||
10 | DIR='jsbeautifier/tests/' |
||
11 | class PyTest(TestCommand): |
||
12 | user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] |
||
13 | |||
14 | def initialize_options(self): |
||
15 | TestCommand.initialize_options(self) |
||
16 | self.pytest_args = ['--assert=plain'] +[DIR+x for x in os.listdir(DIR) if x.endswith('.py') and x[0] not in '._'] |
||
17 | |||
18 | def run_tests(self): |
||
19 | #import here, cause outside the eggs aren't loaded |
||
20 | import pytest |
||
21 | errno = pytest.main(self.pytest_args) |
||
22 | sys.exit(errno) |
||
23 | |||
24 | setup(name='jsbeautifier', |
||
25 | version=__version__, |
||
26 | description='JavaScript unobfuscator and beautifier.', |
||
27 | long_description=('Beautify, unpack or deobfuscate JavaScript. ' |
||
28 | 'Handles popular online obfuscators.'), |
||
29 | author='Einar Lielmanis, Stefano Sanfilippo et al.', |
||
30 | author_email='einar@jsbeautifier.org', |
||
31 | url='http://jsbeautifier.org', |
||
32 | scripts=['js-beautify'], |
||
33 | packages=['jsbeautifier', 'jsbeautifier.tests', 'jsbeautifier.tests.generated', |
||
34 | 'jsbeautifier.unpackers', 'jsbeautifier.unpackers.tests'], |
||
35 | install_requires=["six>=1.6.1", "editorconfig>=0.12.0"], |
||
36 | license='MIT', |
||
37 | test_suite='pytest.collector', |
||
38 | cmdclass = {'test': PyTest}, |
||
39 | |||
40 | ) |