In your case, pipenv replaces pip but you will still need a setup.py.
Assuming your directory is structured like this:
dir_a/ <-- This will be your pipenv root dir and your package root dir.
setup.py
dir_b/
__init__.py
somefile.py
otherfile.py
Then you can initiate a Python 3 environment and install your package using:
$> cd dir_a
$> pipenv --python 3
$> pipenv shell
$> pipenv install -e .
You can verify that the package has been installed using cat Pipfile or pipenv graph.
However, if your package root directory is not the same as your pipenv root directory then pipenv install -e . will fail with a mysterious error message:
Error parsing requirement . -- are you sure it is installable?
In this case, you should call pipenv install -e from the pipenv root directory and give the path to the root directory of the package. For example, with this file structure:
dir_z/ <-- This will be your pipenv root dir.
something.py
empty_dir/
dir_a/ <-- This is your package root dir.
setup.py
dir_b/
__init__.py
somefile.py
otherfile.py
You would use:
$> cd dir_z
$> pipenv --python 3
$> pipenv shell
$> pipenv install -e dir_a/
As another user mentioned, using pip install -e . does install the package into the virtual environment from dir_a in this scenario. However, at least for me, it doesn't update the Pipfile so is not of much use.