-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
81 lines (68 loc) · 2.09 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
"""Pip installation script for `matflow`."""
import os
import re
from setuptools import find_packages, setup
def get_version():
ver_file = 'matflow/_version.py'
with open(ver_file) as handle:
ver_str_line = handle.read()
ver_pattern = r'^__version__ = [\'"]([^\'"]*)[\'"]'
match = re.search(ver_pattern, ver_str_line, re.M)
if match:
ver_str = match.group(1)
else:
msg = 'Unable to find version string in "{}"'.format(ver_file)
raise RuntimeError(msg)
return ver_str
def get_long_description():
readme_file = 'README.md'
with open(readme_file, encoding='utf-8') as handle:
contents = handle.read()
return contents
package_data = [
os.path.join(*os.path.join(root, f).split(os.path.sep)[1:])
for root, dirs, files in os.walk(os.path.join('matflow', 'data'))
for f in files
]
setup(
name='matflow',
version=get_version(),
description=('Computational workflow management for materials science.'),
long_description=get_long_description(),
long_description_content_type='text/markdown',
author='Adam J. Plowman',
author_email='[email protected]',
packages=find_packages(),
package_data={
'matflow': package_data,
},
install_requires=[
'matflow-demo-extension',
'hpcflow>=0.1.16',
'click>7.0',
'hickle==4.0.4',
'h5py==2.10.0',
'numpy<1.24',
'sqlalchemy<2',
'ruamel.yaml==0.16.10',
'pyperclip',
'black',
'autopep8',
],
project_urls={
'Github': 'https://github.com/Lightform-group/matflow',
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Operating System :: OS Independent',
],
entry_points="""
[console_scripts]
matflow=matflow.cli:cli
"""
)