forked from ml-evs/matador
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (54 loc) · 2.36 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
# coding: utf-8
# Distributed under the terms of the MIT License.
import os
from setuptools import setup, find_packages
from glob import glob
from matador import __version__
with open('requirements/requirements.txt', 'r') as f:
requirements = [line.strip() for line in f.readlines()]
with open('requirements/pip_requirements.txt', 'r') as f:
requirements += [line.strip() for line in f.readlines()]
extra_requirements = dict(all=[])
req_files = glob('requirements/*.txt')
for _file in req_files:
if _file not in ['requirements/requirements.txt', 'requirements/pip_requirements.txt']:
with open(_file, 'r') as f:
subreq = _file.split('/')[-1].split('_')[0]
extra_requirements[subreq] = [line.strip() for line in f.readlines()]
extra_requirements['all'] += extra_requirements[subreq]
with open("README.rst", "r") as f:
long_description = f.read()
setup(name='matador-db',
version=__version__,
description='MATerial and Atomic Databases Of Refined structures.',
long_description=long_description,
url='https://github.com/ml-evs/matador',
author='Matthew Evans',
author_email='[email protected]',
maintainer='Matthew Evans',
maintainer_email='[email protected]',
license='MIT',
packages=find_packages(),
python_requires='>=3.6',
install_requires=requirements,
scripts=[script for script in glob('scripts/*') if os.path.isfile(script)],
test_suite='tests',
include_package_data=True,
setup_requires=["setuptools>=42"],
extras_require=extra_requirements,
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics"
],
entry_points={'console_scripts': ['matador = matador.cli.cli:main',
'dispersion = matador.cli.dispersion:main',
'run3 = matador.cli.run3:main']},
zip_safe=False)