Skip to content

Commit

Permalink
Fixes output for packages not available on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
nezhar committed May 6, 2020
1 parent dd85be3 commit 510bc02
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.5.0 - Unreleased]


## [0.4.1]

### Changed
- add default values for `categorized_package_data` to avoid crash on packages not available on pypi

## [0.4.0]

### Added
Expand Down Expand Up @@ -53,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Initial Release

[0.5.0 - Unreleased]: https://github.com/nezhar/updatable
[0.4.1]: https://pypi.org/project/updatable/0.4.1/
[0.4.0]: https://pypi.org/project/updatable/0.4.0/
[0.3.1]: https://pypi.org/project/updatable/0.3.1/
[0.3.0]: https://pypi.org/project/updatable/0.3.0/
Expand Down
2 changes: 1 addition & 1 deletion updatable/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = "0.5.0"
__version__ = "0.4.1"
8 changes: 7 additions & 1 deletion updatable/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,13 @@ def get_package_update_list(package_name, version):
# Information about packages
newer_releases = 0
pre_releases = 0
categorized_package_data = {}
categorized_package_data = {
'major_updates': [],
'minor_updates': [],
'patch_updates': [],
'pre_release_updates': [],
'non_semantic_versions': [],
}

if package_data:
latest_release = package_data['info']['version']
Expand Down

0 comments on commit 510bc02

Please sign in to comment.