Skip to content

Commit

Permalink
ran clippy; updated links in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Sep 27, 2019
1 parent 5ef33f7 commit 599634f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ and [Pep 518 (pyproject.toml)](https://www.python.org/dev/peps/pep-0518/), and s

## Installation
- **Windows, Ubuntu, or Debian:** Download and run
[this installer](https://github.com/David-OConnor/pyflow/releases/download/0.1.1/pyflow-0.1.1-x86_64.msi)
[this installer](https://github.com/David-OConnor/pyflow/releases/download/0.1.2/pyflow-0.1.2-x86_64.msi)
or
[this deb](https://github.com/David-OConnor/pyflow/releases/download/0.1.1/pyflow_0.1.1_amd64.deb) .
[this deb](https://github.com/David-OConnor/pyflow/releases/download/0.1.2/pyflow_0.1.2_amd64.deb) .

- **A different Linux distro:** Download this [standalone binary](https://github.com/David-OConnor/pyflow/releases/download/0.1.1/pyflow-linux)
- **A different Linux distro:** Download this [standalone binary](https://github.com/David-OConnor/pyflow/releases/download/0.1.2/pyflow)
and place it somewhere
accessible by the system PATH. For example, `/usr/bin`.

Expand Down
4 changes: 2 additions & 2 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub(crate) fn create_venv(
lib_path: &Path,
name: &str,
) -> Result<(), Box<dyn Error>> {
// While creating the lib path, we're creating the __pypackages__ structure.
// While creating the lib path, we're creating the __pypackages__ structure.
Command::new(py_alias)
.args(&["-m", "venv", name])
.current_dir(lib_path.join("../"))
Expand All @@ -99,7 +99,7 @@ pub(crate) fn create_venv2(
lib_path: &Path,
name: &str,
) -> Result<(), Box<dyn Error>> {
// While creating the lib path, we're creating the __pypackages__ structure.
// While creating the lib path, we're creating the __pypackages__ structure.
Command::new(py_alias)
.args(&["-m", "venv", name])
.current_dir(lib_path.join("../"))
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ impl Config {
for dep in self.reqs.iter() {
result.push_str(&(dep.to_cfg_string() + "\n"));
}
result.push_str("\n"); // trailing newline
result.push_str("\n"); // trailing newline

match fs::write(file, result) {
Ok(_) => util::print_color("Created `pyproject.toml`", Color::Green),
Expand Down
10 changes: 5 additions & 5 deletions src/py_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ fn download(py_install_path: &Path, version: &Version) {
"Linux distro",
&[
(
"2018 or newer (Ubuntu > 18.04, Debian, Kali etc)".to_owned(),
"2018 or newer (Ubuntu 18.04, Debian, Kali etc)".to_owned(),
Os::Ubuntu,
),
("Older (Centos, Redhat, Suse etc)".to_owned(), Os::Centos),
Expand Down Expand Up @@ -407,10 +407,10 @@ pub fn create_venv(
#[cfg(target_os = "linux")]
{
match py_ver.unwrap().minor {
7 => py_name = py_name + ".7",
6 => py_name = py_name + ".6",
5 => py_name = py_name + ".5",
4 => py_name = py_name + ".4",
7 => py_name += ".7",
6 => py_name += ".6",
5 => py_name += ".5",
4 => py_name += ".4",
_ => panic!("Invalid python minor version"),
}
}
Expand Down

0 comments on commit 599634f

Please sign in to comment.