Skip to content
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

Fixed path based dev-dependencies break install --no-dev when the d… #1119

Closed
wants to merge 1 commit into from

Conversation

jjuris
Copy link

@jjuris jjuris commented May 23, 2019

Fixed path based dev-dependencies break install --no-dev when the directory path does not exist.

  • Added tests for changed code.
  • Updated documentation for changed code.

@@ -147,7 +148,7 @@ def create(cls, cwd): # type: (Path) -> Poetry

package.add_dependency(name, constraint)

if "dev-dependencies" in local_config:
if "dev-dependencies" in local_config and not "--no-dev" in sys.argv:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm this change may affect all commands ( did not test it yet )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, this doesn't look like the correct place to manage the behavior of the install command. What the --no-dev option does is it sets Installer.dev_mode attribute and you can probably work off of that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
yes you are right, this is a bad place, its more like patch / workaround. Unfortunately if you look closely into the code, you would find that class Poetry defined in this file is initialised in every single command, even the one which does not to anything effective, therefore it is required to change this control mechanism somehow
JJ.

Copy link
Contributor

@kbakk kbakk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't modify version in CHANGELOG.md, poetry/__version__.py, pyproject.toml, leave that to the repo owner, who knows which version will be released.

@jjuris
Copy link
Author

jjuris commented Jul 4, 2019

You shouldn't modify version in CHANGELOG.md, poetry/__version__.py, pyproject.toml, leave that to the repo owner, who knows which version will be released.

Yes, its habit, this is not going to be merged, ignore it

@brycedrennan
Copy link
Contributor

Closing since we were told to ignore.

Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants