Skip to content

Comments

Optionally use resolved references in to_pep_508#603

Merged
radoering merged 5 commits intopython-poetry:mainfrom
koffie:main
Jun 13, 2023
Merged

Optionally use resolved references in to_pep_508#603
radoering merged 5 commits intopython-poetry:mainfrom
koffie:main

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.

@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
@sonarqubecloud
Copy link

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