rlee287 / pyautoupdate

An auto-update API for Python programs. ARCHIVED: The update mechanism here contains no guarantees about code integrity. You may want to look at TUF (The Update Framework) instead.
GNU Lesser General Public License v2.1
14 stars 2 forks source link

Second code review comments #14

Closed rlee287 closed 7 years ago

rlee287 commented 7 years ago
rlee287 commented 7 years ago

- Download self.newfiles (project.zip) into downloads folder and extract into the same directory isn't actually necessary, since project.zip is removed afterwards anyway

rlee287 commented 7 years ago

Implementing point 2 as file syntax checking (if it doesn't match the syntax, it means that it is being inappropriately used for something else).

rlee287 commented 7 years ago

Points 1, 2, and 4 are being implemented in the filename_safety branch.

rlee287 commented 7 years ago

As to the PEP440Warning, use warnings.catch_warnings and with pytest.raises to check that warning is raised.

Might need to replace PEP440Warning and parse_version, as they seem to be less robust than I initially thought.

rlee287 commented 7 years ago

Fixed by adding isinstance check.

rlee287 commented 7 years ago

Number 4 is done now, but it might need to be redone while implementing number 5.

rlee287 commented 7 years ago

Number 3 is not really necessary, since the download folder's contents, if kept, would be the same as the new files.

rlee287 commented 7 years ago

See #29