Skip to content

feat: remove support for Python 3.6, require 3.7 or higher #1705

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

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

JohnVillalovos
Copy link
Member

@JohnVillalovos JohnVillalovos commented Nov 23, 2021

Python 3.6 is End-of-Life (EOL) as of 2021-12 as stated in
https://www.python.org/dev/peps/pep-0494/

By dropping support for Python 3.6 and requiring Python 3.7 or higher
it allows python-gitlab to take advantage of new features in Python
3.7, which are documented at:
https://docs.python.org/3/whatsnew/3.7.html

Some of these new features that may be useful to python-gitlab are:

  • PEP 563, postponed evaluation of type annotations.
  • dataclasses: PEP 557 – Data Classes
  • importlib.resources
  • PEP 562, customization of access to module attributes.
  • PEP 560, core support for typing module and generic types.
  • PEP 565, improved DeprecationWarning handling

BREAKING CHANGE: As of python-gitlab 3.0.0, Python 3.6 is no longer
supported. Python 3.7 or higher is required.

@JohnVillalovos JohnVillalovos requested a review from nejch November 23, 2021 06:29
@JohnVillalovos
Copy link
Member Author

FYI: Before this can be merged it will require some setting change in the project settings I believe. So that the Python 3.6 check is no longer required.

@nejch
Copy link
Member

nejch commented Nov 23, 2021

Thanks John! Could you just add a BREAKING CHANGE: trailer for this?

I've removed 3.6 as a required check.

Python 3.6 is End-of-Life (EOL) as of 2021-12 as stated in
https://www.python.org/dev/peps/pep-0494/

By dropping support for Python 3.6 and requiring Python 3.7 or higher
it allows python-gitlab to take advantage of new features in Python
3.7, which are documented at:
https://docs.python.org/3/whatsnew/3.7.html

Some of these new features that may be useful to python-gitlab are:
  * PEP 563, postponed evaluation of type annotations.
  * dataclasses: PEP 557 – Data Classes
  * importlib.resources
  * PEP 562, customization of access to module attributes.
  * PEP 560, core support for typing module and generic types.
  * PEP 565, improved DeprecationWarning handling

BREAKING CHANGE: As of python-gitlab 3.0.0, Python 3.6 is no longer
supported. Python 3.7 or higher is required.
@JohnVillalovos
Copy link
Member Author

JohnVillalovos commented Nov 23, 2021

Thanks John! Could you just add a BREAKING CHANGE: trailer for this?

Done!

I've removed 3.6 as a required check.

Thanks.

@nejch nejch merged commit a390ec3 into main Nov 23, 2021
@nejch nejch deleted the jlvillal/drop_py_36 branch November 23, 2021 20:40
@nejch nejch mentioned this pull request Nov 27, 2021
15 tasks
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