]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
adjust py312 fix
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Jul 2023 12:09:06 +0000 (08:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Jul 2023 12:12:02 +0000 (08:12 -0400)
- version detection should anticipate pyhex version on 3.12.0.0
- github actions has removed py2.7 totally
- put changelog in correct place / tags
- not sure what to do for py2.7 wheels for 1.4.   might have to just go
  with there being no py2.7 wheel on pypi

Change-Id: I3f0b3fa1adc3f0c4e6bb62f31e6494eeda88ba78

.github/workflows/run-on-pr.yaml
.github/workflows/run-test.yaml
doc/build/changelog/unreleased_14/py312.rst [moved from doc/build/changelog/unreleased_20/py312.rst with 72% similarity]
lib/sqlalchemy/cextension/resultproxy.c

index 214c79b2c32d4a736d80e996a4931a6b9dda13c2..9a944b01391e1cf6045b325646a583682687b3ae 100644 (file)
@@ -26,7 +26,6 @@ jobs:
           - "ubuntu-latest"
           - "ubuntu-20.04"
         python-version:
-          - "2.7"
           - "3.10"
         build-type:
           - "cext"
@@ -34,9 +33,6 @@ jobs:
         architecture:
           - x64
         exclude:
-          # ubuntu-latest does not have: py27, py36
-          - os: "ubuntu-latest"
-            python-version: "2.7"
           # ubuntu-20.04 does not need to test what ubuntu-latest supports
           - os: "ubuntu-20.04"
             python-version: "3.10"
index 2a08090ef97e82adbfd92b24358caa45e0a87193..a2d728263719d460fec2d5b20062b20b5882bd07 100644 (file)
@@ -32,7 +32,6 @@ jobs:
           - "windows-latest"
           - "macos-latest"
         python-version:
-          - "2.7"
           - "3.6"
           - "3.7"
           - "3.8"
@@ -60,10 +59,6 @@ jobs:
             pytest-args: "--dbdriver pysqlite --dbdriver aiosqlite"
 
         exclude:
-          # c-extensions fail to build on windows for python 2.7
-          - os: "windows-latest"
-            python-version: "2.7"
-            build-type: "cext"
           # linux and osx do not have x86 python
           - os: "ubuntu-latest"
             architecture: x86
@@ -72,8 +67,6 @@ jobs:
           - os: "macos-latest"
             architecture: x86
           # ubuntu-latest does not have: py27, py36
-          - os: "ubuntu-latest"
-            python-version: "2.7"
           - os: "ubuntu-latest"
             python-version: "3.6"
           # ubuntu-20.04 does not need to test what ubuntu-latest supports
similarity index 72%
rename from doc/build/changelog/unreleased_20/py312.rst
rename to doc/build/changelog/unreleased_14/py312.rst
index 330cebb643488d379355dff37e6cec41d9087148..9a7a73df46f893b8e79415eed8e111b3ddacebad 100644 (file)
@@ -1,4 +1,4 @@
 .. change::
-    :tags: installation
+    :tags: platform, usecase
 
     Compatibility improvements to work fully with Python 3.12
index 20f1536529f6b15ad3ee9eccb65248d9c71aa292..00eddc4475baf5c01e63053067ebc10b70d98545 100644 (file)
@@ -21,7 +21,7 @@ typedef Py_ssize_t (*lenfunc)(PyObject *);
 typedef intargfunc ssizeargfunc;
 #endif
 
-#if PY_VERSION_HEX > 0x030c0000
+#if PY_VERSION_HEX >= 0x030c0000
 #    define PY_RAISE_SLICE_FOR_MAPPING PyExc_KeyError
 #else
 #    define PY_RAISE_SLICE_FOR_MAPPING PyExc_TypeError