Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ repos:
additional_dependencies: [cogapp>=3.5]

- repo: https://github.com/henryiii/flake8-lazy
rev: 3b5e52593dfaec56e6e4a48f237bafcf3d0b83ea # frozen: v0.9.0
rev: 2db69f40494cc912ede966160695ede82eb6ebac # frozen: v0.10.1
hooks:
- id: flake8-lazy
args: ["--apply=set"]
Expand Down
4 changes: 2 additions & 2 deletions cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__lazy_modules__ = {
"argparse",
"cibuildwheel._compat",
"cibuildwheel",
"cibuildwheel._compat.tarfile",
"cibuildwheel.architecture",
"cibuildwheel.ci",
Expand All @@ -11,7 +11,6 @@
"cibuildwheel.platforms",
"cibuildwheel.selector",
"cibuildwheel.typing",
"cibuildwheel.util",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.resources",
Expand All @@ -23,6 +22,7 @@
"tempfile",
"textwrap",
"traceback",
"typing",
}

import argparse
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/architecture.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

__lazy_modules__ = {"platform", "re", "shutil", "subprocess"}
__lazy_modules__ = {"cibuildwheel", "platform", "re", "shutil", "subprocess"}

import platform as platform_module
import re
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/audit.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel",
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/ci.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__lazy_modules__ = {"cibuildwheel.util", "cibuildwheel.util.helpers"}
__lazy_modules__ = {"cibuildwheel.util.helpers"}

import os
import re
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/environment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

__lazy_modules__ = {"bashlex", "bashlex.errors"}
__lazy_modules__ = {"bashlex", "bashlex.errors", "cibuildwheel"}

import dataclasses
from typing import Protocol
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from __future__ import annotations

__lazy_modules__ = {"io", "json", "urllib", "urllib.error", "urllib.request"}
__lazy_modules__ = {"cibuildwheel", "io", "json", "urllib.error", "urllib.request"}

import json
import os
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/frontend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

__lazy_modules__ = {"cibuildwheel.util", "cibuildwheel.util.helpers", "shlex"}
__lazy_modules__ = {"cibuildwheel.util.helpers", "shlex"}

import dataclasses
import shlex
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"cibuildwheel.ci",
"cibuildwheel.errors",
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.helpers",
"contextlib",
"io",
"json",
"pathlib",
"platform",
"shlex",
"shutil",
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"collections",
"configparser",
"difflib",
"packaging",
"packaging.specifiers",
"pathlib",
"shlex",
"textwrap",
"tomllib",
"typing",
}

import collections
Expand Down
2 changes: 2 additions & 0 deletions cibuildwheel/platforms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from __future__ import annotations

__lazy_modules__ = {"cibuildwheel"}

import sys
from typing import Protocol

Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/platforms/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
__lazy_modules__ = {
"build",
"build.env",
"cibuildwheel",
"cibuildwheel.architecture",
"cibuildwheel.audit",
"cibuildwheel.frontend",
Expand All @@ -14,7 +15,6 @@
"cibuildwheel.util.python_build_standalone",
"cibuildwheel.venv",
"filelock",
"packaging",
"packaging.utils",
"pathlib",
"platform",
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/platforms/ios.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel",
"cibuildwheel.audit",
"cibuildwheel.frontend",
"cibuildwheel.logger",
Expand All @@ -12,7 +13,6 @@
"cibuildwheel.util.packaging",
"cibuildwheel.venv",
"filelock",
"packaging",
"packaging.version",
"pathlib",
"platform",
Expand Down
1 change: 1 addition & 0 deletions cibuildwheel/platforms/linux.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel",
"cibuildwheel.audit",
"cibuildwheel.frontend",
"cibuildwheel.logger",
Expand Down
3 changes: 2 additions & 1 deletion cibuildwheel/platforms/macos.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel",
"cibuildwheel.audit",
"cibuildwheel.ci",
"cibuildwheel.frontend",
Expand All @@ -13,13 +14,13 @@
"cibuildwheel.venv",
"filelock",
"inspect",
"packaging",
"packaging.version",
"pathlib",
"platform",
"re",
"shutil",
"subprocess",
"typing",
}

import dataclasses
Expand Down
1 change: 1 addition & 0 deletions cibuildwheel/platforms/pyodide.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel",
"cibuildwheel.architecture",
"cibuildwheel.audit",
"cibuildwheel.frontend",
Expand Down
1 change: 1 addition & 0 deletions cibuildwheel/platforms/windows.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel",
"cibuildwheel.architecture",
"cibuildwheel.audit",
"cibuildwheel.frontend",
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/selector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

__lazy_modules__ = {"bracex", "fnmatch", "itertools", "packaging", "packaging.version"}
__lazy_modules__ = {"bracex", "fnmatch", "itertools", "packaging.version"}

import dataclasses
import itertools
Expand Down
1 change: 0 additions & 1 deletion cibuildwheel/util/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"ssl",
"tarfile",
"typing",
"urllib",
"urllib.error",
"urllib.request",
"zipfile",
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/util/packaging.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.helpers",
"packaging",
"packaging.utils",
"shlex",
}
Expand Down
2 changes: 1 addition & 1 deletion cibuildwheel/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"cibuildwheel.util.file",
"contextlib",
"filelock",
"packaging",
"packaging.markers",
"packaging.requirements",
"packaging.version",
"pathlib",
"shutil",
"tomllib",
"typing",
}

import contextlib
Expand Down
Loading