I've got PyYAML in both requirements and constrain...
# general
p
I've got PyYAML in both requirements and constraints files. but it's not getting inferred in a file with
import yaml
Copy code
$ ./pants dependencies st2common/st2common/constants/meta.py
st2common/st2common/__init__.py
st2common/st2common/conf/base.logging.conf:base_logging_conf
st2common/st2common/constants/__init__.py
Why isn't it picking up the yaml dep? https://github.com/st2sandbox/st2/blob/pants/st2common/st2common/constants/meta.py https://github.com/st2sandbox/st2/blob/pants/requirements-pants.txt#L40 https://github.com/st2sandbox/st2/blob/pants/constraints-pants.txt#L89 https://github.com/pantsbuild/pants/blob/2.5.x/src/python/pants/backend/python/dependency_inference/default_module_mapping.py#L19
h
Try the just released 2.5.0rc2. I made a change today that Iā€™m curious if it will fix this - we now normalize the project name so we can handle things like different capitalization
p
trying...
yes. that picks it up as //:PyYAML
šŸ™‚
h
Great! Good timing šŸ˜€