Skip to content

Commit

Permalink
Merge pull request #280 from pre-commit-ci/3-13
Browse files Browse the repository at this point in the history
add python 3.13 and remove python 3.8
  • Loading branch information
asottile authored Oct 11, 2024
2 parents b365cc9 + 5f9fb19 commit d1d12eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,12 @@ RUN : \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
pypy3-dev \
python3.8-dev \
python3.8-distutils \
python3.9-dev \
python3.9-distutils \
python3.11-dev \
python3.11-distutils \
python3.12-dev \
python3.13-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& :
Expand All @@ -74,7 +73,7 @@ ENV \
XDG_DATA_HOME=/tmp/data
COPY requirements.txt /tmp/requirements.txt
RUN : \
&& curl --silent --location --output /tmp/virtualenv.pyz https://bootstrap.pypa.io/virtualenv/3.8/virtualenv.pyz \
&& curl --silent --location --output /tmp/virtualenv.pyz https://bootstrap.pypa.io/virtualenv/3.9/virtualenv.pyz \
&& python3.12 /tmp/virtualenv.pyz /venv \
&& pip install --requirement /tmp/requirements.txt \
&& rm -rf "$XDG_DATA_HOME" /tmp/virtualenv.pyz \
Expand Down
4 changes: 2 additions & 2 deletions bin/_info
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ def main() -> int:
print('others')
print()
with _console():
_call('python3.8', '--version', '--version')
print()
_call('python3.9', '--version', '--version')
print()
_call('python3.10', '--version', '--version')
print()
_call('python3.11', '--version', '--version')
print()
_call('python3.13', '--version', '--version')
print()
_call('pypy3', '--version', '--version')
print()

Expand Down
2 changes: 1 addition & 1 deletion build/seed-virtualenv-cache
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main() -> int:
subprocess.check_call(('virtualenv', '/tmp/v', '-p', python))
shutil.rmtree('/tmp/v')
# additionally seed the `python3 -m` executable
subprocess.check_call(('python3', '-mvirtualenv', '/tmp/v', '-ppython3.8'))
subprocess.check_call(('python3', '-mvirtualenv', '/tmp/v', '-ppython3.9'))
shutil.rmtree('/tmp/v')
return 0

Expand Down

0 comments on commit d1d12eb

Please sign in to comment.