-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
76 lines (61 loc) · 2.17 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
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
https://docs.python.org/3/distutils/setupscript.html#distutils-installing-scripts
"""
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
long_description_md = open('README.md').read()
VERSION = (
1,
0,
0
)
def get_version(version=None):
"""Return version (X.Y[.Z]) from VERSION."""
parts = 2 if version[2] == 0 else 3
return '.'.join(str(x) for x in version[:parts])
version = get_version(VERSION)
REQUIRED_PYTHON = (3, 9)
EXCLUDE_FROM_PACKAGES = [
'docs',
'tests'
]
def setup_package():
""" wrapper for setup()"""
setup_info = dict(
name='termfactory',
version=version,
python_requires='~={}.{}'.format(*REQUIRED_PYTHON),
url='https://github.com/ngraymon/termfactory',
author='Neil Raymond',
author_email='[email protected]',
description='A python package for generating LaTeX and python code for evaluating residual terms',
long_description=long_description_md,
long_description_content_type='text/markdown',
license='MIT',
packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES),
include_package_data=True,
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Chemistry',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.9'
],
keywords='coupled_cluster quantum_mechanics chemistry vibronic',
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
'numpy>=1.18.*',
],
extras_require={
#'dev': ['check-manifest'],
'test': ['coverage', 'pytest']
},
)
setup(**setup_info)
if __name__ == '__main__':
setup_package()