-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
58 lines (51 loc) · 1.89 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
#!/usr/bin/env python
"""Setup."""
# fmt:off
import os
from setuptools import find_packages, setup # type: ignore[import]
kwargs = {}
current_path = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(current_path, "pyglidein", "__init__.py")) as f:
for line in f.readlines():
if "__version__" in line:
# grab "X.Y.Z" from "__version__ = 'X.Y.Z'" (quote-style insensitive)
kwargs["version"] = line.replace('"', "'").split("=")[-1].split("'")[1]
break
else:
raise Exception("cannot find __version__")
setup(
name='pyglidein',
description='Some python scripts to launch HTCondor glideins',
url='https://github.com/WIPACrepo/pyglidein',
author='WIPAC',
author_email='contact-us@icecube.wisc.edu',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='htcondor dHTC glidein',
packages=find_packages(),
install_requires=['minio', 'tornado'],
package_data={
'pyglidein': ['etc/client_defaults.cfg',
'glidein_start.sh', 'log_shipper.sh', 'os_arch.sh',
'startd_cron_scripts/clsim_gpu_test.py',
'startd_cron_scripts/cvmfs_test.py',
'startd_cron_scripts/gridftp_test.py',
'startd_cron_scripts/post_cvmfs.sh',
'startd_cron_scripts/pre_cvmfs.sh']
},
entry_points={
'console_scripts': [
'pyglidein_client=pyglidein.client:main',
'pyglidein_server=pyglidein.server:main'
]
},
python_requires='>=2.6',
**kwargs,
)