Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Please support pipenv #17

Open
gsemet opened this issue Oct 13, 2017 · 5 comments
Open

Please support pipenv #17

gsemet opened this issue Oct 13, 2017 · 5 comments
Labels

Comments

@gsemet
Copy link

gsemet commented Oct 13, 2017

Please support pipenv to start unit test without having to source virtualenv prior to launch atom.
thx

@jgirardet
Copy link

With latest version of pipenv you can lauch everything outside virtualenv
juste do

pipenv run atom .

it launches atom in virtualenv opening (with the dot) project folder
then atom pytest works out of the box

@gsemet
Copy link
Author

gsemet commented Nov 7, 2017

This is basically a command to launch atom from a virtualenv. My atom is started from desktop and carry several projects along side, and they don't share the same virtualenv. If we can find a way to describe per project how to source the virtualenv (just the pipenv run pytest ...) i would be happy. For the moment, it is too restricted, I cannot put pipenv run anywhere

@pghilardi
Copy link
Owner

@stibbons,

I am the maintainer of the atom-python-virtualenv plug-in and I think that maybe it will suit to your use case. This plug-in allows changing virtualenv dynamically (it support virtualenvs from pipenv), without having to open atom with the env activated. Could you give a try? https://atom.io/packages/atom-python-virtualenv

I am planning a way to reload the virtualenv automatically based in the current project opened, but for now, it is not supported.

@gsemet
Copy link
Author

gsemet commented Nov 7, 2017

Look promising. Do you support pew (virtualenv are created int ~/.local/virtualenvs/, it is what pipenv uses for virtualenv storage

@pghilardi
Copy link
Owner

Yes. You can customize the default location of your envs home folder or even add additional envs paths.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants