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

fix: typing-extensions ver for Semantic Versioning #17

Merged
merged 2 commits into from Nov 22, 2021

Conversation

bojiang
Copy link
Member

@bojiang bojiang commented Nov 22, 2021

Due to the Semantic Versioning decision of typing_textensions
https://github.com/python/typing/tree/master/typing_extensions#overview

Starting with version 4.0.0, typing_extensions uses Semantic Versioning. The major version is incremented for all backwards-incompatible changes, including dropping support for older Python versions. Therefore, it's safe to depend on typing_extensions like this: typing_extensions >=x.y, <(x+1), where x.y is the first version that includes all features you need.

@bojiang bojiang requested a review from aarnphm November 22, 2021 19:08
@@ -28,7 +28,7 @@
install_requires=[
'dataclasses; python_version < "3.7.0"',
'types-dataclasses; python_version < "3.7.0"',
'typing-extensions',
'typing-extensions < 4',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
'typing-extensions < 4',
'typing-extensions>=3.7, < 4',

Copy link
Member Author

@bojiang bojiang Nov 22, 2021

Choose a reason for hiding this comment

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

I've tested. The 3.6.x also works. And there's no 3.5.x

@bojiang bojiang merged commit 0e9c94f into bentoml:master Nov 22, 2021
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.

None yet

2 participants