forked from cea-hpc/clustershell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·95 lines (89 loc) · 3.94 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
#!/usr/bin/env python
#
# Copyright (C) 2008-2016 CEA/DAM
# Copyright (C) 2016-2023 Stephane Thiell <[email protected]>
#
# This file is part of ClusterShell.
#
# ClusterShell is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# ClusterShell is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with ClusterShell; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import os
from setuptools import setup, find_packages
VERSION = '1.9.1'
CFGDIR = 'etc/clustershell'
MANDIR = 'share/man'
# Dependencies (for pip install)
REQUIRES = ['PyYAML']
setup(name='ClusterShell',
version=VERSION,
package_dir={'': 'lib'},
packages=find_packages('lib'),
data_files=[(CFGDIR,
['conf/clush.conf',
'conf/groups.conf',
'conf/topology.conf.example']),
(os.path.join(CFGDIR, 'clush.conf.d'),
['conf/clush.conf.d/sshpass.conf.example',
'conf/clush.conf.d/sudo.conf.example',
'conf/clush.conf.d/README']),
(os.path.join(CFGDIR, 'groups.conf.d'),
['conf/groups.conf.d/genders.conf.example',
'conf/groups.conf.d/slurm.conf.example',
'conf/groups.conf.d/xcat.conf.example',
'conf/groups.conf.d/README']),
(os.path.join(CFGDIR, 'groups.d'),
['conf/groups.d/cluster.yaml.example',
'conf/groups.d/local.cfg',
'conf/groups.d/README']),
(os.path.join(MANDIR, 'man1'),
['doc/man/man1/clubak.1',
'doc/man/man1/cluset.1',
'doc/man/man1/clush.1',
'doc/man/man1/nodeset.1']),
(os.path.join(MANDIR, 'man5'),
['doc/man/man5/clush.conf.5',
'doc/man/man5/groups.conf.5']),
],
entry_points={'console_scripts':
['clubak=ClusterShell.CLI.Clubak:main',
'cluset=ClusterShell.CLI.Nodeset:main',
'clush=ClusterShell.CLI.Clush:main',
'nodeset=ClusterShell.CLI.Nodeset:main'],
},
author='Stephane Thiell',
author_email='[email protected]',
license='LGPLv2+',
url='https://clustershell.readthedocs.io/',
download_url='https://github.com/cea-hpc/clustershell/archive/refs/tags/v%s.tar.gz' % VERSION,
platforms=['GNU/Linux', 'BSD', 'MacOSX'],
keywords=['clustershell', 'clush', 'clubak', 'nodeset'],
description='ClusterShell library and tools',
long_description=open('doc/txt/clustershell.rst').read(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: BSD",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Clustering",
"Topic :: System :: Distributed Computing"
],
install_requires=REQUIRES,
)