Skip to content

Commit

Permalink
Merge pull request #666 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Fix typos discovered by codespell
  • Loading branch information
messense authored Nov 6, 2021
2 parents 5019aaa + e954da8 commit db9a5ea
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ jobs:
- uses: actions/setup-python@v2
- uses: psf/black@21.4b0
with:
args: ". --check"
args: ". --check"
- uses: codespell-project/actions-codespell@master
with:
ignore_words_list: crate
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Better cross compiling support for PyO3 binding on Unix in [#454](https://github.com/PyO3/maturin/pull/454)
* Fix s390x architecture support in [#530](https://github.com/PyO3/maturin/pull/530)
* Fix auditwheel panic with s390x wheels in [#532](https://github.com/PyO3/maturin/pull/532)
* Support uploading heterogenous wheels by ravenexp in [#544](https://github.com/PyO3/maturin/pull/544)
* Support uploading heterogeneous wheels by ravenexp in [#544](https://github.com/PyO3/maturin/pull/544)
* Warn about `pyproject.toml` missing maturin version constraint in [#545](https://github.com/PyO3/maturin/pull/545)

## [0.10.4] - 2021-04-28
Expand Down
2 changes: 1 addition & 1 deletion src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn compile_target(
format!("{base}.abi3.so", base = module_name)
}
};
// Change LC_ID_DYLIB to the finaly .so name for macOS targets to avoid linking with
// Change LC_ID_DYLIB to the final .so name for macOS targets to avoid linking with
// non-existent library.
// See https://github.com/PyO3/setuptools-rust/issues/106 for detail
let macos_dylib_install_name = format!("link-args=-Wl,-install_name,@rpath/{}", so_filename);
Expand Down
2 changes: 1 addition & 1 deletion src/cross_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn ends_with(entry: &DirEntry, pat: &str) -> bool {
/// pybuilddir = 'build/lib.%s-%s' % (get_platform(), sys.version_info[:2])
/// ```
///
/// Where get_platform returns a kebab-case formated string containing the os, the architecture and
/// Where get_platform returns a kebab-case formatted string containing the os, the architecture and
/// possibly the os' kernel version (not the case on linux). However, when installed using a package
/// manager, the `_sysconfigdata*.py` file is installed in the `${PREFIX}/lib/python3.Y/` directory.
/// The `_sysconfigdata*.py` is generally in a sub-directory of the location of `libpython3.Y.so`.
Expand Down
2 changes: 1 addition & 1 deletion src/module_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub struct PathWriter {
}

impl PathWriter {
/// Creates a [ModuleWriter] that adds the modul to the current virtualenv
/// Creates a [ModuleWriter] that adds the module to the current virtualenv
pub fn venv(target: &Target, venv_dir: &Path, bridge: &BridgeModel) -> Result<Self> {
let interpreter =
PythonInterpreter::check_executable(target.get_venv_python(&venv_dir), target, bridge)?
Expand Down
2 changes: 1 addition & 1 deletion src/python_interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ impl PythonInterpreter {
Ok(available_versions)
}

/// Checks that given list of executables are all valid python intepreters,
/// Checks that given list of executables are all valid python interpreters,
/// determines the abiflags and versions of those interpreters and
/// returns them as [PythonInterpreter]
pub fn check_executables(
Expand Down
2 changes: 1 addition & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Target {
Arch::Powerpc64 => "powerpc64",
Arch::Powerpc64Le => "powerpc64le",
_ => panic!(
"unsupported architecutre should not have reached get_platform_tag()"
"unsupported architecture should not have reached get_platform_tag()"
),
};
format!(
Expand Down
2 changes: 1 addition & 1 deletion test-crates/pyo3-no-extension-module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["konstin <konstin@mailbox.org>"]
name = "pyo3-no-extension-module"
version = "2.1.0"
description = "Does not use the extension-module feature, thus errorneously linking libpython"
description = "Does not use the extension-module feature, thus erroneously linking libpython"
edition = "2021"

[dependencies]
Expand Down

0 comments on commit db9a5ea

Please sign in to comment.