-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
48 lines (42 loc) · 1.54 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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
topdir = os.path.abspath(os.path.join(__file__, '..'))
def get_version():
with open(os.path.join(topdir, 'mpi4pyscf', '__init__.py'), 'r') as f:
for line in f.readlines():
if line.startswith('__version__'):
return eval(line.strip().split(' = ')[1])
raise ValueError("Version string not found")
with open(os.path.join(topdir, 'requirements.txt'), 'r') as f:
requirements = f.read().splitlines()
setup(
name='mpi4pyscf',
version=get_version(),
description='An MPI plugin for PySCF.',
long_description='mpi4pyscf is a plugin for PySCF which enables MPI (Message Passing Interface) parallelism.',
url='http://www.pyscf.org',
download_url='https://github.com/pyscf/mpi4pyscf',
author='Qiming Sun',
author_email='[email protected]',
install_requires=requirements,
license='GPLv3',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development',
'Topic :: Scientific/Engineering',
'Operating System :: POSIX',
'Operating System :: Unix',
],
packages=find_packages()
)