Skip to content

Commit 949de1e

Browse files
update version check to 3.13 (GoogleCloudPlatform#1825)
Remove 3.6 checks for CI
1 parent 5e77ece commit 949de1e

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
strategy:
1414
matrix:
15-
python-version: [3.8.x, 3.9.x, 3.10.x, 3.11.x, 3.12.x]
15+
python-version: [3.9.x, 3.10.x, 3.11.x, 3.12.x, 3.13.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
env:
@@ -26,14 +26,6 @@ jobs:
2626
run: |
2727
set -x
2828
git submodule update --init --recursive
29-
- name: Lint
30-
if: ${{ matrix.python-version == 3.6 }}
31-
run: |
32-
set -x
33-
pip install pylint
34-
pip install yapf
35-
test/run_pylint.sh
36-
yapf -dr .
3729
- name: Test
3830
run: |
3931
set -x

gsutil.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@
2727
# TODO: gsutil-beta: Distribute a pylint rc file.
2828

2929
ver = sys.version_info
30-
if ver.major != 3 or ver.minor < 8 or ver.minor > 12:
30+
if ver.major != 3 or ver.minor < 9 or ver.minor > 13:
3131
sys.exit(
32-
"Error: gsutil requires Python version 3.8-3.12, but a different version is installed.\n"
32+
"Error: gsutil requires Python version 3.9-3.13, but a different version is installed.\n"
3333
"You are currently running Python {}.{}\n"
3434
"Follow the steps below to resolve this issue:\n"
35-
"\t1. Switch to Python 3.8-3.12 using your Python version manager or install an appropriate version.\n"
35+
"\t1. Switch to Python 3.9-3.13 using your Python version manager or install an appropriate version.\n"
3636
"\t2. If you are unsure how to manage Python versions, visit [https://cloud.google.com/storage/docs/gsutil_install#specifications] for detailed instructions.".format(ver.major, ver.minor)
3737
)
3838

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ def make_release_tree(self, base_dir, files):
126126
'Natural Language :: English',
127127
'Programming Language :: Python',
128128
'Programming Language :: Python :: 3',
129-
'Programming Language :: Python :: 3.8',
130129
'Programming Language :: Python :: 3.9',
131130
'Programming Language :: Python :: 3.10',
132131
'Programming Language :: Python :: 3.11',
133132
'Programming Language :: Python :: 3.12',
133+
'Programming Language :: Python :: 3.13',
134134
'Topic :: System :: Filesystems',
135135
'Topic :: Utilities',
136136
],
137-
# Gsutil supports Python 3.8 to 3.12
138-
python_requires='>=3.8, <3.13',
137+
# Gsutil supports Python 3.9 to 3.13
138+
python_requires='>=3.9, <3.14',
139139
platforms='any',
140140
packages=find_packages(
141141
exclude=[

0 commit comments

Comments
 (0)