4 Commits
Author SHA1 Message Date
Elliot Jordan d586e2726a Reapply Python black format 2020-09-09 15:47:14 -07:00
Brian Smith 8e15461b3b Windows: Versioner can read zip files
This allows direct introspection of `version.plist` files from zip
archives, such as the autopkg source zip downloaded by
`AutoPkgGitMaster.nupkg.recipe` from GitHub.

For zip files only, Versioner can also now optionally ignore a single
root directory, which faciliates content extraction from sources such as
GitHub source archives, which have a root directory:
`user-project-truncatedhash`. Since it's extremely difficult to know the
truncated hash ahead of time, `skip_single_root_dir` will interpret any
path as relative to it.

An exception is raised if there is more than one root directory in the
archive and the flag is set.
2020-07-31 17:53:38 -07:00
Michal Moravec b127ff75fc Duplicate mock code to each test method 2020-07-30 14:29:17 +02:00
Michal Moravec 01f75188c2 Add Versioner unittest class 2020-07-30 14:29:17 +02:00