Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit 061ff97

Browse files
authored
BLD: Python 3.11 wheels (#192)
1 parent bbc87a5 commit 061ff97

File tree

5 files changed

+50
-7
lines changed

5 files changed

+50
-7
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
global:
99
- REPO_DIR=pandas
1010
# on release change this to a version
11-
- BUILD_COMMIT="v1.4.4"
11+
- BUILD_COMMIT="v1.5.0rc0"
1212
- UNICODE_WIDTH=32
1313
- PLAT=aarch64
1414
- NP_BUILD_DEP="numpy==1.17.3"
@@ -39,6 +39,13 @@ jobs:
3939
- NP_TEST_DEP="numpy==1.21.2"
4040
# Xenial is EOL and the pip there doesn't support python 3.10
4141
- DOCKER_TEST_IMAGE="multibuild/focal_arm64v8"
42+
- os: linux
43+
env:
44+
- MB_PYTHON_VERSION="3.11"
45+
- NP_BUILD_DEP="numpy==1.23.2"
46+
- NP_TEST_DEP="numpy==1.23.2"
47+
# Xenial is EOL and the pip there doesn't support python 3.10
48+
- DOCKER_TEST_IMAGE="multibuild/focal_arm64v8"
4249
before_install:
4350
# See:
4451
# https://github.com/travis-ci/travis-ci/issues/8920#issuecomment-352661024

azure-pipelines.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
PYTHON_ARCH: "x64"
4545
NP_BUILD_DEP: "1.21.3"
4646
NIGHTLY_BUILD: "true"
47+
py_3.11_64:
48+
PYTHON_VERSION: "3.11-dev"
49+
PYTHON_ARCH: "x64"
50+
NP_BUILD_DEP: "1.23.2"
51+
NIGHTLY_BUILD: "true"
4752

4853
- template: azure/posix.yml
4954
parameters:
@@ -66,7 +71,12 @@ jobs:
6671
NP_BUILD_DEP: "numpy==1.21.2"
6772
DOCKER_TEST_IMAGE: "multibuild/focal_{PLAT}"
6873
NIGHTLY_BUILD: "true"
69-
74+
py_3.11_64:
75+
MB_PYTHON_VERSION: "3.11"
76+
MB_ML_VER: "2014"
77+
NP_BUILD_DEP: "numpy==1.23.2"
78+
DOCKER_TEST_IMAGE: "multibuild/focal_{PLAT}"
79+
NIGHTLY_BUILD: "true"
7080

7181
- template: azure/posix.yml
7282
parameters:
@@ -101,3 +111,15 @@ jobs:
101111
PLAT: universal2
102112
NP_BUILD_DEP: "numpy==1.21.3"
103113
NIGHTLY_BUILD: "true"
114+
py_3.11_64:
115+
MB_PYTHON_VERSION: "3.11-dev"
116+
PLAT: "x86_64"
117+
NP_BUILD_DEP: "numpy==1.23.2"
118+
NIGHTLY_BUILD: "true"
119+
MB_PYTHON_OSX_VER: 10.9
120+
py_3.11_universal2:
121+
MB_PYTHON_VERSION: "3.11-dev"
122+
PLAT: universal2
123+
NP_BUILD_DEP: "numpy==1.23.2"
124+
NIGHTLY_BUILD: "true"
125+
MB_PYTHON_OSX_VER: 10.9

azure/posix.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
vmImage: ${{ parameters.vmImage }}
1010
variables:
1111
REPO_DIR: "pandas"
12-
BUILD_COMMIT: "v1.4.4"
12+
BUILD_COMMIT: "v1.5.0rc0"
1313
PLAT: "x86_64"
1414
NP_BUILD_DEP: "numpy==1.17.3"
1515
CYTHON_BUILD_DEP: "cython==0.29.32"
@@ -28,7 +28,9 @@ jobs:
2828
- task: UsePythonVersion@0
2929
inputs:
3030
versionSpec: $(MB_PYTHON_VERSION)
31+
allowUnstable: true
3132
displayName: Set python version
33+
condition: not(eq(variables['MB_PYTHON_VERSION'], '3.11'))
3234

3335
- bash: |
3436
set -e

azure/windows.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
pool:
99
vmImage: ${{ parameters.vmImage }}
1010
variables:
11-
BUILD_COMMIT: "v1.4.4"
11+
BUILD_COMMIT: "v1.5.0rc0"
1212
NP_BUILD_DEP: "1.17.3"
1313
CYTHON_BUILD_DEP: "0.29.32"
1414
NIGHTLY_BUILD_COMMIT: "main"
@@ -27,6 +27,7 @@ jobs:
2727
inputs:
2828
versionSpec: $(PYTHON_VERSION)
2929
architecture: $(PYTHON_ARCH)
30+
allowUnstable: true
3031
displayName: Set python version
3132

3233
- bash: |
@@ -91,9 +92,20 @@ jobs:
9192
displayName: Install wheel and test
9293
condition: eq(variables['SKIP_BUILD'], 'false')
9394
95+
- bash: |
96+
if [[ $PYTHON_VERSION == *"-dev"* ]]; then
97+
stripped_ver=$(echo $PYTHON_VERSION | sed -e "s/dev/rc/g")
98+
echo $stripped_ver
99+
echo "##vso[task.setvariable variable=STRIPPED_PYTHON_VERSION]$stripped_ver"
100+
else
101+
echo "##vso[task.setvariable variable=STRIPPED_PYTHON_VERSION]$PYTHON_VERSION"
102+
fi
103+
displayName: Strip dev postfix from PYTHON_VERSION for pre-releases
104+
condition: eq(variables['SKIP_BUILD'], 'false')
105+
94106
- script: |
95-
docker pull python:$(PYTHON_VERSION)-windowsservercore
96-
docker run -v %cd%:c:\pandas python:$(PYTHON_VERSION)-windowsservercore /pandas/check_windows_dlls.bat
107+
docker pull python:$(STRIPPED_PYTHON_VERSION)-windowsservercore
108+
docker run -v %cd%:c:\pandas python:$(STRIPPED_PYTHON_VERSION)-windowsservercore /pandas/check_windows_dlls.bat
97109
displayName: Ensure wheel imports correctly
98110
# No Windows images for x86
99111
condition: and(eq(variables['SKIP_BUILD'], 'false'), eq(variables['PYTHON_ARCH'], 'x64'))

0 commit comments

Comments
 (0)