forked from maroba/findiff
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
63 lines (53 loc) · 2.15 KB
/
Copy pathsetup.py
File metadata and controls
63 lines (53 loc) · 2.15 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import exists, dirname, realpath
from setuptools import setup, find_packages
import sys
name = 'findiff'
sys.path.insert(0, realpath(dirname(__file__))+"/"+name)
try:
from _version import version
except BaseException:
version = "unknown"
setup(
name=name,
version=version,
description='A Python package for finite difference derivatives in any number of dimensions.',
long_description="""A Python package for finite difference derivatives in any number of dimensions.
Features:
* Differentiate arrays of any number of dimensions along any axis
* Partial derivatives of any desired order
* Accuracy order can be specified
* Accurate treatment of grid boundary
* Includes standard operators from vector calculus like gradient, divergence and curl
* Can handle uniform and non-uniform grids
* Can handle arbitrary linear combinations of derivatives with constant and variable coefficients
* Fully vectorized for speed
* Calculate raw finite difference coefficients for any order and accuracy for uniform and non-uniform grids
""",
license='MIT',
url='https://github.com/maroba/findiff',
author='Matthias Baer',
author_email='mrbaer@t-online.de',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords=['finite-differences', 'numerical-derivatives', 'scientific-computing'],
packages=find_packages(),
package_dir={name: name},
include_package_data=True,
install_requires=['numpy', 'scipy', 'sympy'],
setup_requires=["pytest-runner"],
python_requires=">=3.6",
tests_require=["pytest"],
platforms=['ALL'],
)