-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Various issues when package name differs from directory name. #1417
Comments
So looking at the 1.0.0b1 code for getting the environment: |
I did some digging through the code and must say I'm quite confused by the EnvManager class. Its The other methods of EnvManager don't even have a All Commands that are derived from EnvCommand (which does not include the This event listener is called right at the start of the base class Some commands like I might take a stab at fixing this but I'm happy for all feedback and help as I'm quite new to the code base. Especially happy for help with writing the corresponding unit tests. |
The environment name issue has been fixed in #1477 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
This relates to #705 but I'm not able to solve all my issues without massaging a few things. The PyPi package name of my project differs from the actual python package name:
My
pyproject.toml
file was originally working fine when using colour for thename
attribute:When trying to build with
poetry build
, I noticed that it was generating a colour.0.3.13.tar.gz archive that would not work for PyPi, thus I changed the TOML file as follows:I was able to build, but now, after cloning the repo into a default colour directory, issuing
poetry install
creates a virtual environment with the colour-science prefix however thepoetry env info -p
command does not find the virtual environment because I'm assuming it is looking for an environment with the colour prefix instead.So there is a consistency issue between how the name of the candidate virtual environment is generated with the
poetry install
command and thepoetry env
one.It also seems like it would be useful to have an attribute to handle the PyPi distribution name explicitly.
Cheers,
Thomas
The text was updated successfully, but these errors were encountered: