Is there any suggested guidance on using `pantsbui...
# general
c
Is there any suggested guidance on using
pantsbuild.pants
in a
Pipfile
, and being able to use Python 3.10+? I see that
typing-extensions
is pinned to a specific version as a dependency of
pantsbuild.pants
, and that it specifies a requirement on Python
<3.10
Specifically, when running
pipenv graph
, I see that
typing-extensions==4.3.0
is a requirement of
pantsbuild.pants==2.16.0rc2
.
Copy code
pantsbuild.pants==2.16.0rc2
  ...
  - typing-extensions [required: ==4.3.0, ...]
And looking at
Pipfile.lock
, one of the requirements of
typing-extensions==4.3.0
is Python
<3.10
.
Copy code
"typing-extensions": {
    ...
    "markers": "python_version < '3.10'",
    "version": "==4.3.0"
}
1
b
I think pants is only expected to run on Python 3.7-3.9 at the moment. I think pants also typically best thought of a standalone application that happens to be distributed via pypi at the moment, rather than a directly installable package. Can you talk about more about why you're trying to install via this method?
c
Can you talk about more about why you’re trying to install via this method?
We have some custom Pants plugins in our repository, which is we why need to install it in our
Pipfile
. It’s currently installed as a dev-only dependency.
b
Ah, that’s a bit unexpected. I think pants can manage it’s own dependencies for custom plugins, via a target like
pants_requirements
(Search for that in https://www.pantsbuild.org/docs/plugins-overview for some more info) and the pants.toml
plugins
option should be used for any third party deps
c
Thanks for sending this over! Turns out I didn’t need to include it in the PIpfile. 🙂
👍 1