-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
98 lines (89 loc) · 3.02 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
from setuptools import find_packages
from setuptools import setup
desc = 'Microstructure modeling, mesh generation, analysis, and visualization.'
def read(*fname):
return open(join(dirname(__file__), *fname)).read()
def find_version(*fname):
ver_str = ''
for line in read(*fname).split('\n'):
if line.startswith('__version__') and '=' in line:
ver_str = line.split('=')[-1].strip().strip('\"').strip('\'')
break
return ver_str
setup(
name='microstructpy',
version=find_version('src', 'microstructpy', '__init__.py'),
license='MIT License',
description=desc,
long_description=read('README.rst'),
long_description_content_type=' text/x-rst',
author='Kenneth (Kip) Hart',
author_email='[email protected]',
url='https://github.com/kip-hart/MicroStructPy',
project_urls={
'Documentation': 'https://docs.microstructpy.org',
},
packages=find_packages('src'),
package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
package_data={'': ['src/microstructpy/examples/*.{csv,py,xml}',
'src/microstructpy/examples/aluminum_micro.png']},
include_package_data=True,
zip_safe=False,
classifiers=[
# complete classifier list:
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics'
],
keywords=[
'microstructure',
'micromechanics',
'finite element',
'FEM', 'FEA',
'mesh',
'polycrystal',
'tessellation',
'Laguerre tessellation',
'multi-sphere'
],
install_requires=[
'aabbtree>=2.5.0',
'pybind11', # must come before meshpy for successful install
'lsq-ellipse',
'matplotlib>=3.4.0',
'meshpy>=2018.2.1',
'numpy>=1.22.2',
'pygmsh>=7.0.2',
'pyquaternion',
'pyvoro-mmalahe>=1.3.4', # install issue with pyvoro
'scipy',
'xmltodict'
],
entry_points={
'console_scripts': [
'microstructpy = microstructpy.cli:main',
]
},
)