diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e02f8ab86..5802b960c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,15 +9,15 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-24.04 strategy: matrix: - python-version: [3.8.x, 3.9.x, 3.10.x, 3.11.x, 3.12.x] + python-version: [3.8.x, 3.9.x, 3.10.x, 3.11.x, 3.12.x, 3.13.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} env: @@ -26,14 +26,14 @@ jobs: run: | set -x git submodule update --init --recursive - - name: Lint - if: ${{ matrix.python-version == 3.6 }} - run: | - set -x - pip install pylint - pip install yapf - test/run_pylint.sh - yapf -dr . + # - name: Lint + # if: ${{ matrix.python-version == 3.6 }} + # run: | + # set -x + # pip install pylint + # pip install yapf + # test/run_pylint.sh + # yapf -dr . - name: Test run: | set -x diff --git a/gsutil.py b/gsutil.py index c6107339d..d9cfb2237 100755 --- a/gsutil.py +++ b/gsutil.py @@ -27,12 +27,12 @@ # TODO: gsutil-beta: Distribute a pylint rc file. ver = sys.version_info -if ver.major != 3 or ver.minor < 8 or ver.minor > 12: +if ver.major != 3 or ver.minor < 8 or ver.minor > 13: sys.exit( - "Error: gsutil requires Python version 3.8-3.12, but a different version is installed.\n" + "Error: gsutil supports Python version 3.8-3.12 and allows Python 3.13, but a different version is installed.\n" "You are currently running Python {}.{}\n" "Follow the steps below to resolve this issue:\n" - "\t1. Switch to Python 3.8-3.12 using your Python version manager or install an appropriate version.\n" + "\t1. Switch to Python 3.8-3.13 using your Python version manager or install an appropriate version.\n" "\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) ) diff --git a/setup.py b/setup.py index b95fbbd68..950821994 100755 --- a/setup.py +++ b/setup.py @@ -131,11 +131,12 @@ def make_release_tree(self, base_dir, files): 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Topic :: System :: Filesystems', 'Topic :: Utilities', ], - # Gsutil supports Python 3.8 to 3.12 - python_requires='>=3.8, <=3.12', + # Gsutil allows Python 3.8 to 3.13 + python_requires='>=3.8, <3.14', platforms='any', packages=find_packages( exclude=[