-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flag for ignoring entries check pypi script #387
Add flag for ignoring entries check pypi script #387
Conversation
57656f7
to
7fcfe34
Compare
ac92823
to
29aecb1
Compare
29aecb1
to
bcc4d65
Compare
try: | ||
current_version = get_version.Version(versions["previous"]) | ||
except get_version.InvalidVersion: | ||
print(f"Could not parse version {versions['previous']}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now printouts we will get if we have "main" as version but not filtered them out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been too long to remember, but can this create noise in the output? main
is an accepted version in bleeding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but this only runs on packages which have pypi as a source in repository.yml. Main versions are sourced elsewhere, so it is filtered out at an earlier stage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^usually sourced with git
c11b4ba
to
6c3e25f
Compare
Added argument flag for ignoring package_name/package_version from getting upgrade suggestions using regex.
6c3e25f
to
992f1f2
Compare
There is another issue with the code. It skips versions marked as pre-release, but certain packages only have pre-release versions. In this case, it will try to run max() over an empty list and fail. |
This commits adds a check to see if any valid pypi package versions were found. If not, it will let the user know that the package should be checked manually.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement!
Resolves #342
Resolves #414
Depends on #386