Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wyvern_ai-0.0.7.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wyvern_ai-0.0.7-py3-none-any.whl (69.9 kB view details)

Uploaded Python 3

File details

Details for the file wyvern_ai-0.0.7.tar.gz.

File metadata

  • Download URL: wyvern_ai-0.0.7.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for wyvern_ai-0.0.7.tar.gz
Algorithm Hash digest
SHA256 a6efceaaf8de68ca68b230c86d5cbca5301e01aae8ea3102aa1a5dc9b4f9c422
MD5 7e448fb7983d0a3bebeb08f79d42c426
BLAKE2b-256 cffc8f92e75a5a32e1d976a895bbc9bce414f51951a510ff1cc8a0efbb5cc3b3

See more details on using hashes here.

File details

Details for the file wyvern_ai-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: wyvern_ai-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 69.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.5.0

File hashes

Hashes for wyvern_ai-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8d46607fd2278ba80e7999d5d75faafcc9f62c02b0d7c344e205ab2dfa6edef6
MD5 d5e60020351a397b9eec305cecb72a96
BLAKE2b-256 7a9f503b36bda7ec2d31eb4a0e2298fb7da65b28b4d1219fb0396d9d485ba1a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page