Is there a way to inform pants on how much of the ...
# general
b
Is there a way to inform pants on how much of the first-party version I'd like it to use when using ``--setup-py-generation-first-party-dependency-version-scheme=compatible` ? I'd like to have things setup so that minor versions are considered compatible, but it looks like if my first party dependency specifies a patch version that the dependent distribution ends up with
~=1.2.3
whereas I'd like it to be
~=1.2
Read over the code, it looks like this could be a modification to
SetupPyGeneration
for a new option and
first_party_dependency_version
to modify the return value accordingly?
h
Hmm, yes. I think we'd just want to add that choice to the
FirstPartyDependencyVersionScheme
enum
Say,
COMPATIBLE_MAJOR
or something, and then modify
first_party_dependency_version
Seems pretty straightforward if you want to take a crack at it?
👍 2