forked from aiidateam/aiida-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
104 lines (99 loc) · 4.73 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# #
# The code is hosted on GitHub at https://github.com/aiidateam/aiida_core #
# For further information on the license, see the LICENSE.txt file #
# For further information please visit http://www.aiida.net #
###########################################################################
import fastentrypoints
import re
from os import path
from setuptools import setup, find_packages
from setup_requirements import install_requires, extras_require
if __name__ == '__main__':
# Get the version number
aiida_folder = path.split(path.abspath(__file__))[0]
fname = path.join(aiida_folder, 'aiida', '__init__.py')
with open(fname) as aiida_init:
match_expr = "__version__[^'\"]+(['\"])([^'\"]+)"
aiida_version = re.search(match_expr, aiida_init.read()).group(2).strip()
bin_folder = path.join(aiida_folder, 'bin')
setup(
name='aiida-core',
url='http://www.aiida.net/',
license='MIT License',
author="The AiiDA team",
author_email='developers@aiida.net',
include_package_data=True, # puts non-code files into the distribution, reads list from MANIFEST.in
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
],
version=aiida_version,
install_requires=install_requires,
extras_require=extras_require,
packages=find_packages(),
# Don't forget to install it as well (by adding to the install_requires)
setup_requires=[
'reentry >= 1.0.2',
],
reentry_register=True,
entry_points={
'console_scripts': [
'verdi=aiida.cmdline.verdilib:run',
'verdi-plug = aiida.cmdline.verdi_plug:verdi_plug'
],
# following are AiiDA plugin entry points:
'aiida.calculations': [
'simpleplugins.templatereplacer = aiida.orm.calculation.job.simpleplugins.templatereplacer:TemplatereplacerCalculation',
],
'aiida.data':[
'array.bands = aiida.orm.data.array.bands:BandsData',
'array.kpoints = aiida.orm.data.array.kpoints:KpointsData',
'array.projection = aiida.orm.data.array.projection:ProjectionData',
'array.trajectory = aiida.orm.data.array.trajectory:TrajectoryData',
'array.xy = aiida.orm.data.array.xy:XyData',
'cif = aiida.orm.data.cif:CifData',
'error = aiida.orm.data.error:Error',
'folder = aiida.orm.data.folder:FolderData',
'parameter = aiida.orm.data.parameter:ParameterData',
'remote = aiida.orm.data.remote:RemoteData',
'singlefile = aiida.orm.data.singlefile:SinglefileData',
'structure = aiida.orm.data.structure:StructureData',
'upf = aiida.orm.data.upf:UpfData'
],
'aiida.cmdline': [],
'aiida.parsers': [
'simpleplugins.templatereplacer.test.doubler = aiida.parsers.simpleplugins.templatereplacer.test:TemplatereplacerDoublerParser',
],
'aiida.schedulers': [
'direct = aiida.scheduler.plugins.direct:DirectScheduler',
'slurm = aiida.scheduler.plugins.slurm:SlurmScheduler',
'pbspro = aiida.scheduler.plugins.pbspro:PbsproScheduler',
'torque = aiida.scheduler.plugins.torque:TorqueScheduler',
],
'aiida.transports': [
'ssh = aiida.transport.plugins.ssh:SshTransport',
'local = aiida.transport.plugins.local:LocalTransport',
],
'aiida.workflows': [],
'aiida.tools.dbexporters': [
'tcod = aiida.tools.dbexporters.tcod'
],
'aiida.tests': [],
'aiida.tools.dbimporters': [
'cod = aiida.tools.dbimporters.cod',
'icsd = aiida.tools.dbimporters.icsd',
'mpod = aiida.tools.dbimporters.mpod',
'nninc = aiida.tools.dbimporters.nninc',
'oqmd = aiida.tools.dbimporters.oqmd',
'pcod = aiida.tools.dbimporters.pcod',
'tcod = aiida.tools.dbimporters.tcod'
]
},
scripts=['bin/runaiida'],
long_description=open(path.join(aiida_folder, 'README.rst')).read(),
)