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.9.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

wyvern_ai-0.0.9-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wyvern_ai-0.0.9.tar.gz
Algorithm Hash digest
SHA256 47f1842be146b052867c53dbfe119b7b257d12edf350703a0dabead866926db9
MD5 9e0430a9f601eb9e04259af079ff2b1b
BLAKE2b-256 23d2810d735960e218d608affa8228b843375b4d71496900614e78db61d69848

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wyvern_ai-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 70.1 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

Hashes for wyvern_ai-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 987901ff64d1b2808a7ac7d35098509f9a98de6543071b591bff52df7299a067
MD5 a50867333eb5bc5f698a3f448ee27ea6
BLAKE2b-256 f7fd2343982a178cd4c616e25f787a6817229ac12713e5fbbaa2cc566866b3f0

See more details on using hashes here.

Supported by

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