-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
executable file
·60 lines (55 loc) · 2.01 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
#!/usr/bin/env python
# coding: utf-8
import sys
import platform
import datetime
from os import path
from setuptools import setup, find_packages, Extension
from setuptools.command.build_ext import build_ext as _build_ext
readme_file = path.join(path.dirname(path.abspath(__file__)), 'README.md')
try:
from m2r import parse_from_file
readme = parse_from_file(readme_file)
except ImportError:
with open(readme_file) as f:
readme = f.read()
default_prefix='maptool'
today = datetime.date.today().strftime("%b-%d-%Y")
with open(path.join(default_prefix, '_date.py'), 'w') as fp :
fp.write('date = \'%s\'' % today)
install_requires=["pymatgen",
"ase",
"dpdata",
"pandas",
"goto-statement",
"paramiko",
"nptyping"],
setup(
name="maptool",
packages=find_packages(),
use_scm_version={'write_to': 'maptool/_version.py'},
setup_requires=['setuptools_scm'],
install_requires=install_requires,
author="haidi",
author_email="[email protected]",
maintainer="haidi",
maintainer_email="[email protected]",
url="https://github.com/haidi-ustc/maptools",
license="GNU Lesser General Public License v3 (LGPLv3)",
description=default_prefix+" is a pre- and post-processing software for materials science"
"This software is based on Pymatgen, ASe and some open-source Python libraries.",
long_description=readme,
long_description_content_type="text/markdown",
keywords=["VASP", "LAMMPS", "QuantumEspresso","ASE","Pymatgen",
"electronic", "structure", "analysis", "phase", "diagrams"],
classifiers=[
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Software Development :: Libraries :: Python Modules"
],
entry_points={
'console_scripts': [
'mpt = maptool.mpt:main'],
}
)