Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarshall committed Sep 13, 2023
1 parent fc566b8 commit ebe34fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Made micropip.freeze correctly list dependencies of manually installed packages.
[#79](https://github.com/pyodide/micropip/pull/79)

## [0.4.0] - 2023/07/25

### Added
Expand Down
4 changes: 2 additions & 2 deletions micropip/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def platform_to_version(platform: str) -> str:
raise ValueError(f"Wheel interpreter version '{tag.interpreter}' is not supported.")


def fix_package_dependencies(package_name, *, extras=None):
def fix_package_dependencies(package_name: str, *, extras: list[str] = None) -> None:
"""Check and fix the list of dependencies for this package
If you have manually installed a package and dependencies from wheels,
Expand Down Expand Up @@ -234,7 +234,7 @@ def fix_package_dependencies(package_name, *, extras=None):
if extras is None:
extras = [None]
else:
extras.append(None)
extras = extras + [None]
for r in package_requires:
req = Requirement(r)
req_extras = req.extras
Expand Down

0 comments on commit ebe34fd

Please sign in to comment.