Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
Remove bugbug project (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-c authored and La0 committed May 22, 2019
1 parent 21550fe commit 48db3b5
Show file tree
Hide file tree
Showing 54 changed files with 0 additions and 10,982 deletions.
96 changes: 0 additions & 96 deletions lib/please_cli/please_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,102 +744,6 @@
},
],
},
'bugbug/data': {
'update': True,
'checks': [
('Checking code quality', 'flake8'),
('Running tests', 'pytest tests/'),
],
'deploys': [
{
'target': 'TASKCLUSTER_HOOK',
'options': {
'testing': {
'enable': True,
'nix_path_attribute': 'deploy.testing',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
'staging': {
'enable': False,
'nix_path_attribute': 'deploy.staging',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
'production': {
'enable': False,
'nix_path_attribute': 'deploy.production',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
},
},
],
},
'bugbug/train': {
'update': True,
'checks': [
('Checking code quality', 'flake8'),
('Running tests', 'pytest tests/'),
],
'deploys': [
{
'target': 'TASKCLUSTER_HOOK',
'options': {
'testing': {
'enable': True,
'nix_path_attribute': 'deploy.testing',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
'staging': {
'enable': False,
'nix_path_attribute': 'deploy.staging',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
'production': {
'enable': False,
'nix_path_attribute': 'deploy.production',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
},
},
],
},
'bugbug/eval': {
'update': True,
'checks': [
('Checking code quality', 'flake8'),
('Running tests', 'pytest tests/'),
],
'deploys': [
{
'target': 'TASKCLUSTER_HOOK',
'options': {
'testing': {
'enable': True,
'nix_path_attribute': 'deploy.testing',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
'staging': {
'enable': False,
'nix_path_attribute': 'deploy.staging',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
'production': {
'enable': False,
'nix_path_attribute': 'deploy.production',
'docker_registry': 'index.docker.io',
'docker_repo': 'mozillareleng/services',
},
},
},
],
},
'pulselistener': {
'update': True,
'requires': [],
Expand Down
88 changes: 0 additions & 88 deletions nix/requirements_override.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,114 +49,26 @@ in skipOverrides {
];
};

"bugbug" = self: old: {
patchPhase = ''
sed -i 's/python-dateutil==2.8.0/python-dateutil/' requirements.txt
sed -i 's/spacy==2.1.3/spacy==2.0.18/' requirements.txt
'';
};

"cryptography" = self: old: {
propagatedBuildInputs =
builtins.filter
(x: ! (pkgs.lib.hasSuffix "-flake8" (builtins.parseDrvName x.name).name))
old.propagatedBuildInputs;
};

"cymem" = self: old: {
patchPhase = ''
sed -i -e "s|setup_requires=\['wheel>=0.32.0,<0.33.0'\],|setup_requires=\['wheel'\],|" setup.py
'';
};

"en-core-web-sm" = self: old: {
propagatedBuildInputs =
builtins.filter
(x: ! (pkgs.lib.hasSuffix "-spacy" (builtins.parseDrvName x.name).name))
old.propagatedBuildInputs;
patchPhase = ''
sed -i -e "s|return requirements|return []|" setup.py
'';
};

"murmurhash" = self: old: {
patchPhase = ''
sed -i -e "s|setup_requires=\['wheel>=0.32.0,<0.33.0'\],|setup_requires=\['wheel'\],|" setup.py
'';
};

"numpy" = self: old: {
preConfigure = ''
sed -i 's/-faltivec//' numpy/distutils/system_info.py
'';
preBuild = ''
echo "Creating site.cfg file..."
cat << EOF > site.cfg
[openblas]
include_dirs = ${pkgs.openblasCompat}/include
library_dirs = ${pkgs.openblasCompat}/lib
EOF
'';
passthru = {
blas = pkgs.openblasCompat;
};
};

"pluggy" = self: old: {
buildInputs = old.buildInputs ++ [ self."setuptools-scm" ];
};

"preshed" = self: old: {
patchPhase = ''
sed -i -e "s|setup_requires=\['wheel>=0.32.0,<0.33.0'\],|setup_requires=\['wheel'\],|" setup.py
'';
};

"pytest" = self: old: {
buildInputs = old.buildInputs ++ [ self."setuptools-scm" ];
};

"scikit-image" = self: old: {
buildInputs = old.buildInputs ++ [ self."Cython" ];
};

"scipy" = self: old: {
prePatch = ''
rm scipy/linalg/tests/test_lapack.py
'';
preConfigure = ''
sed -i '0,/from numpy.distutils.core/s//import setuptools;from numpy.distutils.core/' setup.py
'';
preBuild = ''
echo "Creating site.cfg file..."
cat << EOF > site.cfg
[openblas]
include_dirs = ${pkgs.openblasCompat}/include
library_dirs = ${pkgs.openblasCompat}/lib
EOF
'';
setupPyBuildFlags = [ "--fcompiler='gnu95'" ];
passthru = {
blas = pkgs.openblasCompat;
};
};

"spacy" = self: old: {
patchPhase = ''
sed -i -e "s|setup_requires=\['wheel>=0.32.0,<0.33.0'\],|setup_requires=\['wheel'\],|" setup.py
'';
};
"taskcluster-urls" = self: old: {
patchPhase = ''
# until this is fixed https://github.com/taskcluster/taskcluster-proxy/pull/37
sed -i -e "s|/api/|/|" taskcluster_urls/__init__.py
'';
};

"thinc" = self: old: {
patchPhase = ''
sed -i -e "s|setup_requires=\[\"wheel>=0.32.0,<0.33.0\"\],|setup_requires=\['wheel'\],|" setup.py
'';
};

}
3 changes: 0 additions & 3 deletions nix/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ default_section=FIRSTPARTY
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
known_first_party =
backend_common
bugbug_data
bugbug_eval
bugbug_train
cli_common
code_coverage_bot
code_coverage_crawler
Expand Down
2 changes: 0 additions & 2 deletions src/bugbug/data/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/bugbug/data/VERSION

This file was deleted.

4 changes: 0 additions & 4 deletions src/bugbug/data/bugbug_data/__init__.py

This file was deleted.

40 changes: 0 additions & 40 deletions src/bugbug/data/bugbug_data/cli.py

This file was deleted.

7 changes: 0 additions & 7 deletions src/bugbug/data/bugbug_data/config.py

This file was deleted.

107 changes: 0 additions & 107 deletions src/bugbug/data/bugbug_data/retriever.py

This file was deleted.

Loading

0 comments on commit 48db3b5

Please sign in to comment.