Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
8b1afebb
Unverified
Commit
8b1afebb
authored
May 17, 2019
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix packages with no hashes retrieval for alternative repositories
parent
dd444198
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
CHANGELOG.md
+7
-0
poetry/repositories/legacy_repository.py
+1
-1
tests/repositories/fixtures/legacy/jupyter.html
+1
-1
tests/repositories/test_legacy_repository.py
+8
-0
No files found.
CHANGELOG.md
View file @
8b1afebb
# Change Log
## [Unreleased]
### Fixed
-
Fixed packages with no hashes retrieval for legacy repositories.
## [0.12.15] - 2019-05-03
### Fixed
...
...
poetry/repositories/legacy_repository.py
View file @
8b1afebb
...
...
@@ -359,7 +359,7 @@ class LegacyRepository(PyPiRepository):
hash
=
link
.
hash
if
link
.
hash_name
==
"sha256"
:
hashes
.
append
(
hash
)
el
se
:
el
if
hash
:
hashes
.
append
(
link
.
hash_name
+
":"
+
hash
)
data
[
"digests"
]
=
hashes
...
...
tests/repositories/fixtures/legacy/jupyter.html
View file @
8b1afebb
...
...
@@ -5,7 +5,7 @@
</head>
<body>
<h1>
Links for jupyter
</h1>
<a
href=
"https://files.pythonhosted.org/packages/c9/a9/371d0b8fe37dd231cf4b2cff0a9f0f25e98f3a73c3771742444be27f2944/jupyter-1.0.0.tar.gz
#sha256=d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f
"
>
jupyter-1.0.0.tar.gz
</a><br/>
<a
href=
"https://files.pythonhosted.org/packages/c9/a9/371d0b8fe37dd231cf4b2cff0a9f0f25e98f3a73c3771742444be27f2944/jupyter-1.0.0.tar.gz"
>
jupyter-1.0.0.tar.gz
</a><br/>
</body>
</html>
<!--SERIAL 1673841-->
tests/repositories/test_legacy_repository.py
View file @
8b1afebb
...
...
@@ -245,3 +245,11 @@ def test_get_package_retrieves_non_sha256_hashes():
]
assert
expected
==
package
.
hashes
def
test_get_package_retrieves_packages_with_no_hashes
():
repo
=
MockRepository
()
package
=
repo
.
package
(
"jupyter"
,
"1.0.0"
)
assert
[]
==
package
.
hashes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment