-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
64 lines (58 loc) · 2.29 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
import re
from os.path import join
from distutils.core import setup
from setuptools import find_packages
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
def get_version():
VERSIONFILE = join('statmechcrack', '__init__.py')
with open(VERSIONFILE, 'rt') as f:
lines = f.readlines()
vgx = '^__version__ = \"[0-9+.0-9+.0-9+]*[a-zA-Z0-9]*\"'
for line in lines:
mo = re.search(vgx, line, re.M)
if mo:
return mo.group().split('"')[1]
raise RuntimeError('Unable to find version in %s.' % (VERSIONFILE,))
setup(
name='statmechcrack',
version=get_version(),
package_dir={'statmechcrack': 'statmechcrack'},
packages=find_packages(),
description='Statistical mechanical models for crack growth.',
long_description=read("README.rst"),
author='Michael R. Buche, Scott J. Grutzik',
author_email='[email protected], [email protected]',
url='https://github.com/sandialabs/statMechCrack',
license='BSD-3-Clause',
keywords=['fracture mechanics',
'statistical mechanics',
'thermodynamics'],
install_requires=['matplotlib', 'numpy', 'scipy'],
extras_require={
'docs': ['docutils>=0.14,<0.21', 'ipykernel', 'ipython',
'jinja2>=3.0', 'nbsphinx', 'pycodestyle',
'sphinx', 'sphinx-copybutton',
'sphinx-rtd-theme', 'sphinxcontrib-bibtex'],
'testing': ['pycodestyle', 'pylint', 'pytest', 'pytest-cov'],
'all': ['docutils>=0.14,<0.21', 'ipykernel', 'ipython', 'jinja2>=3.0',
'nbsphinx', 'pycodestyle', 'pylint', 'pytest', 'pytest-cov',
'sphinx', 'sphinx-copybutton',
'sphinx-rtd-theme', 'sphinxcontrib-bibtex']
},
classifiers=[
'License :: OSI Approved :: BSD License',
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Programming Language :: Python'
],
project_urls={
'Anaconda': 'https://anaconda.org/mrbuche/statmechcrack',
'Documentation': 'https://statmechcrack.readthedocs.io/en/latest',
'GitHub': 'https://github.com/sandialabs/statmechcrack',
'Issues': 'https://github.com/sandialabs/statmechcrack/issues',
},
)