Skip to content
Open
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
13 changes: 0 additions & 13 deletions cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
from __future__ import annotations

__lazy_modules__ = {
"argparse",
"cibuildwheel._compat",
"cibuildwheel._compat.tarfile",
"cibuildwheel.architecture",
"cibuildwheel.ci",
"cibuildwheel.logger",
"cibuildwheel.options",
"cibuildwheel.platforms",
"cibuildwheel.selector",
"cibuildwheel.typing",
"cibuildwheel.util",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.resources",
"contextlib",
"functools",
"io",
"pathlib",
"shutil",
"tempfile",
"textwrap",
"traceback",
}

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__ = {"platform", "subprocess"}

import platform as platform_module
import re
Expand Down
4 changes: 0 additions & 4 deletions cibuildwheel/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

__lazy_modules__ = {
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"cibuildwheel.venv",
"pathlib",
"subprocess",
}

Expand Down
2 changes: 0 additions & 2 deletions cibuildwheel/ci.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
__lazy_modules__ = {"cibuildwheel.util", "cibuildwheel.util.helpers"}

import os
import re
from enum import Enum
Expand Down
2 changes: 0 additions & 2 deletions cibuildwheel/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
semantically clear and unique.
"""

__lazy_modules__ = {"textwrap"}

import textwrap


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__ = {"json", "urllib", "urllib.error", "urllib.request"}

import json
import time
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__ = {"shlex"}

import dataclasses
import shlex
Expand Down
12 changes: 1 addition & 11 deletions cibuildwheel/logger.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel.ci",
"contextlib",
"functools",
"hashlib",
"humanize",
"io",
"pathlib",
"re",
"textwrap",
}
__lazy_modules__ = {"cibuildwheel.ci", "hashlib", "humanize"}

import codecs
import contextlib
Expand Down
7 changes: 0 additions & 7 deletions cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@

__lazy_modules__ = {
"cibuildwheel.ci",
"cibuildwheel.errors",
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.helpers",
"contextlib",
"io",
"json",
"platform",
"shlex",
"shutil",
"subprocess",
"textwrap",
"uuid",
}

Expand Down
13 changes: 0 additions & 13 deletions cibuildwheel/options.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel.architecture",
"cibuildwheel.environment",
"cibuildwheel.frontend",
"cibuildwheel.logger",
"cibuildwheel.oci_container",
"cibuildwheel.projectfiles",
"cibuildwheel.selector",
"cibuildwheel.typing",
"cibuildwheel.util",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"collections",
"configparser",
"contextlib",
"difflib",
"packaging",
"packaging.specifiers",
"pathlib",
"shlex",
"textwrap",
"tomllib",
}

import collections
Expand Down
10 changes: 0 additions & 10 deletions cibuildwheel/platforms/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,19 @@
__lazy_modules__ = {
"build",
"build.env",
"cibuildwheel.architecture",
"cibuildwheel.audit",
"cibuildwheel.frontend",
"cibuildwheel.logger",
"cibuildwheel.util.cmd",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"cibuildwheel.util.python_build_standalone",
"cibuildwheel.venv",
"filelock",
"packaging",
"packaging.utils",
"pathlib",
"platform",
"pprint",
"re",
"runpy",
"shlex",
"shutil",
"subprocess",
"textwrap",
"typing",
}

import os
Expand Down
8 changes: 0 additions & 8 deletions cibuildwheel/platforms/ios.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,17 @@

__lazy_modules__ = {
"cibuildwheel.audit",
"cibuildwheel.frontend",
"cibuildwheel.logger",
"cibuildwheel.platforms.macos",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"cibuildwheel.venv",
"filelock",
"packaging",
"packaging.version",
"pathlib",
"platform",
"shlex",
"shutil",
"subprocess",
"textwrap",
"typing",
}

import dataclasses
Expand Down
10 changes: 0 additions & 10 deletions cibuildwheel/platforms/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@

__lazy_modules__ = {
"cibuildwheel.audit",
"cibuildwheel.frontend",
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"collections",
"contextlib",
"pathlib",
"shutil",
"subprocess",
"textwrap",
"typing",
}

import contextlib
Expand Down
7 changes: 0 additions & 7 deletions cibuildwheel/platforms/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,15 @@
__lazy_modules__ = {
"cibuildwheel.audit",
"cibuildwheel.ci",
"cibuildwheel.frontend",
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"cibuildwheel.venv",
"filelock",
"inspect",
"packaging",
"packaging.version",
"pathlib",
"platform",
"re",
"shutil",
"subprocess",
}

Expand Down
8 changes: 0 additions & 8 deletions cibuildwheel/platforms/pyodide.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel.architecture",
"cibuildwheel.audit",
"cibuildwheel.frontend",
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"cibuildwheel.util.python_build_standalone",
"cibuildwheel.venv",
"filelock",
"json",
"pathlib",
"shutil",
"subprocess",
"tempfile",
"tomllib",
}

import dataclasses
Expand Down
9 changes: 0 additions & 9 deletions cibuildwheel/platforms/windows.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel.architecture",
"cibuildwheel.audit",
"cibuildwheel.frontend",
"cibuildwheel.logger",
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.file",
"cibuildwheel.util.helpers",
"cibuildwheel.util.packaging",
"cibuildwheel.venv",
"filelock",
"pathlib",
"platform",
"shutil",
"subprocess",
"textwrap",
"typing",
}

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

__lazy_modules__ = {"configparser", "contextlib", "dependency_groups"}
__lazy_modules__ = {"configparser", "dependency_groups"}

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

__lazy_modules__ = {"cibuildwheel.util", "json"}
__lazy_modules__ = {"json"}

import json

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

__lazy_modules__ = {"cibuildwheel.errors", "shlex", "shutil", "subprocess"}
__lazy_modules__ = {"shlex", "subprocess"}

import os
import shlex
Expand Down
13 changes: 1 addition & 12 deletions cibuildwheel/util/file.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
from __future__ import annotations

__lazy_modules__ = {
"certifi",
"cibuildwheel.errors",
"hashlib",
"shutil",
"ssl",
"tarfile",
"typing",
"urllib",
"urllib.request",
"zipfile",
}
__lazy_modules__ = {"certifi", "hashlib", "ssl", "tarfile", "urllib", "urllib.request", "zipfile"}


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

__lazy_modules__ = {"collections", "itertools", "re", "shlex", "textwrap"}
__lazy_modules__ = {"itertools", "shlex"}

import dataclasses
import itertools
Expand Down
8 changes: 1 addition & 7 deletions cibuildwheel/util/packaging.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel.util.cmd",
"cibuildwheel.util.helpers",
"packaging",
"packaging.utils",
"shlex",
}
__lazy_modules__ = {"cibuildwheel.util.cmd", "packaging", "packaging.utils", "shlex"}

import shlex
from dataclasses import dataclass, field
Expand Down
1 change: 0 additions & 1 deletion cibuildwheel/util/python_build_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

__lazy_modules__ = {
"cibuildwheel.util.file",
"cibuildwheel.util.resources",
"filelock",
"fnmatch",
"hashlib",
Expand Down
2 changes: 0 additions & 2 deletions cibuildwheel/util/resources.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from __future__ import annotations

__lazy_modules__ = {"tomllib"}

import functools
import tomllib
from pathlib import Path
Expand Down
5 changes: 0 additions & 5 deletions cibuildwheel/venv.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
from __future__ import annotations

__lazy_modules__ = {
"cibuildwheel.util",
"cibuildwheel.util.cmd",
"cibuildwheel.util.file",
"contextlib",
"filelock",
"packaging",
"packaging.markers",
"packaging.requirements",
"packaging.version",
"pathlib",
"shutil",
"tomllib",
}

import contextlib
Expand Down
Loading