-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
59 lines (49 loc) · 1.86 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
#!/usr/bin/env python
from os import path
dir_setup = path.dirname(path.realpath(__file__))
requires = [];
from setuptools import setup, Command
modules = [
'quantpy.sympy'
, 'quantpy.sympy.executor'
, 'quantpy.sympy.executor.simulator'
, 'quantpy.ising'
]
tests = [
]
long_description = '''QuantPy is a Python library for quantum computing. It aims
to become basic library set of quantum computer system.'''
with open(path.join(dir_setup, 'quantpy', 'release.py')) as f:
# Defines __version__
exec(f.read())
def _requirements():
return [name.rstrip() for name in open(path.join(dir_setup, 'requirements.txt')).readlines()]
def _test_requirements():
return [name.rstrip() for name in open(path.join(dir_setup, 'test-requirements.txt')).readlines()]
if __name__ == '__main__':
setup(name='quantpy',
version=__version__,
description='Quantum Computer system in Python',
long_description=long_description,
author='QuantPy development team',
author_email='[email protected]',
license='BSD-3-Clause',
keywords="Math Physics",
url='http://quantpy.org',
packages=['quantpy'] + modules + tests,
ext_modules=[],
classifiers=[
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
python_requires=">=3.5",
install_requires=_requirements(),
tests_require=_test_requirements(),
setup_requires=['pytest-runner']
)