forked from oar-team/oar3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·101 lines (89 loc) · 3.23 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path as op
import re
from codecs import open
from setuptools import find_packages, setup
def read(fname):
"""Return the file content."""
here = op.abspath(op.dirname(__file__))
with open(op.join(here, fname), "r", "utf-8") as fd:
return fd.read()
def get_requirements(basename):
return read("requirements/{}.txt".format(basename)).strip().split("\n")
readme = read("README.rst")
changelog = read("CHANGES.rst").replace(".. :changelog:", "")
version = ""
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
read(op.join("oar", "__init__.py")),
re.MULTILINE,
).group(1)
if not version:
raise RuntimeError("Cannot find version information")
extras_require = {
key: get_requirements(key) for key in ["full", "coorm", "dev", "test"]
}
setup(
name="oar",
author="Olivier Richard, Salem Harrache",
author_email="[email protected]",
version=version,
url="https://github.com/oar-team/oar3",
packages=find_packages(exclude=["tests"]),
package_dir={"oar": "oar"},
package_data={"oar": ["tools/*.pl", "tools/*.pm", "tools/*.sh", "tools/oarexec"]},
install_requires=get_requirements("base"),
extras_require=extras_require,
include_package_data=True,
zip_safe=False,
description="OAR next generation",
long_description=readme + "\n\n" + changelog,
keywords="oar3",
license="BSD",
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Clustering",
],
entry_points="""
[console_scripts]
oar-database-migrate=oar.cli.db.commands.migrate:cli
oar-database-archive=oar.cli.db.commands.archive:cli
oar-database-manage=oar.cli.db.commands.manage:cli
oar-almighty=oar.modules.almighty:main
oar-bipbip-commander=oar.modules.bipbip_commander:main
oar-appendice-proxy=oar.modules.appendice_proxy:main
oar-hulot=oar.modules.hulot:main
.oarsub=oar.cli.oarsub:cli
.oarstat=oar.cli.oarstat:cli
.oardel=oar.cli.oardel:cli
.oarhold=oar.cli.oarhold:cli
.oarresume=oar.cli.oarresume:cli
.oarnodes=oar.cli.oarnodes:cli
.oarnotify=oar.cli.oarnotify:cli
.oarqueue=oar.cli.oarqueue:cli
.oarconnect=oar.cli.oarconnect:cli
.oarremoveresource=oar.cli.oarremoveresource:cli
.oarnodesetting=oar.cli.oarnodesetting:cli
.oaraccounting=oar.cli.oaraccounting:cli
.oarproperty=oar.cli.oarproperty:cli
.oarwalltime=oar.cli.oarwalltime:cli
oar2trace=oar.cli.oar2trace:cli
kao=oar.kao.kao:main
kamelot=oar.kao.kamelot:main
kamelot-fifo=oar.kao.kamelot_fifo:main
bataar=oar.kao.bataar:bataar
oar-batsim-sched-proxy=oar.kao.batsim_sched_proxy:cli
oar-sarko=oar.modules.sarko:main
oar-finaud=oar.modules.finaud:main
oar-leon=oar.modules.leon:main
oar-node-change-state=oar.modules.node_change_state:main
oar-bipbip=oar.modules.bipbip:main
oar-proxy-cleaner=oar.cli.oarproxycleaner:cli
""",
)