Skip to content

Conversation

@mkb79
Copy link
Contributor

@mkb79 mkb79 commented Jan 21, 2023

With these changes wildcard versions lile '==1.*' can be matched.

IMPORTANT: packaging or pip must be installed for this.

`packaging` or `pip` must be installed for this.

With these changes wildcard versions lile '==1.*' can be matched.
if HAS_SPECIFIER:
try:
self.specifier = SpecifierSet(''.join(version_specs[0]))
except:
Copy link
Collaborator

@cclauss cclauss Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use bare except:, it also catches unexpected events like memory errors, interrupts, system exit, and so on.

if self.specifier is not None:
try:
return self.specifier.contains(version)
except:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use bare except:

else:
if not op(vi, evi):
matches = False
return matches
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a blank line at the end of the file (as discussed in PEP8) to avoid the ⛔ below in the GitHub file viewer.

@cclauss
Copy link
Collaborator

cclauss commented Aug 5, 2025

Please git rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants