(I diagnosed this with heavy help from Opus.)
馃悶 bug report
Affected Rule
pip.parse.
Is this a regression?
Yes, I believe 2.2.0 works, while 2.3.1 fails.
Description
I expected py-spy==0.4.1 to work as a py_library dependency, but observed that whl_library_targets points the wrapper's srcs at an empty source target. Bazel then rejects the wrapper during analysis.
馃敩 Minimal Reproduction
See examples/py-spy.
From that directory, run:
bazel test //:py_spy_test
馃敟 Exception or Error
... //:srcs does not produce any py_library srcs files (expected .py or .py3)
馃實 Your Environment
Operating System:
Output of bazel version:
Rules_python version:
Anything else relevant?
The workaround is to stay on 2.2.0. I have a small fix and unit tests on the separate py-spy-fix branch.
(I diagnosed this with heavy help from Opus.)
馃悶 bug report
Affected Rule
pip.parse.Is this a regression?
Yes, I believe
2.2.0works, while2.3.1fails.Description
I expected
py-spy==0.4.1to work as apy_librarydependency, but observed thatwhl_library_targetspoints the wrapper'ssrcsat an empty source target. Bazel then rejects the wrapper during analysis.馃敩 Minimal Reproduction
See
examples/py-spy.From that directory, run:
bazel test //:py_spy_test馃敟 Exception or Error
馃實 Your Environment
Operating System:
Output of
bazel version:Rules_python version:
Anything else relevant?
The workaround is to stay on
2.2.0. I have a small fix and unit tests on the separatepy-spy-fixbranch.