Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Fix multiple issues related to release 4.0 #322

Closed
wants to merge 53 commits into from

Conversation

catch FileNotFoundError, due to missing manifest, in utils.make_archive()
add test for utils.make_archive(), reproducing issue 304
fix Package.name_regex
introduce a parse_archive_name function, with tests
use parse_archive_name to fix Package.extract_info
removed Package._parse_package_name, now unused
cherry-pick VALID_CHANNELS from bce7d36 (issue311)
introduce a gen_pep440_version(), similar to gen_user_friendly_version, with tests
refactor gen_pep440_version to handle stable (post) release versions
refactor get_highest_version() to use gen_pep440_version()
add test to verify packaging.version.parse() compatibility of gen_pep440_version output
remove redundant f-string specifiers
add test to show that Patcher.__init__ messes up the current version.
move command line version check from utils.builder to cli.options and use packaging.version, with tests
add some typing for version string arguments, to prevent confusion
Merge branch 'issue299' into drop-dsdev-version
implement Package.channel as property, using packaging Version instead of dsdev-utils Version
fix cli app_version test
move VALID_CHANNELS from cli.options to settings, to prevent circular imports (and it's more obvious)
assign parts only after checking for TypeError, and fix Package tests
add todo notes for next release (backward incompatible changes)
remove parse_platform, as it has been replaced by parse_archive_name
rename PackageHandler private methods for consistency
add a LATEST_KEY for consistency
create a VersionShim class in utils, replacing the version functions from client.updates
use packaging Version in PackageHandler, instead of dsdev_utils Version, and add test
rename Patch._json_data to _version_data, for consistency
rename json_data variables in PackageHandler to version_data, for consistency
consistently use LATEST_KEY and UPDATES_KEY
rename remaining json_data variables and attributes to version_data, for consistency
rename VersionShim to PyuVersion, clarify docstrings, use PyuVersion instead of packaging.version.Version etc.
check log output in patcher tests, to ensure Patcher.start returns False for the right reason.
use pyu_format in hash_key (forgot that one..)
replace dsdev_utils.helpers.gzip_decompress by a local implementation that calls gzip.decompress() directly
move get_highest_version() to client/__init__.py, and add latest_version to initial LibUpdate data
check prerelease status in _get_required_patches
remove Patcher._calc_diff(), for clarity
update name of PyuVersion test
Merge branch 'main' into issue315
Merge branch 'issue299' into multifix
Merge branch 'issue304' into multifix
Merge branch 'issue306' into multifix
Merge branch 'issue315' into multifix
fix test_make_archive
@codecov
Copy link

codecov bot commented Jan 5, 2022

Codecov Report

Merging #322 (6e79a0c) into main (7093d76) will increase coverage by 0.27%.
The diff coverage is 93.06%.

❗ Current head 6e79a0c differs from pull request most recent head 1353b55. Consider uploading reports for the commit 1353b55 to get more accurate results

@@            Coverage Diff             @@
##             main     #322      +/-   ##
==========================================
+ Coverage   88.14%   88.41%   +0.27%     
==========================================
  Files          26       26              
  Lines        2336     2314      -22     
==========================================
- Hits         2059     2046      -13     
+ Misses        277      268       -9     
Impacted Files Coverage Δ
pyupdater/client/__init__.py 89.17% <88.88%> (+0.80%) ⬆️
pyupdater/core/package_handler/package.py 80.00% <89.65%> (-2.45%) ⬇️
pyupdater/client/patcher.py 83.58% <90.47%> (+0.90%) ⬆️
pyupdater/client/updates.py 87.19% <92.30%> (-3.00%) ⬇️
pyupdater/core/package_handler/__init__.py 92.66% <92.30%> (+1.45%) ⬆️
pyupdater/cli/options.py 100.00% <100.00%> (ø)
pyupdater/core/key_handler/keys.py 83.17% <100.00%> (ø)
pyupdater/core/package_handler/patch.py 86.79% <100.00%> (ø)
pyupdater/settings.py 100.00% <100.00%> (ø)
pyupdater/utils/__init__.py 86.79% <100.00%> (+1.74%) ⬆️
... and 5 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

handle platform in test_make_archive
use single source for valid channels in Client._update_check
fix typo in test_make_archive
use latest os runners for github
@dennisvang
Copy link
Author

@JMSwag Is there anything I can do to get this PR approved?

@its-monotype
Copy link

When Pyupdater 5?

@its-monotype
Copy link

its-monotype commented Sep 25, 2022

@JMSwag When PR will be approved??? We can't use Pyupdater without this fixes from this amazing guy

@JMSwag JMSwag closed this Sep 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants