Skip to content

Commit

Permalink
Add Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Sep 29, 2023
1 parent b686412 commit 05a26e5
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/compare_venv
/public
/target
profile.json
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ description = "virtualenv creation implemented in rust"
repository = "https://github.com/konstin/gourgeist"
license = "MIT OR Apache-2.0"
keywords = ["virtualenv", "venv", "python"]
readme = "Readme.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down Expand Up @@ -38,6 +39,7 @@ opt-level = 3

[profile.profiling]
inherits = "release"
lto = "thin"
debug = true

# The profile that 'cargo dist' will build with
Expand Down
31 changes: 31 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Gourgeist

Gourgeist is a rust library to create python virtual environments. It also has a CLI.

## Rust

```rust
use camino::Utf8PathBuf;
use gourgeist::{create_venv, get_interpreter_info, parse_python_cli};

let location = cli.path.unwrap_or(Utf8PathBuf::from(".venv"));
let python = parse_python_cli(cli.python)?;
let data = get_interpreter_info(&python)?;
create_venv(&location, &python, &data, cli.bare)?;
```

## CLI

Use `python` as base for a virtualenv `.venv`:
```bash
gourgeist
```

Or use custom defaults:
```bash
gourgeist -p 3.11 my_env
```

## Jessie's gourgeist

![Jessie's gourgeist, a pokemon with a jack o'lantern as body](static/gourgeist.png)
5 changes: 5 additions & 0 deletions oranda.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"styles": {
"theme": "axo_light"
}
}
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct Cli {

fn run() -> Result<(), gourgeist::Error> {
let cli = Cli::parse();
let location = cli.path.unwrap_or(Utf8PathBuf::from(".venv-rs"));
let location = cli.path.unwrap_or(Utf8PathBuf::from(".venv"));
let python = parse_python_cli(cli.python)?;
let data = get_interpreter_info(&python)?;
create_venv(&location, &python, &data, cli.bare)?;
Expand Down
Binary file added static/gourgeist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 05a26e5

Please sign in to comment.