-
Notifications
You must be signed in to change notification settings - Fork 1.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
Remove support for Python 3.3 #943
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
c182ae0
Remove Python 3.3 support
rodrigc 0d495ef
Remove support for Python 3.3
rodrigc 9e5acc7
Remove Python 3.3 special case
rodrigc 69120db
Remove Python 3.3 build
rodrigc 2048b60
Add newsfragment
rodrigc a953836
Note that Twisted 17.9.0 is the last release which supports Python 3.3.
rodrigc 5127203
Fail if we try to install on an unsupported Python version.
rodrigc 1f72812
Drop support for Python 3.3
rodrigc eb869ab
Remove unused import
rodrigc 5aadcda
Merge branch 'trunk' into 9352-rodrigc-no-py33
rodrigc b13e6aa
Convert comment to docstring
rodrigc ba8cb89
Move check for Python version into _setup.py
rodrigc d4050c2
Move check for Python version into _setup.py
rodrigc d584260
Remove unused file
rodrigc 532c54d
Use _checkPythonVersion
rodrigc b561b51
Remove unnecessary import
rodrigc 755d804
Use format string
rodrigc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Python 3.3 is no longer supported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,6 @@ | |
classifiers=[ | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
|
@@ -198,11 +197,27 @@ def __init__(self, *args, **kwargs): | |
|
||
|
||
|
||
def _checkPythonVersion(): | ||
""" | ||
Fail if we detect a version of Python we don't support. | ||
""" | ||
import sys | ||
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 that this import can be removed |
||
|
||
version = getattr(sys, "version_info", (0,)) | ||
if version < (2, 7): | ||
raise ImportError("Twisted requires Python 2.7 or later.") | ||
elif version >= (3, 0) and version < (3, 4): | ||
raise ImportError("Twisted on Python 3 requires Python 3.4 or later.") | ||
|
||
|
||
|
||
def getSetupArgs(extensions=_EXTENSIONS): | ||
""" | ||
@return: The keyword arguments to be used the the setup method. | ||
@rtype: L{dict} | ||
""" | ||
_checkPythonVersion() | ||
|
||
arguments = STATIC_PACKAGE_METADATA.copy() | ||
|
||
# This is a workaround for distutils behavior; ext_modules isn't | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This looks like we are re-writing history here.
I think that we should not touch previous release notes.
So we should just update the release notes for the next (future) release and drop support after that...
but I am not familiar with the process of dropping a python version.
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.
When Python 2.6 support was dropped, the NEWS.rst file was modified after the fact to update this: http://twistedmatrix.com/trac/ticket/8651
Since that seemed to be OK, I did it here.
Dropping support for a Python release happens so infrequently, that I thought it was OK.