Skip to content

Commit 3f10990

Browse files
mattemf0rmiga
authored andcommitted
tidy
1 parent ed124c6 commit 3f10990

File tree

6 files changed

+51
-5
lines changed

6 files changed

+51
-5
lines changed

docs/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ bzl_library(
5454
name = "defs",
5555
srcs = [
5656
"//python:defs.bzl",
57+
"//python/py_pytest_main:defs.bzl",
5758
"//python/private:reexports.bzl",
5859
],
5960
deps = [":bazel_python_tools"],

docs/python.md

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Core rules for building Python projects.
1818

1919
load("@bazel_tools//tools/python:srcs_version.bzl", _find_requirements = "find_requirements")
2020
load("@bazel_tools//tools/python:toolchain.bzl", _py_runtime_pair = "py_runtime_pair")
21-
load("//python/py_pytest_main:def.bzl", _py_pytest_main = "py_pytest_main")
21+
load("//python/py_pytest_main:defs.bzl", _py_pytest_main = "py_pytest_main")
2222
load(
2323
"//python/private:reexports.bzl",
2424
"internal_PyInfo",

python/py_pytest_main/BUILD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
exports_files(
2+
["pytest.tmpl.py"],
3+
visibility = ["//visibility:public"],
4+
)
5+
6+
licenses(["notice"]) # Apache 2.0
7+
8+
filegroup(
9+
name = "distribution",
10+
srcs = glob(["**"]),
11+
visibility = ["//python:__pkg__"],
12+
)
13+
14+
# Filegroup of bzl files that can be used by downstream rules for documentation generation
15+
# Using a filegroup rather than bzl_library to not give a transitive dependency on Skylib
16+
filegroup(
17+
name = "bzl",
18+
srcs = glob(["**/*.bzl"]),
19+
visibility = ["//python:__pkg__"],
20+
)
21+
22+
# Needed to define bzl_library targets for docgen. (We don't define the
23+
# bzl_library target here because it'd give our users a transitive dependency
24+
# on Skylib.)
25+
exports_files(
26+
[
27+
"defs.bzl",
28+
],
29+
visibility = ["//docs:__pkg__"],
30+
)

python/py_pytest_main/BUILD.bazel

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)