-
Notifications
You must be signed in to change notification settings - Fork 309
/
setup.py
74 lines (60 loc) · 2.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
# -*- coding: utf-8 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import os
from setuptools import find_packages, setup
here = os.path.dirname(__file__)
def read_requirements(file_):
with open(os.path.join(here, file_)) as f:
return sorted(list(set(line.split("#")[0].strip() for line in f)))
install_requires = read_requirements("requirements.txt")
with open(os.path.join(here, "VERSION")) as f:
version = f.read().strip()
# Read the extra requirements
extras = ["nlp", "nn"]
extras_require = {}
for extra in extras:
extras_require[extra] = read_requirements("extra-%s-requirements.txt" % extra)
setup(
name="bugbug",
version=version,
description="ML tools for Mozilla projects",
author="Marco Castelluccio",
author_email="[email protected]",
install_requires=install_requires,
extras_require=extras_require,
packages=find_packages(exclude=["contrib", "docs", "tests"]),
include_package_data=True,
license="MPL2",
entry_points={
"console_scripts": [
"bugbug-data-commits = scripts.commit_retriever:main",
"bugbug-data-bugzilla = scripts.bug_retriever:main",
"bugbug-data-test-scheduling-history = scripts.test_scheduling_history_retriever:main",
"bugbug-data-revisions = scripts.revision_retriever:main",
"bugbug-train = scripts.trainer:main",
"bugbug-check = scripts.check:main",
"bugbug-maintenance-effectiveness-indicator = scripts.maintenance_effectiveness_indicator:main",
"bugbug-microannotate-generate = scripts.microannotate_generator:main",
"bugbug-classify-commit = scripts.commit_classifier:main",
"bugbug-classify-bug = scripts.bug_classifier:main",
"bugbug-regressor-finder = scripts.regressor_finder:main",
"bugbug-retrieve-training-metrics = scripts.retrieve_training_metrics:main",
"bugbug-analyze-training-metrics = scripts.analyze_training_metrics:main",
"bugbug-check-all-metrics = scripts.check_all_metrics:main",
"bugbug-past-bugs-by-unit = scripts.past_bugs_by_unit:main",
"bugbug-testing-policy-stats = scripts.testing_policy_stats:main",
"bugbug-generate-landings-risk-report = scripts.generate_landings_risk_report:main",
"bugbug-shadow-scheduler-stats = scripts.shadow_scheduler_stats:main",
"bugbug-data-github = scripts.github_issue_retriever:main",
"bugbug-fixed-comments = scripts.inline_comments_data_collection:main",
]
},
classifiers=[
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
],
)