Skip to content
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

Use built-in version parsing from packaging #3502

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

adrianeboyd
Copy link
Contributor

Use version parsing from packaging to support all valid python version identifiers instead of the external semver library.

@adrianeboyd adrianeboyd force-pushed the use-packaging-version branch from b0177a0 to e85d6b3 Compare July 20, 2024 12:58
@adrianeboyd
Copy link
Contributor Author

Related to: #3289 (comment)

You could also consider using importlib.metadata to get the version instead of .__version__, which may or may not be present in any given library.

Use version parsing from `packaging` to support all valid python
version identifiers instead of the external `semver` library.
Copy link
Collaborator

@helpmefindaname helpmefindaname left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution

@alanakbik
Copy link
Collaborator

@adrianeboyd thanks for adding this!

@alanakbik alanakbik merged commit 66cd3bd into flairNLP:master Aug 9, 2024
1 check failed
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.

3 participants