4cc0da1c0d7a147b28913c3bb0c2f270ced70a87,tests/python/pants_test/backend/python/tasks/test_setup_py.py,TestSetupPy,test_pants_contrib_case,#TestSetupPy#,217
Before Change
req2 = create_requirement_lib("req2")
req3 = create_requirement_lib("req3")
pants_lib = self.make_target(
spec=":pants_lib",
target_type=PythonLibrary,
dependencies=[
req1,
req2,
]
)
self.make_target(
spec=":pants_bin",
target_type=PythonBinary,
entry_point="pants.bin.pants_exe:main",
dependencies=[
pants_lib // Should be stripped in minify since pants_packaged provides these sources.
]
)
pants_packaged = self.make_target(
spec=":pants_packaged",
target_type=PythonLibrary,
provides=PythonArtifact(
name="pants_packaged",
version="0.0.0"
).with_binaries(
pants_bin=":pants_bin" // Should be stripped in minify since pants_packaged provides this.
)
)
contrib_lib = self.make_target(
spec=":contrib_lib",
target_type=PythonLibrary,
dependencies=[
pants_lib, // Should be stripped in minify since pants_packaged provides these sources.
req3,
]
)
contrib_plugin = self.make_target(
spec=":contrib_plugin",
target_type=PythonLibrary,
provides=PythonArtifact(
name="contrib",
version="0.0.0"
),
dependencies=[
contrib_lib,
pants_packaged,
req1
]
)
minified_dependencies = SetupPy.minified_dependencies(contrib_plugin)
assert minified_dependencies == OrderedSet([contrib_lib, req3, pants_packaged, req1])
def test_detect_namespace_packages():
After Change
contrib_plugin = self.create_python_library(
relpath="contrib/lib/src/python/pants/contrib",
name="plugin",
provides=dedent(
setup_py(
name="contrib",
version="0.0.0"
)
),
dependencies=[
"contrib/lib/src/python/pants/contrib/lib",
"src/python/pants:pants_packaged",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: pantsbuild/pants
Commit Name: 4cc0da1c0d7a147b28913c3bb0c2f270ced70a87
Time: 2015-03-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_setup_py.py
Class Name: TestSetupPy
Method Name: test_pants_contrib_case
Project Name: pantsbuild/pants
Commit Name: 4cc0da1c0d7a147b28913c3bb0c2f270ced70a87
Time: 2015-03-31
Author: john.sirois@gmail.com
File Name: tests/python/pants_test/backend/python/tasks/test_setup_py.py
Class Name: TestSetupPy
Method Name: test_pants_contrib_case
Project Name: pantsbuild/pants
Commit Name: 3222b9728d9f07cbce611ba6c57ef0d640d033a6
Time: 2021-04-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/bandit/rules_integration_test.py
Class Name:
Method Name: test_uses_correct_python_version
Project Name: pantsbuild/pants
Commit Name: 3222b9728d9f07cbce611ba6c57ef0d640d033a6
Time: 2021-04-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/lint/flake8/rules_integration_test.py
Class Name:
Method Name: test_uses_correct_python_version