Skip to content

Commit

Permalink
python: Remove Java implementation of Python rules
Browse files Browse the repository at this point in the history
This is to make transitioning the providers to Starlark easier.

Work towards #15897

PiperOrigin-RevId: 514463791
Change-Id: Iccd11f4750d3cf5ca5ed1b0ff8427d6580adcecc
  • Loading branch information
rickeylev authored and Copybara-Service committed Mar 6, 2023
1 parent 801103d commit 3ce2b71
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 334 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Metadata getMetadata() {
return RuleDefinition.Metadata.builder()
.name("py_binary")
.ancestors(PyBinaryBaseRule.class, BaseRuleClasses.BinaryBaseRule.class)
.factoryClass(BazelPyBinary.class)
.factoryClass(BaseRuleClasses.EmptyRuleConfiguredTargetFactory.class)
.build();
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import static com.google.devtools.build.lib.packages.Attribute.attr;
import static com.google.devtools.build.lib.packages.BuildType.LABEL_LIST;

import com.google.devtools.build.lib.analysis.BaseRuleClasses;
import com.google.devtools.build.lib.analysis.RuleDefinition;
import com.google.devtools.build.lib.analysis.RuleDefinitionEnvironment;
import com.google.devtools.build.lib.bazel.rules.python.BazelPyRuleClasses.PyBaseRule;
Expand Down Expand Up @@ -49,7 +50,7 @@ public Metadata getMetadata() {
return RuleDefinition.Metadata.builder()
.name("py_library")
.ancestors(PyBaseRule.class)
.factoryClass(BazelPyLibrary.class)
.factoryClass(BaseRuleClasses.EmptyRuleConfiguredTargetFactory.class)
.build();
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public Metadata getMetadata() {
.name("py_test")
.type(RuleClassType.TEST)
.ancestors(PyBinaryBaseRule.class, BaseRuleClasses.TestBaseRule.class)
.factoryClass(BazelPyTest.class)
.factoryClass(BaseRuleClasses.EmptyRuleConfiguredTargetFactory.class)
.build();
}
}
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 3ce2b71

Please sign in to comment.