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

package: allow url dependencies to be optional #2256

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

tommilligan
Copy link
Contributor

Pull Request Check List

This is just a reminder about the most common mistakes. Please make sure that you tick all appropriate boxes. But please read our contribution guide at least once, it will save you unnecessary review cycles!

  • Added tests for changed code.
  • Updated documentation for changed code. N/A

Note: If your Pull Request introduces a new feature or changes the current behavior, it should be based
on the develop branch. If it's a bug fix or only a documentation update, it should be based on the master branch.

If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!


This PR allows URL dependencies to be marked as optional in pyproject.toml. It updates package.py and adds a unit test for this case (fails on current master).

I also tested this locally against a real world case, and found it resolved my issue.

Closes #2255

@finswimmer finswimmer requested a review from a team April 1, 2020 18:39
@abn abn added the kind/bug Something isn't working as expected label Apr 1, 2020
@abn
Copy link
Member

abn commented Apr 1, 2020

Since the schema already allows for this, this is a bug.

https://github.com/python-poetry/core/blob/master/poetry/core/json/schemas/poetry-schema.json#L408-L443

Copy link
Member

@abn abn left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks @tommilligan

@abn abn merged commit 655f582 into python-poetry:master Apr 1, 2020
@tommilligan
Copy link
Contributor Author

No problem, thanks for the quick merge.

@abn
Copy link
Member

abn commented Apr 1, 2020

@tommilligan I have also ported your commit to python-poetry/core project as well so that the next release will retain the fix.

@tommilligan
Copy link
Contributor Author

Thanks - looks like this is an ongoing refactor? For my reference, what will be in core in future?

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
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional URL dependency is locked as non-optional
2 participants