-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
86 lines (77 loc) · 2.5 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import os, sys
# Figure out the version number and write it to
# src/qinfer/version.py
# so that we don't have to import qinfer before it's
# installed. This technique seems to be popular amongst
# scientific libraries for ensuring that PEP-440 is adhered
# to, and that version numbers in __init__.py match those in
# setup.py.
MAJOR = 1
MINOR = 0
PRE = None
VERSION = "{major}.{minor}{pre}".format(
major=MAJOR, minor=MINOR, pre=PRE if PRE is not None else ''
)
VERSION_TARGET = 'src/qinfer/version.py'
def write_version(filename=VERSION_TARGET):
contents = """\
# This file is automatically generated by setup.py.
# Do not modify.
version = "{version}"
""".format(version=VERSION)
with open(filename, 'w') as version_file:
version_file.write(contents)
if os.path.exists(VERSION_TARGET):
os.remove(VERSION_TARGET)
write_version()
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
try:
with open('README.rst', 'r') as readme:
long_description = readme.read()
except:
long_description = ''
setup(
name='QInfer',
version=VERSION,
url='https://github.com/QInfer/python-qinfer',
download_url='https://github.com/QInfer/python-qinfer/archive/v1.0b1.tar.gz',
author='Chris Granade and Chris Ferrie',
author_email='[email protected]',
maintainer='Chris Granade and Chris Ferrie',
maintainer_email='[email protected]',
package_dir={'': 'src'},
packages=[
'qinfer',
'qinfer._lib',
'qinfer.tomography',
'qinfer.tests'
],
keywords=['quantum', 'Bayesian', 'estimation'],
description=
'Bayesian particle filtering for parameter estimation in quantum '
'information applications.',
long_description=long_description,
license='https://opensource.org/licenses/BSD-3-Clause',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering :: Physics',
],
platforms=['any'],
install_requires=[
'numpy',
'scipy',
'future>=0.15'
]
)