I think I found a missing step in the `1 -> 2` ...
# general
j
I think I found a missing step in the
1 -> 2
documentation. Our existing
python_requirement_library
entries look like this:
Copy code
python_requirement_library(
    name = "numpy15",
    requirements = [
            python_requirement("numpy==1.15.4"),
    ],
)
The docs [ https://www.pantsbuild.org/docs/python-third-party-dependencies#defining-inline-requirements ] say that
requirements = ["numpy==1.15.4"]
is the correct format. I'm also getting the following error:
Name 'python_requirement' is not defined
.
h
python_requirement
was deprecated in 2.0, but should still work. Removed in 2.1
basically, remove the
python_requirement()
wrapper and use the raw string
j
I am trying 2.1.0rc1. That's why.
👍 1
whew. I'll go back to 2.0.0 for now. I don't need another todo item. LOL
h
Got it. Yeah, the deprecation message in 2.0 should be pretty comprehensive
👍🏽 1
and, as always, you can ignore it with
ignore_pants_warnings
till you’re ready to deal with