forked from RadonPy/RadonPy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
97 lines (83 loc) · 2.89 KB
/
setup.py
File metadata and controls
97 lines (83 loc) · 2.89 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- coding: utf-8 -*-
from setuptools import setup
from codecs import open
from os import path
import re
from pathlib import Path
package_name = "radonpy-pypi"
source_root = "radonpy"
root_dir = path.abspath(path.dirname(__file__))
def _requirements():
return [name.rstrip() for name in open(path.join(root_dir, 'requirements.txt')).readlines()]
with open(path.join(root_dir, source_root, '__init__.py')) as f:
init_text = f.read()
version = re.search(r'__version__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
license = re.search(r'__license__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
author = re.search(r'__author__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
author_email = re.search(r'__author_email__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
url = re.search(r'__url__\s*=\s*[\'\"](.+?)[\'\"]', init_text).group(1)
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
assert version
assert license
assert author
assert author_email
assert url
setup(
name=package_name,
packages=[
source_root, source_root+'/core', source_root+'/ff', source_root+'/ff/ff_dat',
source_root+'/sim', source_root+'/sim/preset'
],
package_data={'': [source_root+'/ff/ff_dat/*.json']},
include_package_data=True,
install_requires=[
'numpy',
'pandas',
'scipy',
'psutil',
'matplotlib',
'rdkit>=2020.03',
'mdtraj>=1.9',
],
extras_require={
'lammps':[
'lammps>=2020.03.03'
],
'biopolymers':[
'ambertools',
'intermol',
],
'minepy':[
'minepy'
],
},
platforms=['Linux', 'Mac OS-X', 'Unix', 'Windows'],
python_requires=">=3.7",
tests_require=[],
version=version,
license=license,
author=author,
author_email=author_email,
url=url,
description='RadonPy is a Python library to automate physical property calculations for polymer informatics.',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='polymer informatics, molecular dynamics',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'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',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)