Skip to content

Commit 3968484

Browse files
phofllithomas1
andauthored
CI: Change development python version to 3.10 (#51133)
* CI: Change development python version to 3.10 * Update checks * Remove strict * Remove strict * Fixes * Add dt * Switch python to 3.9 * Remove * Fix * Try attribute * Adjust * Fix mypy * Try fixing doc build * Fix mypy * Fix stubtest * Remove workflow file * Rename back * Update * Rename * Rename * Change python version * Remove * Fix doc errors * Remove pypy * Update ci/deps/actions-pypy-39.yaml Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com> * Revert pypy removal * Remove again * Fix * Change to 3.9 * Address --------- Co-authored-by: Thomas Li <47963215+lithomas1@users.noreply.github.com>
1 parent d182a34 commit 3968484

29 files changed

+71
-104
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
image: ubuntu-2004:2022.04.1
77
resource_class: arm.large
88
environment:
9-
ENV_FILE: ci/deps/circle-38-arm64.yaml
9+
ENV_FILE: ci/deps/circle-39-arm64.yaml
1010
PYTEST_WORKERS: auto
1111
PATTERN: "not single_cpu and not slow and not network and not clipboard and not arm_slow and not db"
1212
PYTEST_TARGET: "pandas"

.github/workflows/code-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
id: setup_python
180180
uses: actions/setup-python@v4
181181
with:
182-
python-version: '3.8'
182+
python-version: '3.10'
183183
cache: 'pip'
184184
cache-dependency-path: 'requirements-dev.txt'
185185

.github/workflows/package-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
id: setup_python
3939
uses: actions/setup-python@v4
4040
with:
41-
python-version: '3.8'
41+
python-version: '3.10'
4242

4343
- name: Install required dependencies
4444
run: |

.github/workflows/sdist.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.8", "3.9", "3.10", "3.11"]
32+
python-version: ["3.9", "3.10", "3.11"]
3333
concurrency:
3434
# https://hub.490633.xyzmunity/t/concurrecy-not-work-for-push/183068/7
3535
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{matrix.python-version}}-sdist
@@ -80,8 +80,6 @@ jobs:
8080
- name: Force oldest supported NumPy
8181
run: |
8282
case "${{matrix.python-version}}" in
83-
3.8)
84-
pip install numpy==1.21.6 ;;
8583
3.9)
8684
pip install numpy==1.21.6 ;;
8785
3.10)

.github/workflows/unit-tests.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ jobs:
2626
timeout-minutes: 180
2727
strategy:
2828
matrix:
29-
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
29+
env_file: [actions-39.yaml, actions-310.yaml, actions-311.yaml]
3030
# Prevent the include jobs from overriding other jobs
3131
pattern: [""]
3232
include:
3333
- name: "Downstream Compat"
34-
env_file: actions-38-downstream_compat.yaml
34+
env_file: actions-39-downstream_compat.yaml
3535
pattern: "not slow and not network and not single_cpu"
3636
pytest_target: "pandas/tests/test_downstream.py"
3737
- name: "Minimum Versions"
38-
env_file: actions-38-minimum_versions.yaml
38+
env_file: actions-39-minimum_versions.yaml
3939
pattern: "not slow and not network and not single_cpu"
4040
- name: "Locale: it_IT"
41-
env_file: actions-38.yaml
41+
env_file: actions-310.yaml
4242
pattern: "not slow and not network and not single_cpu"
4343
extra_apt: "language-pack-it"
4444
# Use the utf8 version as the default, it has no bad side-effect.
@@ -48,7 +48,7 @@ jobs:
4848
# It will be temporarily activated during tests with locale.setlocale
4949
extra_loc: "it_IT"
5050
- name: "Locale: zh_CN"
51-
env_file: actions-38.yaml
51+
env_file: actions-310.yaml
5252
pattern: "not slow and not network and not single_cpu"
5353
extra_apt: "language-pack-zh-hans"
5454
# Use the utf8 version as the default, it has no bad side-effect.
@@ -62,7 +62,7 @@ jobs:
6262
pattern: "not slow and not network and not single_cpu"
6363
pandas_copy_on_write: "1"
6464
- name: "Pypy"
65-
env_file: actions-pypy-38.yaml
65+
env_file: actions-pypy-39.yaml
6666
pattern: "not slow and not network and not single_cpu"
6767
test_args: "--max-worker-restart 0"
6868
- name: "Numpy Dev"
@@ -173,7 +173,7 @@ jobs:
173173
strategy:
174174
matrix:
175175
os: [macos-latest, windows-latest]
176-
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
176+
env_file: [actions-39.yaml, actions-310.yaml, actions-311.yaml]
177177
fail-fast: false
178178
runs-on: ${{ matrix.os }}
179179
name: ${{ format('{0} {1}', matrix.os, matrix.env_file) }}
@@ -227,7 +227,7 @@ jobs:
227227
fi
228228
- name: Build environment and Run Tests
229229
run: |
230-
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev
230+
/opt/python/cp39-cp39/bin/python -m venv ~/virtualenvs/pandas-dev
231231
. ~/virtualenvs/pandas-dev/bin/activate
232232
python -m pip install --no-cache-dir --no-deps -U pip wheel setuptools
233233
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 hypothesis>=6.46.1

.github/workflows/wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- [windows-2019, win_amd64]
5656
- [windows-2019, win32]
5757
# TODO: support PyPy?
58-
python: [["cp38", "3.8"], ["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"]]# "pp38", "pp39"]
58+
python: [["cp39", "3.9"], ["cp310", "3.10"], ["cp311", "3.11"]]# "pp39"]
5959
env:
6060
IS_PUSH: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
6161
IS_SCHEDULE_DISPATCH: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
@@ -152,7 +152,7 @@ jobs:
152152
auto-update-conda: true
153153
# Really doesn't matter what version we upload with
154154
# just the version we test with
155-
python-version: '3.8'
155+
python-version: '3.10'
156156
channels: conda-forge
157157
channel-priority: true
158158
# mamba fails to solve, also we really don't need this since we're just installing python

ci/deps/actions-38.yaml

Lines changed: 0 additions & 60 deletions
This file was deleted.

ci/deps/actions-38-downstream_compat.yaml renamed to ci/deps/actions-39-downstream_compat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: pandas-dev
33
channels:
44
- conda-forge
55
dependencies:
6-
- python=3.8
6+
- python=3.9
77

88
# build dependencies
99
- versioneer[toml]

ci/deps/actions-38-minimum_versions.yaml renamed to ci/deps/actions-39-minimum_versions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: pandas-dev
44
channels:
55
- conda-forge
66
dependencies:
7-
- python=3.8.0
7+
- python=3.9
88

99
# build dependencies
1010
- versioneer[toml]

ci/deps/actions-pypy-38.yaml renamed to ci/deps/actions-pypy-39.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ dependencies:
55
# TODO: Add the rest of the dependencies in here
66
# once the other plentiful failures/segfaults
77
# with base pandas has been dealt with
8-
- python=3.8[build=*_pypy] # TODO: use this once pypy3.8 is available
8+
- python=3.9[build=*_pypy]
99

1010
# build dependencies
1111
- versioneer[toml]

0 commit comments

Comments
 (0)