Skip to content

Commit e33fe06

Browse files
committed
MAINT: fix typos
1 parent a4133d2 commit e33fe06

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

mesonpy/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _map_to_wheel(
175175
relpath = os.path.relpath(dirsrc, src)
176176
if relpath in exclude_dirs:
177177
dirnames.remove(name)
178-
# sort to process directories determninistically
178+
# sort to process directories deterministically
179179
dirnames.sort()
180180
for name in sorted(filenames):
181181
filesrc = os.path.join(root, name)
@@ -223,7 +223,7 @@ def _use_ansi_escapes() -> bool:
223223
return False
224224

225225

226-
def _log(string: str , **kwargs: Any) -> None:
226+
def _log(string: str, **kwargs: Any) -> None:
227227
if not _use_ansi_escapes():
228228
string = style.strip(string)
229229
print(string, **kwargs)
@@ -462,7 +462,7 @@ def _install_path(self, wheel_file: mesonpy._wheelfile.WheelFile, origin: Path,
462462
'setting the DLL load path or preloading. See the documentation for '
463463
'the "tool.meson-python.allow-windows-internal-shared-libs" option.')
464464

465-
# When an executable, libray, or Python extension module is
465+
# When an executable, library, or Python extension module is
466466
# dynamically linked to a library built as part of the project,
467467
# Meson adds a library load path to it pointing to the build
468468
# directory, in the form of a relative RPATH entry. meson-python
@@ -1209,7 +1209,7 @@ def _get_meson_command(
12091209
# The meson Python package is a dependency of the meson-python Python
12101210
# package, however, it may occur that the meson Python package is installed
12111211
# but the corresponding meson command is not available in $PATH. Implement
1212-
# a runtime check to verify that the build environment is setup correcly.
1212+
# a runtime check to verify that the build environment is setup correctly.
12131213
try:
12141214
r = subprocess.run(cmd + ['--version'], text=True, capture_output=True)
12151215
except FileNotFoundError as err:

mesonpy/_editable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def walk(src: str, exclude_files: Set[str], exclude_dirs: Set[str]) -> Iterator[
225225
relpath = os.path.relpath(dirsrc, src)
226226
if relpath in exclude_dirs:
227227
dirnames.remove(name)
228-
# sort to process directories determninistically
228+
# sort to process directories deterministically
229229
dirnames.sort()
230230
for name in sorted(filenames):
231231
filesrc = os.path.join(root, name)

mesonpy/_tags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _get_macosx_platform_tag() -> str:
9696
version = tuple(map(int, ver.split('.')))[:2]
9797

9898
# Python built with older macOS SDK on macOS 11, reports an
99-
# unexising macOS 10.16 version instead of the real version.
99+
# nonexistent macOS 10.16 version instead of the real version.
100100
#
101101
# The packaging module introduced a workaround
102102
# https://github.com/pypa/packaging/commit/67c4a2820c549070bbfc4bfbf5e2a250075048da
@@ -125,7 +125,7 @@ def _get_macosx_platform_tag() -> str:
125125
major, minor = version
126126

127127
if major >= 11:
128-
# For macOS reelases up to 10.15, the major version number is
128+
# For macOS releases up to 10.15, the major version number is
129129
# actually part of the OS name and the minor version is the
130130
# actual OS release. Starting with macOS 11, the major
131131
# version number is the OS release and the minor version is
@@ -153,7 +153,7 @@ def _get_ios_platform_tag() -> str:
153153

154154
# Although _multiarch is an internal implementation detail, it's a core part
155155
# of how CPython is implemented on iOS; this attribute is also relied upon
156-
# by `packaging` as part of tag determiniation.
156+
# by `packaging` as part of tag determination.
157157
multiarch = sys.implementation._multiarch.replace('-', '_')
158158

159159
return f'ios_{version[0]}_{version[1]}_{multiarch}'

mesonpy/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def chdir(path: Path) -> Iterator[Path]:
3333

3434
@contextlib.contextmanager
3535
def create_targz(path: Path) -> Iterator[tarfile.TarFile]:
36-
"""Opens a .tar.gz file in the file system for edition.."""
36+
"""Opens a .tar.gz file in the file system for edition."""
3737

3838
os.makedirs(os.path.dirname(path), exist_ok=True)
3939
file = typing.cast(IO[bytes], gzip.GzipFile(

0 commit comments

Comments
 (0)