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

Optionally use resolved references in to_pep_508 #603

Merged
merged 5 commits into from
Jun 13, 2023

Conversation

koffie
Copy link
Contributor

@koffie koffie commented Jun 6, 2023

Related-to: python-poetry/poetry-plugin-export#35

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

Well this pull request doesn't actually solve the issue linked above. But it is necessary to be able to solve it.

I've modified the to_pep_508 function to return resolved references if called with the optional argument resolved=True. The default of this argument is False in order to not make any backward incompatible changes that might adversely affect other code also making use of the to_pep_508 function.

I have no idea how to update the documentation since by inspecting this library I found no documentation for any of the internal python functions.

Copy link
Member

@radoering radoering left a comment

Choose a reason for hiding this comment

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

I have to say I was not thrilled about the change but since I don't see a better solution than adding a new parameter and this (finally) will solve a valid bug in the export plugin, let's go.

I have no idea how to update the documentation since by inspecting this library I found no documentation for any of the internal python functions.

It's just a reminder to think about it. There is nothing to update here.

src/poetry/core/packages/dependency.py Outdated Show resolved Hide resolved
src/poetry/core/packages/dependency.py Outdated Show resolved Hide resolved
tests/packages/test_vcs_dependency.py Show resolved Hide resolved
src/poetry/core/packages/dependency.py Show resolved Hide resolved
@koffie koffie requested a review from radoering June 11, 2023 17:52
@koffie koffie requested a review from radoering June 12, 2023 19:53
@radoering radoering merged commit f2cad31 into python-poetry:main Jun 13, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jun 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

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

Successfully merging this pull request may close these issues.

2 participants