Skip to content

Support most of the guaranteed hashes#207

Merged
sdispater merged 2 commits into
python-poetry:1.0from
awilkins:fix/support-guaranteed-hashes
Sep 20, 2021
Merged

Support most of the guaranteed hashes#207
sdispater merged 2 commits into
python-poetry:1.0from
awilkins:fix/support-guaranteed-hashes

Conversation

@awilkins
Copy link
Copy Markdown

Works toward resolution of python-poetry/poetry#4523
Also needs client changes

  • Added tests for changed code
  • Added documentation for changed code

Documentation is at least equivalent to the existing stuff.

  • Implement most of the "guaranteed" hashes as per PEP 503
  • Leave out shake, because they're variable length
    • Feel it's unlikely anyone's repo manager is using these

No offence to @hydra-zim who has produced pretty much the same PR @ #206 : this one has tests, and also targets the current mainline release branch instead of the future. The future is great, I would prefer this was fixed sooner.

Works toward resolution of python-poetry/poetry#4523

- [X] Added tests for changed code
- [X] Added documentation for changed code

Documentation is at least equivalent to the existing stuff.

- Implement most of the "guaranteed" hashes as per PEP 503
- Leave out shake, because they're variable length
  - Feel it's unlikely anyone's repo manager is using these
@qbedard
Copy link
Copy Markdown

qbedard commented Sep 20, 2021

@sdispater python-poetry/poetry#4523 introduces some pretty critical breakage for anyone using private package repositories, and in a situation where version pins are not common (pinning a subdependency of a build tool). Do you or another maintainer have the bandwidth to review this and aim for a 1.0.6 release ASAP?

@sdispater
Copy link
Copy Markdown
Member

@awilkins Thanks for the PR!

You will need to fix the linting issues before I can merge this.

Also, it seems that some of the hash types are not available on Python 2.7 and 3.5.

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.

3 participants