-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work with poetry. #1
Comments
Ahh very cool!! I wasn't aware of that project, but it seems to do something quite similar to this. The main difference I see is that it also looks for the virtualenvs in I haven't used Poetry much.. which of the above methods does it use? I think I could extend this extension to accommodate for those use cases.. or maybe make some PRs to that extension to support |
I currently use pyenv + pyenv-virtualenv to develop different python projects on the same version. With poetry I use it to manage dependencies, but it has a peculiarity that if it does not find an active virtual environment, poetry creates it, omitting the one already managed by pyenv-virtualen. And with auto-virtualenv or pyevn-mode I activate the virtual environment or python version defined in the root of the project by the .python-version file. I hope I explained it well Cheers |
Ahh, I see. Is it related to python-poetry/poetry#1061? I'll dig a little and see what I can do! |
Ahh nvm, the above is a different issue (when using multiple pyenv versions/virtualenvs in the same project). The issue seems to be that the |
yes, basically I have set up a virtual version / python environment per project like this:
|
Just to confirm, each of those |
yes, just one python version o virtualenv name per .python-version file |
Try the latest version and let me know if that fixes it! |
Hmm, OK I'll download |
Hmm, wait, did you restart Emacs? When I run |
for some reason it looks like it's still using |
I used pyenv-use-corresponding but I got the same result |
it's weird but it works when using pyenv-use-global (leaf switch-buffer-functions
:straight t
:require t)
(leaf pyenv
:straight (pyenv
:type git
:host github
:repo "aiguofer/pyenv.el")
:require t
:config
(setq pyenv-use-alias nil
pyenv-set-path nil)
(global-pyenv-mode)
(defun pyenv-update-on-buffer-switch (prev curr)
(if (string-equal "Python" (format-mode-line mode-name nil nil curr))
(pyenv-use-global)))
(add-hook 'switch-buffer-functions 'pyenv-update-on-buffer-switch))
|
Hmmm interesting, yeah it looks like I personally just use |
Greetings, great job.
I currently use pyenv + pyenv-virtualenv + poetry for my developments with python,
In emacs I use auto-virtualenv to use the different versions and virtual environments of Python.
Thanks a lot
The text was updated successfully, but these errors were encountered: