|
15 | 15 | # limitations under the License. |
16 | 16 |
|
17 | 17 | import sys |
18 | | -from distutils.core import setup |
19 | | -from distutils.cmd import Command |
| 18 | +from setuptools import setup, find_packages |
20 | 19 |
|
21 | 20 | import histogrammar.version |
22 | 21 |
|
23 | | -class TestCommand(Command): |
24 | | - user_options = [] |
25 | | - def initialize_options(self): pass |
26 | | - def finalize_options(self): pass |
27 | | - def run(self): |
28 | | - import sys, subprocess |
29 | | - if sys.version_info[0] == 2 and sys.version_info[1] == 6: |
30 | | - args = ["-c", "import unittest; from test.testbasic import *; from test.testnumpy import *; from test.testrootcling import *; from test.testgpu import *; unittest.main()"] |
31 | | - else: |
32 | | - args = ["-m", "unittest", "-v", "test.testbasic", "test.testnumpy", "test.testrootcling", "test.testgpu"] |
33 | | - raise SystemExit(subprocess.call([sys.executable] + args)) |
34 | | - |
35 | | -setup(name="Histogrammar", |
36 | | - version=histogrammar.version.__version__, |
37 | | - scripts=["scripts/hgwatch"], |
38 | | - description="Composable histogram primitives for distributed data reduction.", |
39 | | - author="Jim Pivarski (DIANA-HEP)", |
40 | | - author_email="pivarski@fnal.gov", |
41 | | - url="https://github.com/diana-hep/histogrammar", |
42 | | - cmdclass={"test": TestCommand}, |
43 | | - packages=["histogrammar", "histogrammar.primitives", "histogrammar.plot", "histogrammar.pycparser", "histogrammar.pycparser.ply"], |
| 22 | +setup(name = "Histogrammar", |
| 23 | + version = histogrammar.version.__version__, |
| 24 | + packages = find_packages(), |
| 25 | + scripts = ["scripts/hgwatch"], |
| 26 | + description = "Composable histogram primitives for distributed data reduction.", |
| 27 | + author = "Jim Pivarski (DIANA-HEP)", |
| 28 | + author_email = "pivarski@fnal.gov", |
| 29 | + url = "http://histogrammar.org", |
| 30 | + license = "Apache Software License v2", |
| 31 | + test_suite = "tests", |
| 32 | + install_requires = [], |
| 33 | + tests_require = [], |
| 34 | + classifiers = ["Development Status :: 5 - Production/Stable", |
| 35 | + "Environment :: Console", |
| 36 | + "Intended Audience :: Science/Research", |
| 37 | + "License :: OSI Approved :: Apache Software License", |
| 38 | + "Topic :: Scientific/Engineering :: Information Analysis", |
| 39 | + "Topic :: Scientific/Engineering :: Mathematics", |
| 40 | + "Topic :: Scientific/Engineering :: Physics", |
| 41 | + ], |
44 | 42 | ) |
0 commit comments