-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
76 lines (66 loc) · 2.1 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
import os
import re
from pathlib import Path
from setuptools import find_namespace_packages, setup
REQUIRES = [
"globus-compute-sdk==2.31.0",
"parsl==2024.11.18",
]
TEST_REQUIRES = [
"flake8==3.8.0",
"pytest>=7.2",
"pytest-mock",
"pyfakefs",
"coverage",
# easy mocking of the `requests` library
"responses",
]
DEV_REQUIRES = TEST_REQUIRES + [
"pre-commit",
]
def parse_version():
# single source of truth for package version
version_string = ""
version_pattern = re.compile(r'__version__ = "([^"]*)"')
with open(os.path.join("globus_compute_executor", "version.py")) as f:
for line in f:
match = version_pattern.match(line)
if match:
version_string = match.group(1)
break
if not version_string:
raise RuntimeError("Failed to parse version information")
return version_string
directory = Path(__file__).parent
long_description = (directory / "PyPI.md").read_text()
setup(
name="globus-compute-executor",
version=parse_version(),
packages=find_namespace_packages(
include=["globus_compute_executor", "globus_compute_executor.*"]
),
package_data={"globus_compute_executor": ["py.typed"]},
description="Globus Compute adapter for plugging into Parsl",
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=REQUIRES,
extras_require={
"dev": DEV_REQUIRES,
"test": TEST_REQUIRES,
},
python_requires=">=3.9",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
],
keywords=["Globus Compute", "FaaS", "Function Serving"],
author="Globus Compute Team",
author_email="[email protected]",
license="Apache License, Version 2.0",
url="https://github.com/globus/globus-compute",
)