Configure Python develop tool chain
- use pyenv to manage the develop environments
+ install several Python versions (3.7 - 3.10 and 2.7)
+ each version receives its own copies of black, pipenv, and poetry
- add two more virtual environments based off the latest version:
+ "interactive" => default environment optimized for interactive
usage with with black, bpython, and ipython
(also receives accidental `pip install`s)
+ "utils" => hosts various globally available tools/apps
(e.g., mackup and youtube-dl)
- add installation and update scripts for the entire tool chain
- set up completions for bash and zsh
- set up convenient aliases
- configure bpython
- configure poetry
This commit is contained in:
parent
1646011389
commit
0319e614b8
9 changed files with 233 additions and 1 deletions
19
README.md
19
README.md
|
|
@ -24,3 +24,22 @@ Further, `zsh` is set up
|
|||
Otherwise, `~/.profile` is probably *not* sourced.
|
||||
|
||||
**Important**: Don't forget to back up your current dotfiles!
|
||||
|
||||
|
||||
### Python Development Environments
|
||||
|
||||
The develop environments for Python are managed via [`pyenv`](https://github.com/pyenv/pyenv).
|
||||
|
||||
To set them up, run:
|
||||
|
||||
```bash
|
||||
create-or-update-python-envs
|
||||
```
|
||||
|
||||
Several Python versions are installed.
|
||||
Additionally, two `virtualenv`s, called "interactive" and "utils", are also created:
|
||||
- "interactive" is the default environment, and
|
||||
- "utils" hosts globally available utilities
|
||||
(e.g., [youtube-dl](https://github.com/ytdl-org/youtube-dl/)).
|
||||
|
||||
Use `pyenv local ...` to specify a particular Python binary for a project.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue