forked from Niemeyer-Research-Group/pyMARS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (68 loc) · 2.16 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
"""Setup script to build module.
"""
#!/usr/bin/env python
from setuptools import setup
from codecs import open
from os import path
import sys
here = path.abspath(path.dirname(__file__))
version = {}
with open(path.join(here, 'pymars', '_version.py')) as version_file:
exec(version_file.read(), version)
__version__ = version['__version__']
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()
with open(path.join(here, 'CITATION.md')) as citation_file:
citation = citation_file.read()
long_description = readme + '\n\n' + changelog + '\n\n' + citation
install_requires = [
'numpy<2.0.0',
'cantera>=3.0.1',
'networkx',
'tables',
'pyyaml>=4.2b1'
]
tests_require = [
'pytest',
'pytest-cov',
]
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
setup_requires = ['pytest-runner'] if needs_pytest else []
setup(
name='pymars',
version=__version__,
description=(
'Python-based chemical kinetic Model Automatic '
'Reduction Software (pyMARS)'
),
long_description=long_description,
url='https://github.com/Niemeyer-Research-Group/pyMARS',
author='Phillip Mestas, Parker Clayton, Kyle Niemeyer',
author_email='kyle.niemeyer@gmail.com',
license='MIT',
keywords=['chemical kinetics'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python :: 3',
],
packages=['pymars', 'pymars.tests'],
package_dir={'pymars': 'pymars'},
include_package_data=True,
package_data={'pymars': [
'tests/assets/*.cti', 'tests/assets/*.yaml', 'tests/assets/*.txt',
'tests/assets/*.dat', 'tests/assets/*.inp',
]},
entry_points={
'console_scripts': ['pymars=pymars.__main__:main']
},
install_requires=install_requires,
tests_require=tests_require,
setup_requires=setup_requires,
python_requires='>=3.10',
zip_safe=False,
)