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

Add deprecation warning for 3.5 and lower #783

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Chaostheorie
Copy link
Contributor

The messages might need adjustment, but the test is working. This PR is intended to resolve #731.

Cobalt added 5 commits May 27, 2021 12:02
The messages might need adjustment, but the test is working.
I really hate black sometimes
.. versionchanged:: 1.1
Added the ``prebake`` keyword argument to choose when to create the prepared
statements for the queries in the bakery:

Copy link
Member

Choose a reason for hiding this comment

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

I think this new line was to keep the markdown docs structure, the same for line 28.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They had been removed by the formatter in my IDE. Has been fixed

@Chaostheorie Chaostheorie changed the title Add deprecation warning for 3.5 and lower (Resolving: #731) Add deprecation warning for 3.5 and lower Jun 9, 2021
@@ -14,10 +16,8 @@
def create_engine(*args, **kwargs):
"""
Shortcut for :func:`sqlalchemy.create_engine` with ``strategy="gino"``.

Copy link
Member

Choose a reason for hiding this comment

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

could you add these two lines back too?

@@ -45,6 +45,15 @@ def get_version():
return version("gino")


# Check if current python version is deprecated
# Check if version is lower than 3.6
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: this is quite obvious by the statement itself

@Chaostheorie
Copy link
Contributor Author

I'll change the code as requested later.

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.

Phase out Python 3.5
3 participants