Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions examples/python/code_samples.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ def code_sample_compile_py(name):
srcs = [name + ".py"],
main = name + ".py",
deps = PYTHON_DEPS,
python_version = "PY3",
srcs_version = "PY3",
)

def code_sample_test_py(name):
Expand All @@ -50,8 +48,6 @@ def code_sample_test_py(name):
srcs = [name + ".py"],
main = name + ".py",
deps = PYTHON_DEPS,
python_version = "PY3",
srcs_version = "PY3",
)

def code_sample_test_arg_py(name, suffix, args, data):
Expand All @@ -63,8 +59,6 @@ def code_sample_test_arg_py(name, suffix, args, data):
data = data,
args = args,
deps = PYTHON_DEPS,
python_version = "PY3",
srcs_version = "PY3",
)

def code_sample_py(name):
Expand Down
4 changes: 0 additions & 4 deletions ortools/algorithms/samples/code_samples.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def code_sample_py(name):
requirement("absl-py"),
requirement("numpy"),
],
python_version = "PY3",
srcs_version = "PY3",
)

py_test(
Expand All @@ -63,8 +61,6 @@ def code_sample_py(name):
requirement("absl-py"),
requirement("numpy"),
],
python_version = "PY3",
srcs_version = "PY3",
)

def code_sample_cc_py(name):
Expand Down
4 changes: 0 additions & 4 deletions ortools/graph/samples/code_samples.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ def code_sample_py(name):
requirement("absl-py"),
requirement("numpy"),
],
python_version = "PY3",
srcs_version = "PY3",
)

py_test(
Expand All @@ -91,8 +89,6 @@ def code_sample_py(name):
requirement("absl-py"),
requirement("numpy"),
],
python_version = "PY3",
srcs_version = "PY3",
)

def code_sample_cc_py(name):
Expand Down
4 changes: 0 additions & 4 deletions ortools/linear_solver/samples/code_samples.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def code_sample_py(name):
"//ortools/init/python:init",
"//ortools/linear_solver/python:model_builder",
],
python_version = "PY3",
srcs_version = "PY3",
)

py_test(
Expand All @@ -77,8 +75,6 @@ def code_sample_py(name):
requirement("numpy"),
requirement("pandas"),
],
python_version = "PY3",
srcs_version = "PY3",
)

def code_sample_java(name):
Expand Down
2 changes: 0 additions & 2 deletions ortools/pdlp/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ py_test(
data = [
":pdlp.so",
],
python_version = "PY3",
srcs_version = "PY3",
deps = [
requirement("absl-py"),
requirement("numpy"),
Expand Down
6 changes: 1 addition & 5 deletions ortools/sat/samples/code_samples.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

"""Helper macro to compile and test code samples."""

load("@rules_go//go:def.bzl", "go_test")
load("@pip_deps//:requirements.bzl", "requirement")
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
load("@rules_cc//cc:cc_test.bzl", "cc_test")
load("@rules_go//go:def.bzl", "go_test")
load("@rules_java//java:java_test.bzl", "java_test")
load("@rules_python//python:py_binary.bzl", "py_binary")
load("@rules_python//python:py_test.bzl", "py_test")
Expand Down Expand Up @@ -71,8 +71,6 @@ def code_sample_py(name):
requirement("pandas"),
"//ortools/sat/python:cp_model",
],
python_version = "PY3",
srcs_version = "PY3",
)

py_test(
Expand All @@ -89,8 +87,6 @@ def code_sample_py(name):
requirement("pandas"),
requirement("protobuf"),
],
python_version = "PY3",
srcs_version = "PY3",
)

def code_sample_cc_go_py(name):
Expand Down
Loading