pyenv.pyenv/README.md
real-yfprojects d428be59ec
Write README.
* README.md
2023-06-06 16:45:22 +02:00

62 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pyenv-link
A [pyenv](https://github.com/pyenv/pyenv) plugin for linking python versions and virtual envs into your pyenv root.
This plugin recommends the [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv/) plugin.
## Installation
This will install the latest development version of *pyenv-link* into
the `$(pyenv root)/plugins/pyenv-link` directory.
**Important note:** If you installed pyenv into a non-standard directory, make
sure that you clone this repo into the 'plugins' directory of wherever you
installed into.
From inside that directory you can:
- Check out a specific release tag.
- Get the latest development release by running `git pull` to download the
latest changes.
```bash
git clone https://github.com/real-yfprojects/pyenv-link.git $(pyenv root)/plugins/pyenv-link
```
For the Fish shell:
```fish
git clone https://github.com/real-yfprojects/pyenv-link.git (pyenv root)/plugins/pyenv-link
```
## Usage
Make an arbitrary virtualenv available through pyenv. This automatically guesses a fitting name from the prompt, the directory name or the location of the venv.
```console
$ pyenv link version .venv
Linked new version named myproject-py3.10
```
You can also specify a name to use for the venv.
```console
$ pyenv link version .venv myname
Linked new version named myname
```
Now you can make pyenv activate/use the venv automatically:
```console
$ pyenv local myproject-py3.10
```
## Contributing
This project is developed in an open-source, community-driven way, as a voluntary effort in the authors free time.
All kinds of contributions are greatly appreciated. This not only includes implementing new features but also refactoring work or improvements to the documentation.
Bug reports, feature requests and other suggestions are welcome too.
### TODO
- [ ] Tests
- [ ] CI