Skip to content

Running with pip package no longer works #465

@Shillaker

Description

@Shillaker

Context

We should be able to run:

mkdir /tmp/bv-test
cd /tmp/bv-test
python3 -m venv venv
source venv/bin/activate

pip3 install boaviztapi
uvicorn boaviztapi.main:app --host=localhost --port 5000

However, this gives an error:

File "/tmp/bv-test/venv/lib/python3.13/site-packages/boaviztapi/main.py", line 57, in <module>
  version = get_version_from_pyproject()
File "/tmp/bv-test/venv/lib/python3.13/site-packages/boaviztapi/utils/get_version.py", line 19, in get_version_from_pyproject
  raise FileNotFoundError("pyproject.toml not found in expected locations")

Fix

Make pyproject.toml available to get_version.py from pip install.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions