https://pantsbuild.org/ logo
#general
Title
# general
p

proud-dentist-22844

05/13/2021, 7:29 AM
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

hundreds-father-404

05/13/2021, 7:55 AM
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

proud-dentist-22844

05/13/2021, 7:56 AM
trying...
yes. that picks it up as //:PyYAML
šŸ™‚
h

hundreds-father-404

05/13/2021, 8:00 AM
Great! Good timing šŸ˜€
4 Views