Skip to content

Commit

Permalink
Add Python 3.11 and 3.12 to Windows and MacOS matrices (#3017)
Browse files Browse the repository at this point in the history
* Standardize Windows Python versions

* Add new Windows socket constants

* Add macos 3.11/3.12

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: John Litborn <[email protected]>
  • Loading branch information
3 people committed Jun 17, 2024
1 parent 451393a commit 53ff38a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
arch: ['x86', 'x64']
lsp: ['']
lsp_extract_file: ['']
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10']
python: ['3.8', '3.9', '3.10', '3.11', '3.12']
continue-on-error: >-
${{
(
Expand Down
13 changes: 13 additions & 0 deletions src/trio/socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
AF_BRIDGE as AF_BRIDGE,
AF_CAN as AF_CAN,
AF_ECONET as AF_ECONET,
AF_HYPERV as AF_HYPERV,
AF_INET as AF_INET,
AF_INET6 as AF_INET6,
AF_IPX as AF_IPX,
Expand Down Expand Up @@ -249,6 +250,17 @@
HCI_DATA_DIR as HCI_DATA_DIR,
HCI_FILTER as HCI_FILTER,
HCI_TIME_STAMP as HCI_TIME_STAMP,
HV_GUID_BROADCAST as HV_GUID_BROADCAST,
HV_GUID_CHILDREN as HV_GUID_CHILDREN,
HV_GUID_LOOPBACK as HV_GUID_LOOPBACK,
HV_GUID_PARENT as HV_GUID_PARENT,
HV_GUID_WILDCARD as HV_GUID_WILDCARD,
HV_GUID_ZERO as HV_GUID_ZERO,
HV_PROTOCOL_RAW as HV_PROTOCOL_RAW,
HVSOCKET_ADDRESS_FLAG_PASSTHRU as HVSOCKET_ADDRESS_FLAG_PASSTHRU,
HVSOCKET_CONNECT_TIMEOUT as HVSOCKET_CONNECT_TIMEOUT,
HVSOCKET_CONNECT_TIMEOUT_MAX as HVSOCKET_CONNECT_TIMEOUT_MAX,
HVSOCKET_CONNECTED_SUSPEND as HVSOCKET_CONNECTED_SUSPEND,
INADDR_ALLHOSTS_GROUP as INADDR_ALLHOSTS_GROUP,
INADDR_ANY as INADDR_ANY,
INADDR_BROADCAST as INADDR_BROADCAST,
Expand Down Expand Up @@ -501,6 +513,7 @@
SYSPROTO_CONTROL as SYSPROTO_CONTROL,
TCP_CC_INFO as TCP_CC_INFO,
TCP_CONGESTION as TCP_CONGESTION,
TCP_CONNECTION_INFO as TCP_CONNECTION_INFO,
TCP_CORK as TCP_CORK,
TCP_DEFER_ACCEPT as TCP_DEFER_ACCEPT,
TCP_FASTOPEN as TCP_FASTOPEN,
Expand Down

0 comments on commit 53ff38a

Please sign in to comment.