forked from taskcluster/taskgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (46 loc) · 1.65 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
import os
from distutils.util import convert_path
from setuptools import find_packages, setup
project_dir = os.path.abspath(os.path.dirname(__file__))
namespace = {}
version_file = convert_path("src/taskgraph/__init__.py")
with open(version_file) as fh:
exec(fh.read(), namespace)
with open(os.path.join(project_dir, "requirements/base.in")) as fp:
requirements = fp.read().splitlines()
with open(os.path.join(project_dir, "README.rst")) as fh:
long_description = fh.read()
setup(
name="taskcluster-taskgraph",
version=namespace["__version__"],
description="Build taskcluster taskgraphs",
long_description=long_description,
url="https://github.com/taskcluster/taskgraph",
packages=find_packages("src"),
package_dir={"": "src"},
install_requires=requirements,
extras_require={
"load-image": ["zstandard"],
},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development",
],
entry_points={"console_scripts": ["taskgraph = taskgraph.main:main"]},
package_data={
"taskgraph": [
"run-task/run-task",
"run-task/fetch-content",
"run-task/hgrc",
"run-task/robustcheckout.py",
],
"taskgraph.test": ["automationrelevance.json"],
},
)