-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
65 lines (58 loc) · 1.85 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import ast
import os
import re
from setuptools import find_packages, setup
with open("README.rst") as file:
long_description = file.read()
long_description += "\n\n"
with open("HISTORY.rst") as file:
long_description += file.read()
with open(os.path.join("gravity", "__init__.py")) as f:
init_contents = f.read()
def get_var(var_name):
pattern = re.compile(r"%s\s+=\s+(.*)" % var_name)
match = pattern.search(init_contents).group(1)
return str(ast.literal_eval(match))
version = get_var("__version__")
setup(
name="gravity",
version=version,
packages=find_packages(),
description="Command-line utilities to assist in managing Galaxy servers",
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://github.com/galaxyproject/gravity",
author="The Galaxy Team",
author_email="[email protected]",
license="MIT",
keywords="gravity galaxy",
python_requires=">=3.7",
install_requires=[
"Click",
"supervisor",
"pyyaml",
"packaging",
"pydantic<3", # pydantic.v1 import will be removed in v3
"jsonref",
"requests",
"requests-unixsocket",
],
entry_points={"console_scripts": [
"galaxy = gravity.cli:galaxy",
"galaxyctl = gravity.cli:galaxyctl",
]},
classifiers=[
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
zip_safe=False,
)