-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·62 lines (51 loc) · 1.56 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
#!/usr/bin/env python3
"""Setup for adcc-testdata"""
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [
("pytest-args=", "a", "Arguments to pass to pytest"),
]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = ""
def run_tests(self):
import shlex
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
#
# Main setup code
#
setup(
name='adcc-testdata',
description="Package to aid the generation of test data for adcc.",
#
url='https://github.com/adc-connect/adcc-testdata',
author='Michael F. Herbst',
author_email="[email protected]",
license="GPL v3",
#
packages=find_packages(exclude=["*.test*", "test"]),
version='0.1.2',
#
python_requires='>=3.5',
install_requires=[
'pyscf', 'numpy', 'h5py',
],
tests_require=["pytest"],
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Intended Audience :: Science/Research',
"Topic :: Scientific/Engineering :: Chemistry",
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Operating System :: POSIX :: Linux',
],
#
cmdclass={"pytest": PyTest},
)