349e93904c3786f0f0a816551dafee4af921102c,src/python/pants/backend/python/pants_requirement.py,PantsRequirement,__call__,#PantsRequirement#,33

Before Change


            target = Address(spec_path=self._parse_context.rel_path, target_name=name)
            raise TargetDefinitionException(
                target=target,
                msg="The {} target only works for pantsbuild.pants "
                "distributions, given {}".format(self.alias, dist),
            )

        requirement = PythonRequirement(

After Change


                ),
            )

        module_name = dist.replace("pantsbuild.", "")
        requirement = PythonRequirement(
            requirement=f"{dist}=={pants_version()}", modules=[module_name]
        )
        self._parse_context.create_object(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 349e93904c3786f0f0a816551dafee4af921102c
Time: 2020-07-01
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/pants_requirement.py
Class Name: PantsRequirement
Method Name: __call__


Project Name: tgsmith61591/pmdarima
Commit Name: 942f284052b22214d830c1bc2c8de03bffaa8d07
Time: 2020-02-18
Author: aaronreidsmith@gmail.com
File Name: build_tools/azure/render_meta.py
Class Name:
Method Name:


Project Name: daavoo/pyntcloud
Commit Name: cdbe12c9ecc86fb54e6310d6aeab98edc6eba879
Time: 2017-05-02
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/plot/points.py
Class Name:
Method Name: plot_PyntCloud