Skip to content

Commit 37690cf

Browse files
committed
MAINT: fix typos
1 parent 908fdb5 commit 37690cf

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
@@ -173,7 +173,7 @@ def _map_to_wheel(
173173
relpath = os.path.relpath(dirsrc, src)
174174
if relpath in exclude_dirs:
175175
dirnames.remove(name)
176-
# sort to process directories determninistically
176+
# sort to process directories deterministically
177177
dirnames.sort()
178178
for name in sorted(filenames):
179179
filesrc = os.path.join(root, name)
@@ -221,7 +221,7 @@ def _use_ansi_escapes() -> bool:
221221
return False
222222

223223

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

463-
# When an executable, libray, or Python extension module is
463+
# When an executable, library, or Python extension module is
464464
# dynamically linked to a library built as part of the project,
465465
# Meson adds a library load path to it pointing to the build
466466
# directory, in the form of a relative RPATH entry. meson-python
@@ -1210,7 +1210,7 @@ def _get_meson_command(
12101210
# The meson Python package is a dependency of the meson-python Python
12111211
# package, however, it may occur that the meson Python package is installed
12121212
# but the corresponding meson command is not available in $PATH. Implement
1213-
# a runtime check to verify that the build environment is setup correcly.
1213+
# a runtime check to verify that the build environment is setup correctly.
12141214
try:
12151215
r = subprocess.run(cmd + ['--version'], text=True, capture_output=True)
12161216
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)