Adding upstream version 3.3.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
05acda6fb8
commit
dc2cdb17e0
8 changed files with 32 additions and 14 deletions
2
.github/workflows/languages.yaml
vendored
2
.github/workflows/languages.yaml
vendored
|
@ -3,7 +3,7 @@ name: languages
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, test-me-*]
|
branches: [main, test-me-*]
|
||||||
tags:
|
tags: '*'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -3,7 +3,7 @@ name: main
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, test-me-*]
|
branches: [main, test-me-*]
|
||||||
tags:
|
tags: '*'
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
|
@ -10,7 +10,7 @@ repos:
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
- id: requirements-txt-fixer
|
- id: requirements-txt-fixer
|
||||||
- repo: https://github.com/asottile/setup-cfg-fmt
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
||||||
rev: v2.2.0
|
rev: v2.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: setup-cfg-fmt
|
- id: setup-cfg-fmt
|
||||||
- repo: https://github.com/asottile/reorder-python-imports
|
- repo: https://github.com/asottile/reorder-python-imports
|
||||||
|
@ -20,12 +20,12 @@ repos:
|
||||||
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
|
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
|
||||||
args: [--py38-plus, --add-import, 'from __future__ import annotations']
|
args: [--py38-plus, --add-import, 'from __future__ import annotations']
|
||||||
- repo: https://github.com/asottile/add-trailing-comma
|
- repo: https://github.com/asottile/add-trailing-comma
|
||||||
rev: v2.4.0
|
rev: v2.5.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: add-trailing-comma
|
- id: add-trailing-comma
|
||||||
args: [--py36-plus]
|
args: [--py36-plus]
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.4.0
|
rev: v3.6.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py38-plus]
|
args: [--py38-plus]
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
3.3.3 - 2023-06-13
|
||||||
|
==================
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Work around OS packagers setting `--install-dir` / `--bin-dir` in gem settings.
|
||||||
|
- #2905 PR by @jaysoffian.
|
||||||
|
- #2799 issue by @lmilbaum.
|
||||||
|
|
||||||
3.3.2 - 2023-05-17
|
3.3.2 - 2023-05-17
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,8 @@ def _install_ruby(
|
||||||
def install_environment(
|
def install_environment(
|
||||||
prefix: Prefix, version: str, additional_dependencies: Sequence[str],
|
prefix: Prefix, version: str, additional_dependencies: Sequence[str],
|
||||||
) -> None:
|
) -> None:
|
||||||
|
envdir = lang_base.environment_dir(prefix, ENVIRONMENT_DIR, version)
|
||||||
|
|
||||||
if version != 'system': # pragma: win32 no cover
|
if version != 'system': # pragma: win32 no cover
|
||||||
_install_rbenv(prefix, version)
|
_install_rbenv(prefix, version)
|
||||||
with in_env(prefix, version):
|
with in_env(prefix, version):
|
||||||
|
@ -135,6 +137,8 @@ def install_environment(
|
||||||
'gem', 'install',
|
'gem', 'install',
|
||||||
'--no-document', '--no-format-executable',
|
'--no-document', '--no-format-executable',
|
||||||
'--no-user-install',
|
'--no-user-install',
|
||||||
|
'--install-dir', os.path.join(envdir, 'gems'),
|
||||||
|
'--bindir', os.path.join(envdir, 'gems', 'bin'),
|
||||||
*prefix.star('.gem'), *additional_dependencies,
|
*prefix.star('.gem'), *additional_dependencies,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = pre_commit
|
name = pre_commit
|
||||||
version = 3.3.2
|
version = 3.3.3
|
||||||
description = A framework for managing and maintaining multi-language pre-commit hooks.
|
description = A framework for managing and maintaining multi-language pre-commit hooks.
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
|
@ -8,7 +8,7 @@ url = https://github.com/pre-commit/pre-commit
|
||||||
author = Anthony Sottile
|
author = Anthony Sottile
|
||||||
author_email = asottile@umich.edu
|
author_email = asottile@umich.edu
|
||||||
license = MIT
|
license = MIT
|
||||||
license_file = LICENSE
|
license_files = LICENSE
|
||||||
classifiers =
|
classifiers =
|
||||||
License :: OSI Approved :: MIT License
|
License :: OSI Approved :: MIT License
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:focal
|
FROM ubuntu:jammy
|
||||||
RUN : \
|
RUN : \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
|
@ -11,4 +11,4 @@ RUN : \
|
||||||
ENV LANG=C.UTF-8 PATH=/venv/bin:$PATH
|
ENV LANG=C.UTF-8 PATH=/venv/bin:$PATH
|
||||||
RUN : \
|
RUN : \
|
||||||
&& python3 -mvenv /venv \
|
&& python3 -mvenv /venv \
|
||||||
&& pip install --no-cache-dir pip setuptools wheel no-manylinux --upgrade
|
&& pip install --no-cache-dir pip distlib no-manylinux --upgrade
|
||||||
|
|
|
@ -4,7 +4,6 @@ from __future__ import annotations
|
||||||
import argparse
|
import argparse
|
||||||
import base64
|
import base64
|
||||||
import hashlib
|
import hashlib
|
||||||
import importlib.resources
|
|
||||||
import io
|
import io
|
||||||
import os.path
|
import os.path
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -42,8 +41,15 @@ def _add_shim(dest: str) -> None:
|
||||||
with zipfile.ZipFile(bio, 'w') as zipf:
|
with zipfile.ZipFile(bio, 'w') as zipf:
|
||||||
zipf.write(shim, arcname='__main__.py')
|
zipf.write(shim, arcname='__main__.py')
|
||||||
|
|
||||||
|
with tempfile.TemporaryDirectory() as tmpdir:
|
||||||
|
_exit_if_retv(
|
||||||
|
'podman', 'run', '--rm', '--volume', f'{tmpdir}:/out:rw', IMG,
|
||||||
|
'cp', '/venv/lib/python3.10/site-packages/distlib/t32.exe', '/out',
|
||||||
|
)
|
||||||
|
|
||||||
with open(os.path.join(dest, 'python.exe'), 'wb') as f:
|
with open(os.path.join(dest, 'python.exe'), 'wb') as f:
|
||||||
f.write(importlib.resources.read_binary('distlib', 't32.exe'))
|
with open(os.path.join(tmpdir, 't32.exe'), 'rb') as t32:
|
||||||
|
f.write(t32.read())
|
||||||
f.write(b'#!py.exe -3\n')
|
f.write(b'#!py.exe -3\n')
|
||||||
f.write(bio.getvalue())
|
f.write(bio.getvalue())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue