pipfile editable package location

Viewed 3314

I'm able to have the source files I'm working on installed to an editable package directory following the instructions here.

So my pipenv looks like

[dev-packages]
pytest = "*"
my-package= {editable = true, path = "."}

This allows me to run

pipenv install --dev

then

pytest

to test.

Is it possible to put my package into in ./src? I've tried that and I'm told the path is invalid.

ValueError: Invalid path './src'

*After Carlo's answer + the improvement from hoefling Here's a project that verified Carlo's answer https://github.com/ollyjshaw/alan_pytridge/

1 Answers

In order to be able install a path as editable, it needs to be a package and that means you need to have a setup.py file in that directory.

Related