-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
feat: upgrade docker image to py38 and add support for py39 #16889
Changes from all commits
f0583ff
8b7b170
dd2cd65
38d3b1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
-r base.in | ||
flask-cors>=2.0.0 | ||
mysqlclient==1.4.2.post1 | ||
pillow>=7.0.0,<8.0.0 | ||
pillow>=8.3.1,<9 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pillow 7.x caused problems on Python 3.9 |
||
pydruid>=0.6.1,<0.7 | ||
pyhive[hive]>=0.6.1 | ||
psycopg2-binary==2.8.5 | ||
|
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -106,7 +106,7 @@ def get_git_sha() -> str: | |||
"simplejson>=3.15.0", | ||||
"slackclient==2.5.0", # PINNED! slack changes file upload api in the future versions | ||||
"sqlalchemy>=1.3.16, <1.4, !=1.3.21", | ||||
"sqlalchemy-utils>=0.36.6, <0.37", | ||||
"sqlalchemy-utils>=0.37.8, <0.38", | ||||
"sqlparse==0.3.0", # PINNED! see https://github.com/andialbrecht/sqlparse/issues/562 | ||||
"tabulate==0.8.9", | ||||
"typing-extensions>=3.10, <4", # needed to support Literal (3.8) and TypeGuard (3.10) | ||||
|
@@ -169,5 +169,6 @@ def get_git_sha() -> str: | |||
classifiers=[ | ||||
"Programming Language :: Python :: 3.7", | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we're still going to support 3.7 (we support last 3 python versions officially). Once 3.10 is out, we'll remove 3.7 support in a major version bump There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to deprecate 3.7 too, but I think we should give it some more time (it's still currently the recommended version) - let's leave it alive for a month or so so everyone can get upgraded to at least 3.8 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @john-bodley @etr2460 I think we just lightly agreed on the last 3 versions on a community meeting. Making it an official policy is a good idea to let users know what to expect and plan ahead There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @john-bodley TBH until this PR we were only really supporting two 😄 But yeah, I think there was an unwritten agreement to try to support 3. I'm fine cutting it down to "at least 2" but trying to support 3 if possible. |
||||
"Programming Language :: Python :: 3.8", | ||||
"Programming Language :: Python :: 3.9", | ||||
], | ||||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,9 @@ def __get__( | |
if not self.is_method: | ||
self.is_method = True | ||
# Support instance methods. | ||
return functools.partial(self.__call__, obj) | ||
func = functools.partial(self.__call__, obj) | ||
func.__func__ = self.func # type: ignore | ||
return func | ||
Comment on lines
-67
to
+69
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wasn't quite able to figure out why this is necessary, but running doctests on memoized methods started failing on 3.9 due to the doctests failing to find the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. weird! |
||
|
||
|
||
def memoized( | ||
|
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.
sqlalchemy-utils==0.36.8
has been yanked from PyPI, causing an ugly warning when installing deps. In addition,py39
was added to the officially supported versions right after0.37.8
was cut (kvesteri/sqlalchemy-utils@b5b48b1), so I assume0.37.8
to be fully supported by 3.9 in practice.