-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (38 loc) · 1.78 KB
/
setup.py
File metadata and controls
49 lines (38 loc) · 1.78 KB
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
import sys
from setuptools import setup
setup_requires = []
install_requires = ['Click', 'numpy', 'matplotlib', 'PyYAML']
# Optional: (include Atomic Simulation Environment (ASE) package to use the visualization of vibration mode)
# install_requires.append('ase')
packages_interphon = ['InterPhon',
'InterPhon.core',
'InterPhon.error',
'InterPhon.inout',
'InterPhon.util',
'InterPhon.analysis', ]
scripts_interphon = ['scripts/interphon.py', ]
if __name__ == '__main__':
assert sys.version_info >= (3, 0), 'python>=3 is required'
with open('./README.md', 'rt', encoding='UTF8') as f:
long_description = f.read()
with open('InterPhon/__init__.py', 'r') as init_file:
for line in init_file:
if "__version__" in line:
version = line.split()[2].strip('\"')
break
setup(name='InterPhon',
version=version,
description='A Python Package for Ab initio Interface Phonon Calculations within a 3D Electronic Structure Framework',
url='https://github.com/inwonyeu/interphon',
author='In Won Yeu',
author_email='yiw0121@snu.ac.kr',
license='LGPLv2.1',
packages=packages_interphon,
install_requires=install_requires, # The package written here will be installed with the current package.
python_requires='>=3',
setup_requires=setup_requires,
# scripts=scripts_interphon,
long_description=long_description,
# long_description_content_type="text/markdown",
entry_points={'console_scripts': ['interphon = InterPhon.interphon:main', ], },
)