forked from usnistgov/atomman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (67 loc) · 1.96 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
import os
from setuptools import setup, find_packages
from setuptools.extension import Extension
try:
from Cython.Build import cythonize
except:
USE_CYTHON = False
EXT = '.c'
else:
USE_CYTHON = True
EXT = '.pyx'
extensions = [Extension("*", ["atomman/core/*" + EXT]),
Extension("*", ["atomman/defect/*" + EXT])]
if USE_CYTHON:
extensions = cythonize(extensions)
def getversion():
"""Fetches version information from VERSION file"""
with open(os.path.join('atomman', 'VERSION'), encoding='UTF-8') as version_file:
version = version_file.read().strip()
return version
def getreadme():
"""Fetches description from README.rst file"""
with open('README.rst', encoding='UTF-8') as f:
return f.read()
setup(
name = 'atomman',
version = getversion(),
description = 'Atomistic Manipulation Toolkit',
long_description = getreadme(),
ext_modules = extensions,
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Natural Language :: English',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Scientific/Engineering :: Physics'
],
keywords = [
'atom',
'atomic',
'atomistic',
'molecular dynamics'
],
url = 'https://github.com/usnistgov/atomman/',
author = 'Lucas Hale',
author_email = '[email protected]',
packages = find_packages(),
install_requires = [
'xmltodict',
'DataModelDict',
'numericalunits',
'numpy>=1.15',
'matplotlib',
'scipy',
'pandas',
'cython',
'requests',
'toolz',
'potentials==0.3.6'
],
include_package_data = True,
zip_safe = False
)