I am trying to set a version for all python_artifa...
# general
b
I am trying to set a version for all python_artifacts by doing
Copy code
__defaults__({python_artifact: dict(version="0.0.1")})
But I get
ValueError: Unrecognized target type <class 'pants.backend.python.macros.python_artifact.PythonArtifact'> in //#__defaults__.
Would it be possible to set the default python_artifact version to the git hash?
e
If you haven't stumbled upon the keywords "vcs version python artifact" yet, you should try that in the Slack search bar. Lots of people have tried lots of things with regards to setting python artifact versions. I'm not sure if any of these have been successful or meet your needs if so, but some reading homework that may bear fruit.
b
ah nice, I was unaware where to even start
b
Also, to answer your specific question.
__defaults__
only works with targets.
pants help targets
should show you what those are