- Notifications
You must be signed in to change notification settings - Fork750
Drop Python 2 support#1158
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
8 commits Select commitHold shift + click to select a range
705ba83
Drop Python 2 support
filmor7a34854
Drop Python 2 tests
filmor048219d
Drop a few more references to the version and fix build on Windows
filmoraad0427
Drop accidentally committed interop
filmore1d6034
Fix the dotted/undotted logic
filmord19b813
Fix a few more tests
filmor6dc7471
Drop more Python 2 checks
filmorcc4211c
Drop tests._compat module entirely
filmorFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 0 additions & 1 deletion.travis.yml
This file contains hidden or 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 |
---|---|---|
@@ -6,7 +6,6 @@ python: | ||
- 3.7 | ||
- 3.6 | ||
- 3.5 | ||
env: | ||
matrix: | ||
1 change: 1 addition & 0 deletionsCHANGELOG.md
This file contains hidden or 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
5 changes: 1 addition & 4 deletionsappveyor.yml
This file contains hidden or 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
23 changes: 6 additions & 17 deletionssetup.py
This file contains hidden or 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 |
---|---|---|
@@ -150,8 +150,6 @@ | ||
def _check_output(*args, **kwargs): | ||
"""Check output wrapper for py2/py3 compatibility""" | ||
output = subprocess.check_output(*args, **kwargs) | ||
return output.decode("ascii") | ||
@@ -255,17 +253,11 @@ def build_extension(self, ext): | ||
# Up to Python 3.2 sys.maxunicode is used to determine the size of | ||
# Py_UNICODE, but from 3.3 onwards Py_UNICODE is a typedef of wchar_t. | ||
filmor marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
import ctypes | ||
unicode_width = ctypes.sizeof(ctypes.c_wchar) | ||
defines = [ | ||
"PYTHON{0}{1}".format(PY_MAJOR, PY_MINOR), | ||
"UCS{0}".format(unicode_width), | ||
] | ||
@@ -274,7 +266,6 @@ def build_extension(self, ext): | ||
if sys.platform != "win32" and (DEVTOOLS == "Mono" or DEVTOOLS == "dotnet"): | ||
on_darwin = sys.platform == "darwin" | ||
# Check if --enable-shared was set when Python was built | ||
enable_shared = sysconfig.get_config_var("Py_ENABLE_SHARED") | ||
@@ -288,6 +279,9 @@ def build_extension(self, ext): | ||
if not enable_shared: | ||
defines.append("PYTHON_WITHOUT_ENABLE_SHARED") | ||
if sys.platform == "win32": | ||
defines.append("WINDOWS") | ||
if hasattr(sys, "abiflags"): | ||
if "d" in sys.abiflags: | ||
defines.append("PYTHON_WITH_PYDEBUG") | ||
@@ -479,10 +473,7 @@ def _find_msbuild_tool(self, tool="msbuild.exe", use_windows_sdk=False): | ||
return path | ||
# Search within registry to find build tools | ||
import winreg | ||
_collect_installed_windows_kits_v10(winreg) | ||
@@ -645,8 +636,6 @@ def run(self): | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: C#", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
13 changes: 0 additions & 13 deletionssrc/clrmodule/ClrModule.cs
This file contains hidden or 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
4 changes: 1 addition & 3 deletionssrc/embed_tests/TestCallbacks.cs
This file contains hidden or 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
26 changes: 0 additions & 26 deletionssrc/embed_tests/TestPythonEngineProperties.cs
This file contains hidden or 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
8 changes: 2 additions & 6 deletionssrc/runtime/CustomMarshaler.cs
This file contains hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.