-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
74 lines (61 loc) · 1.85 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
from codecs import open
from os import path
import sys
#Note: this file is a work in progress.
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'noqud', '_version.py')) as version_file:
exec(version_file.read())
with open(path.join(here, 'README.md')) as readme_file:
readme = readme_file.read()
with open(path.join(here, 'CHANGELOG.md')) as changelog_file:
changelog = changelog_file.read()
desc = readme + '\n\n' + changelog
try:
import pypandoc
long_description = pypandoc.convert_text(desc, 'rst', format='md')
with open(path.join(here, 'README.rst'), 'w') as rst_readme:
rst_readme.write(long_description)
except (ImportError, OSError, IOError):
long_description = desc
install_requires = [
'numpy',
'numpy',
'pandas',
'matplotlib',
'numba',
]
tests_require = [
'pytest',
'pytest-cov',
]
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
setup_requires = ['pytest-runner'] if needs_pytest else []
setup(
name='noqud',
version=__version__,
description='Step Characteristic and QD Nodal Solver for neutron transport',
long_description=long_description,
author='Aaron J Reynolds',
author_email='reynolaa@oregonstate.edu',
#url='http://physics.codes',
classifiers=[
'Intended Audience :: Nuclear Engineering',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
],
license='BSD-3-Clause',
install_requires=install_requires,
tests_require=tests_require,
python_requires='2.7',
setup_requires=setup_requires,
zip_safe=False,
packages=find_packages()
include_package_data=True,
)
if __name__ == "__main__":
setup()