No project description provided
Project description
Setup
This project is managed by Poetry
Set up PyEnv
Install PyEnv using Brew:
brew install pyenv
Add this to your ~/.zshrc or ~/.bashrc depending on what you use. Documentation copied from here
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
Set up Poetry env
1. Install Poetry
brew install poetry
2. Set up Poetry to create virtual envs in the local directory
poetry config virtualenvs.in-project true
3. Python Version
Poetry apparently has trouble initializing the Python version itself, so you'll have to force it to use the correct version
At the time of this writing, the correct version is 3.10, so just run:
poetry env use 3.10
And it'll switch the python version to the correct one. You only need to do this once
4. Set up the virtual environment
Have poetry set up all of the configs
poetry install
(Optional) 5. Set up auto-poetry shell spawning
Add this to your ~/.zshrc:
This automatically spawns a new poetry shell whenever you cd
into a directory with a poetry env
### Autoomatically activate virtual environment
function auto_poetry_shell {
if [ -f "pyproject.toml" ] ; then
source ./.venv/bin/activate
fi
}
function cd {
builtin cd "$@"
auto_poetry_shell
}
auto_poetry_shell
Set up Pre-commit
brew install pre-commit
pre-commit install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file wyvern_ai-0.0.10.tar.gz
.
File metadata
- Download URL: wyvern_ai-0.0.10.tar.gz
- Upload date:
- Size: 51.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 950cb6a60c87ab6fa81d66111f3686469ad961065108575edf10ce139d0489ce |
|
MD5 | 08684ae046f2d84cade28a1d3d4a0072 |
|
BLAKE2b-256 | b56164cad44b590b19d042036c9a44a5df108fc83af812c358070a406ad2cd28 |
File details
Details for the file wyvern_ai-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: wyvern_ai-0.0.10-py3-none-any.whl
- Upload date:
- Size: 74.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dccaa9ade5cfc07dca4f86ef5af7eb02164259dded15b94ab0b97ca93c6be4a5 |
|
MD5 | a1812fc0f908653b292d82205a5839c3 |
|
BLAKE2b-256 | 740c84b2a9f18dbeabd3fbeb13a930a4641f308793d18773540170517ccf8879 |