2018-11-20 00:53:17 +03:00
|
|
|
# -*- 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
|
|
|
|
|
2019-04-09 16:57:29 +03:00
|
|
|
from setuptools import find_packages, setup
|
2018-11-20 00:53:17 +03:00
|
|
|
|
|
|
|
here = os.path.dirname(__file__)
|
|
|
|
|
|
|
|
|
2018-12-14 01:41:34 +03:00
|
|
|
def read_requirements(file_):
|
|
|
|
with open(os.path.join(here, file_)) as f:
|
2019-06-08 22:11:16 +03:00
|
|
|
return sorted(list(set(line.split("#")[0].strip() for line in f)))
|
2018-12-14 01:41:34 +03:00
|
|
|
|
|
|
|
|
2019-06-08 22:11:16 +03:00
|
|
|
install_requires = read_requirements("requirements.txt")
|
2018-11-20 00:53:17 +03:00
|
|
|
|
|
|
|
|
2019-04-09 16:57:29 +03:00
|
|
|
with open(os.path.join(here, "VERSION")) as f:
|
2018-11-20 00:53:17 +03:00
|
|
|
version = f.read().strip()
|
|
|
|
|
2019-04-26 17:16:18 +03:00
|
|
|
# Read the extra requirements
|
2019-04-26 19:50:02 +03:00
|
|
|
extras = ["nlp", "nn"]
|
2019-04-26 17:16:18 +03:00
|
|
|
|
|
|
|
extras_require = {}
|
|
|
|
|
|
|
|
for extra in extras:
|
2019-06-08 22:11:16 +03:00
|
|
|
extras_require[extra] = read_requirements("extra-%s-requirements.txt" % extra)
|
2019-04-26 17:16:18 +03:00
|
|
|
|
|
|
|
|
2018-11-20 00:53:17 +03:00
|
|
|
setup(
|
2019-04-09 16:57:29 +03:00
|
|
|
name="bugbug",
|
2018-11-20 00:53:17 +03:00
|
|
|
version=version,
|
2019-04-09 16:57:29 +03:00
|
|
|
description="ML tools for Mozilla projects",
|
|
|
|
author="Marco Castelluccio",
|
|
|
|
author_email="mcastelluccio@mozilla.com",
|
2018-12-14 01:41:34 +03:00
|
|
|
install_requires=install_requires,
|
2019-04-26 17:16:18 +03:00
|
|
|
extras_require=extras_require,
|
2019-04-09 16:57:29 +03:00
|
|
|
packages=find_packages(exclude=["contrib", "docs", "tests"]),
|
2018-11-20 00:53:17 +03:00
|
|
|
include_package_data=True,
|
2019-04-09 16:57:29 +03:00
|
|
|
license="MPL2",
|
2019-04-09 17:30:09 +03:00
|
|
|
entry_points={
|
|
|
|
"console_scripts": [
|
|
|
|
"bugbug-data-commits = scripts.commit_retriever:main",
|
|
|
|
"bugbug-data-bugzilla = scripts.bug_retriever:main",
|
2019-04-09 18:49:56 +03:00
|
|
|
"bugbug-train = scripts.trainer:main",
|
2019-05-10 13:20:23 +03:00
|
|
|
"bugbug-check = scripts.check:main",
|
2019-06-26 19:19:40 +03:00
|
|
|
"bugbug-microannotate-generate = scripts.microannotate_generator:main",
|
2019-07-02 20:28:14 +03:00
|
|
|
"bugbug-classify-commit = scripts.commit_classifier:main",
|
2019-08-03 03:20:09 +03:00
|
|
|
"bugbug-classify-bug = scripts.bug_classifier:main",
|
2019-07-22 15:41:34 +03:00
|
|
|
"bugbug-regressor-finder = scripts.regressor_finder:main",
|
2019-08-05 11:22:55 +03:00
|
|
|
"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",
|
2019-04-09 17:30:09 +03:00
|
|
|
]
|
|
|
|
},
|
2019-04-26 17:16:18 +03:00
|
|
|
classifiers=[
|
2019-06-13 14:15:53 +03:00
|
|
|
"Programming Language :: Python :: 3.7",
|
2019-04-26 17:16:18 +03:00
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
|
|
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
|
|
|
|
],
|
2018-11-20 00:53:17 +03:00
|
|
|
)
|