| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9c060a3 commit 573f903
14 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,7 @@ python: | |||
| 5 | 5 | - 3.2 | |
| 6 | 6 | - 3.4 | |
| 7 | 7 | - 3.5 | |
| 8 | + - 3.6 | ||
| 8 | 9 | before_install: | |
| 9 | 10 | - sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu/ trusty main universe" | |
| 10 | 11 | - sudo apt-get install software-properties-common | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,6 +57,16 @@ environment: | |||
| 57 | 57 | CONDA_BLD: "C:\\miniconda-64" | |
| 58 | 58 | CONDA_BLD_ARCH: "64" | |
| 59 | 59 | ||
| 60 | + - PYTHON: "C:\\Python36" | ||
| 61 | + CONDA_PY: "36" | ||
| 62 | + CONDA_BLD: "C:\\miniconda-32" | ||
| 63 | + CONDA_BLD_ARCH: "32" | ||
| 64 | + | ||
| 65 | + - PYTHON: "C:\\Python36-x64" | ||
| 66 | + CONDA_PY: "36" | ||
| 67 | + CONDA_BLD: "C:\\miniconda-64" | ||
| 68 | + CONDA_BLD_ARCH: "64" | ||
| 69 | + | ||
| 60 | 70 | install: | |
| 61 | 71 | # install conda and deps | |
| 62 | 72 | - powershell .\ci\install.ps1 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -343,6 +343,7 @@ def _get_interop_filename(): | |||
| 343 | 343 | 'Programming Language :: Python :: 3.3', | |
| 344 | 344 | 'Programming Language :: Python :: 3.4', | |
| 345 | 345 | 'Programming Language :: Python :: 3.5', | |
| 346 | + 'Programming Language :: Python :: 3.6', | ||
| 346 | 347 | 'Programming Language :: C#', | |
| 347 | 348 | 'License :: OSI Approved :: Zope Public License', | |
| 348 | 349 | 'Development Status :: 5 - Production/Stable', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | 27 | public class clrModule | |
| 28 | 28 | { | |
| 29 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 29 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 30 | 30 | [RGiesecke.DllExport.DllExport("PyInit_clr", System.Runtime.InteropServices.CallingConvention.StdCall)] | |
| 31 | 31 | public static IntPtr PyInit_clr() | |
| 32 | 32 | #else | |
@@ -94,7 +94,7 @@ public static void initclr() | |||
| 94 | 94 | #if DEBUG_PRINT | |
| 95 | 95 | System.Console.WriteLine("Could not load Python.Runtime, so sad."); | |
| 96 | 96 | #endif | |
| 97 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 97 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 98 | 98 | return IntPtr.Zero; | |
| 99 | 99 | #else | |
| 100 | 100 | return; | |
@@ -106,7 +106,7 @@ public static void initclr() | |||
| 106 | 106 | // So now we get the PythonEngine and execute the InitExt method on it. | |
| 107 | 107 | var pythonEngineType = pythonRuntime.GetType("Python.Runtime.PythonEngine"); | |
| 108 | 108 | ||
| 109 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 109 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 110 | 110 | return (IntPtr)pythonEngineType.InvokeMember("InitExt", System.Reflection.BindingFlags.InvokeMethod, null, null, null); | |
| 111 | 111 | #else | |
| 112 | 112 | pythonEngineType.InvokeMember("InitExt", System.Reflection.BindingFlags.InvokeMethod, null, null, null); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,7 +84,7 @@ internal static IntPtr GetPythonTypeByAlias(Type op) | |||
| 84 | 84 | { | |
| 85 | 85 | return Runtime.PyUnicodeType; | |
| 86 | 86 | } | |
| 87 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 87 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 88 | 88 | else if ((op == int16Type) || | |
| 89 | 89 | (op == int32Type) || | |
| 90 | 90 | (op == int64Type)) { | |
@@ -450,7 +450,7 @@ static bool ToPrimitive(IntPtr value, Type obType, out Object result, | |||
| 450 | 450 | return true; | |
| 451 | 451 | ||
| 452 | 452 | case TypeCode.Int32: | |
| 453 | - #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 453 | + #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 454 | 454 | // Trickery to support 64-bit platforms. | |
| 455 | 455 | if (IntPtr.Size == 4) | |
| 456 | 456 | { | |
@@ -511,7 +511,7 @@ static bool ToPrimitive(IntPtr value, Type obType, out Object result, | |||
| 511 | 511 | return true; | |
| 512 | 512 | ||
| 513 | 513 | case TypeCode.Byte: | |
| 514 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 514 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 515 | 515 | if (Runtime.PyObject_TypeCheck(value, Runtime.PyBytesType)) | |
| 516 | 516 | { | |
| 517 | 517 | if (Runtime.PyBytes_Size(value) == 1) | |
@@ -556,7 +556,7 @@ static bool ToPrimitive(IntPtr value, Type obType, out Object result, | |||
| 556 | 556 | return true; | |
| 557 | 557 | ||
| 558 | 558 | case TypeCode.SByte: | |
| 559 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 559 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 560 | 560 | if (Runtime.PyObject_TypeCheck(value, Runtime.PyBytesType)) { | |
| 561 | 561 | if (Runtime.PyBytes_Size(value) == 1) { | |
| 562 | 562 | op = Runtime.PyBytes_AS_STRING(value); | |
@@ -599,7 +599,7 @@ static bool ToPrimitive(IntPtr value, Type obType, out Object result, | |||
| 599 | 599 | return true; | |
| 600 | 600 | ||
| 601 | 601 | case TypeCode.Char: | |
| 602 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 602 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 603 | 603 | if (Runtime.PyObject_TypeCheck(value, Runtime.PyBytesType)) { | |
| 604 | 604 | if (Runtime.PyBytes_Size(value) == 1) { | |
| 605 | 605 | op = Runtime.PyBytes_AS_STRING(value); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,7 +102,7 @@ public static IntPtr tp_call(IntPtr ob, IntPtr args, IntPtr kw) | |||
| 102 | 102 | //==================================================================== | |
| 103 | 103 | // Implements __cmp__ for reflected delegate types. | |
| 104 | 104 | //==================================================================== | |
| 105 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 105 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 106 | 106 | public static new IntPtr tp_richcompare(IntPtr ob, IntPtr other, int op) { | |
| 107 | 107 | if (op != Runtime.Py_EQ && op != Runtime.Py_NE) | |
| 108 | 108 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -84,7 +84,7 @@ private Exceptions() | |||
| 84 | 84 | ||
| 85 | 85 | internal static void Initialize() | |
| 86 | 86 | { | |
| 87 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 87 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 88 | 88 | exceptions_module = Runtime.PyImport_ImportModule("builtins"); | |
| 89 | 89 | #else | |
| 90 | 90 | exceptions_module = Runtime.PyImport_ImportModule("exceptions"); | |
@@ -371,15 +371,15 @@ internal static IntPtr RaiseTypeError(string message) | |||
| 371 | 371 | puplic static variables on the Exceptions class filled in from | |
| 372 | 372 | the python class using reflection in Initialize() looked up by | |
| 373 | 373 | name, not posistion. */ | |
| 374 | - #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 374 | + #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 375 | 375 | public static IntPtr BaseException; | |
| 376 | 376 | #endif | |
| 377 | 377 | public static IntPtr Exception; | |
| 378 | 378 | public static IntPtr StopIteration; | |
| 379 | - #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 379 | + #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 380 | 380 | public static IntPtr GeneratorExit; | |
| 381 | 381 | #endif | |
| 382 | - #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 382 | + #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 383 | 383 | public static IntPtr StandardError; | |
| 384 | 384 | #endif | |
| 385 | 385 | public static IntPtr ArithmeticError; | |
@@ -436,7 +436,7 @@ puplic static variables on the Exceptions class filled in from | |||
| 436 | 436 | public static IntPtr SyntaxWarning; | |
| 437 | 437 | public static IntPtr RuntimeWarning; | |
| 438 | 438 | public static IntPtr FutureWarning; | |
| 439 | - #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 439 | + #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 440 | 440 | public static IntPtr ImportWarning; | |
| 441 | 441 | public static IntPtr UnicodeWarning; | |
| 442 | 442 | //PyAPI_DATA(PyObject *) PyExc_BytesWarning; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,7 +14,7 @@ internal class ImportHook | |||
| 14 | 14 | static CLRModule root; | |
| 15 | 15 | static MethodWrapper hook; | |
| 16 | 16 | ||
| 17 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 17 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 18 | 18 | static IntPtr py_clr_module; | |
| 19 | 19 | static IntPtr module_def; | |
| 20 | 20 | #endif | |
@@ -30,7 +30,7 @@ internal static void Initialize() | |||
| 30 | 30 | // but it provides the most "Pythonic" way of dealing with CLR | |
| 31 | 31 | // modules (Python doesn't provide a way to emulate packages). | |
| 32 | 32 | IntPtr dict = Runtime.PyImport_GetModuleDict(); | |
| 33 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 33 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 34 | 34 | IntPtr mod = Runtime.PyImport_ImportModule("builtins"); | |
| 35 | 35 | py_import = Runtime.PyObject_GetAttrString(mod, "__import__"); | |
| 36 | 36 | #else | |
@@ -43,7 +43,7 @@ internal static void Initialize() | |||
| 43 | 43 | ||
| 44 | 44 | root = new CLRModule(); | |
| 45 | 45 | ||
| 46 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 46 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 47 | 47 | // create a python module with the same methods as the clr module-like object | |
| 48 | 48 | module_def = ModuleDefOffset.AllocModuleDef("clr"); | |
| 49 | 49 | py_clr_module = Runtime.PyModule_Create2(module_def, 3); | |
@@ -70,7 +70,7 @@ internal static void Initialize() | |||
| 70 | 70 | ||
| 71 | 71 | internal static void Shutdown() | |
| 72 | 72 | { | |
| 73 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 73 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 74 | 74 | if (0 != Runtime.Py_IsInitialized()) { | |
| 75 | 75 | Runtime.XDecref(py_clr_module); | |
| 76 | 76 | Runtime.XDecref(root.pyHandle); | |
@@ -95,7 +95,7 @@ internal static void Shutdown() | |||
| 95 | 95 | public static IntPtr GetCLRModule(IntPtr? fromList = null) | |
| 96 | 96 | { | |
| 97 | 97 | root.InitializePreload(); | |
| 98 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 98 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 99 | 99 | // update the module dictionary with the contents of the root dictionary | |
| 100 | 100 | root.LoadNames(); | |
| 101 | 101 | IntPtr py_mod_dict = Runtime.PyModule_GetDict(py_clr_module); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -156,7 +156,7 @@ public static int Size() | |||
| 156 | 156 | public static int args = 0; | |
| 157 | 157 | #if (PYTHON25 || PYTHON26 || PYTHON27) | |
| 158 | 158 | public static int message = 0; | |
| 159 | - #elif (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 159 | + #elif (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 160 | 160 | public static int traceback = 0; | |
| 161 | 161 | public static int context = 0; | |
| 162 | 162 | public static int cause = 0; | |
@@ -171,7 +171,7 @@ public static int Size() | |||
| 171 | 171 | } | |
| 172 | 172 | ||
| 173 | 173 | ||
| 174 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 174 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 175 | 175 | [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] | |
| 176 | 176 | internal class BytesOffset | |
| 177 | 177 | { | |
@@ -292,10 +292,10 @@ internal class TypeFlags | |||
| 292 | 292 | /* XXX Reusing reserved constants */ | |
| 293 | 293 | public static int Managed = (1 << 15); // PythonNet specific | |
| 294 | 294 | public static int Subclass = (1 << 16); // PythonNet specific | |
| 295 | - #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 295 | + #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 296 | 296 | public static int HaveIndex = (1 << 17); | |
| 297 | 297 | #endif | |
| 298 | - #if (PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 298 | + #if (PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 299 | 299 | /* Objects support nb_index in PyNumberMethods */ | |
| 300 | 300 | public static int HaveVersionTag = (1 << 18); | |
| 301 | 301 | public static int ValidVersionTag = (1 << 19); | |
@@ -331,7 +331,7 @@ internal class TypeFlags | |||
| 331 | 331 | #endif | |
| 332 | 332 | ||
| 333 | 333 | // Default flags for Python 3 | |
| 334 | - #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 334 | + #if (PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 335 | 335 | public static int Default = ( | |
| 336 | 336 | HaveStacklessExtension | | |
| 337 | 337 | HaveVersionTag); | |
@@ -394,7 +394,7 @@ static Interop() | |||
| 394 | 394 | pmap["nb_add"] = p["BinaryFunc"]; | |
| 395 | 395 | pmap["nb_subtract"] = p["BinaryFunc"]; | |
| 396 | 396 | pmap["nb_multiply"] = p["BinaryFunc"]; | |
| 397 | - #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 397 | + #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 398 | 398 | pmap["nb_divide"] = p["BinaryFunc"]; | |
| 399 | 399 | #endif | |
| 400 | 400 | pmap["nb_remainder"] = p["BinaryFunc"]; | |
@@ -419,7 +419,7 @@ static Interop() | |||
| 419 | 419 | pmap["nb_inplace_add"] = p["BinaryFunc"]; | |
| 420 | 420 | pmap["nb_inplace_subtract"] = p["BinaryFunc"]; | |
| 421 | 421 | pmap["nb_inplace_multiply"] = p["BinaryFunc"]; | |
| 422 | - #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 422 | + #if !(PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 423 | 423 | pmap["nb_inplace_divide"] = p["BinaryFunc"]; | |
| 424 | 424 | #endif | |
| 425 | 425 | pmap["nb_inplace_remainder"] = p["BinaryFunc"]; | |
@@ -433,7 +433,7 @@ static Interop() | |||
| 433 | 433 | pmap["nb_true_divide"] = p["BinaryFunc"]; | |
| 434 | 434 | pmap["nb_inplace_floor_divide"] = p["BinaryFunc"]; | |
| 435 | 435 | pmap["nb_inplace_true_divide"] = p["BinaryFunc"]; | |
| 436 | - #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35) | ||
| 436 | + #if (PYTHON25 || PYTHON26 || PYTHON27 || PYTHON32 || PYTHON33 || PYTHON34 || PYTHON35 || PYTHON36) | ||
| 437 | 437 | pmap["nb_index"] = p["UnaryFunc"]; | |
| 438 | 438 | #endif | |
| 439 | 439 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -143,4 +143,4 @@ public static int magic() { | |||
| 143 | 143 | public static int members = 0; | |
| 144 | 144 | } | |
| 145 | 145 | } | |
| 146 | - #endif | ||
| 146 | + #endif | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments