-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
62 lines (56 loc) · 1.87 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
# -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from os.path import abspath, dirname, join
import setuptools
def get_version():
version = {}
with open("prince_cr/version.py") as fp:
exec (fp.read(), version)
return version['__version__']
__version__ = get_version()
this_directory = abspath(dirname(__file__))
if sys.version_info.major == 3:
with open(join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
else:
with open(join(this_directory, 'README.md')) as f:
long_description = f.read()
skip_marker = "# PriNCe"
long_description = long_description[long_description.index(skip_marker) :].lstrip()
setup(
name='prince_cr',
version=__version__,
author='Jonas Heinze and Anatoli Fedynitch',
author_email='[email protected]',
description='Cosmic ray PRopagation Including Nuclear Cascade equations',
long_description=long_description,
long_description_content_type='text/markdown',
license='BSD 3-Clause License',
url='https://github.com/joheinze/PriNCe',
packages=[
'prince_cr', 'prince_cr.cross_sections',
'prince_cr.solvers', 'prince_cr.tests'
],
install_requires=[
'scipy',
'numpy',
'tqdm',
'h5py',
'requests'
],
tests_require=['pytest','matplotlib'],
py_modules=["six"],
package_data={'prince_cr': ['data/particle_data.ppo']},
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering :: Physics',
'Intended Audience :: Science/Research',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License'
]
)