Closed rlee287 closed 7 years ago
- Download isn't actually necessary, since self.newfiles
(project.zip
) into downloads
folder and extract into the same directoryproject.zip
is removed afterwards anyway
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).
Points 1, 2, and 4 are being implemented in the filename_safety
branch.
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.
Fixed by adding isinstance
check.
Number 4 is done now, but it might need to be redone while implementing number 5.
Number 3 is not really necessary, since the download folder's contents, if kept, would be the same as the new files.
See #29
check_new
version.txt.old
ends up being overwrittenversion.txt.old
Option forupdate_code
as to whether or not to keepdownloads
folder content afterwardDownloadself.newfiles
(project.zip
) intodownloads
folder and extract into the same directory