-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsetup.py
executable file
·73 lines (70 loc) · 3.13 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
#!/usr/bin/env python
# Copyright (C) 2016 Stephan Kuschel
#
# This file is part of postpic.
#
# postpic is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# postpic is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with postpic. If not, see <http://www.gnu.org/licenses/>.
#
from setuptools import setup, find_packages
from Cython.Build import cythonize
import numpy
import os
import versioneer
setup(name='postpic',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
include_package_data = True,
author='Stephan Kuschel',
author_email='stephan.kuschel@gmail.de',
description='The open source particle-in-cell post processor.',
url='https://github.com/skuschel/postpic',
packages=find_packages(include=['postpic*']),
ext_modules = cythonize("postpic/particles/_particlestogrid.pyx"),
include_dirs = [numpy.get_include()],
license='GPLv3+',
setup_requires=['cython>=0.18', 'numpy>=1.8'],
install_requires=['matplotlib>=1.3',
# ndarray.tobytes was introduced in np 1.9 and workaround in vtk routines
# does not work for python 2
'numpy>=1.8', 'numpy>=1.9;python_version<"3.0"',
'scipy>=1.6', 'future', 'urllib3', 'numexpr',
'cython>=0.18', 'functools32;python_version<"3.0"',
'packaging'],
extras_require = {
'h5 reader for openPMD support': ['h5py'],
'sdf support for EPOCH reader': ['sdf'],
'PyPNG read png files': ['pypng'],
'Pillow to read other image files': ['pillow'],
'Phase unwrapping routines': ['scikit-image']},
keywords = ['PIC', 'particle-in-cell', 'plasma', 'physics', 'plasma physics',
'laser', 'laser plasma', 'particle acceleration'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Operating System :: Unix',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)']
)