Commit Graph

5 Commits

Author SHA1 Message Date
gandalf3
3847cc877f Improve make_repo.py
This cleans up make_repo.py a bit, using file extensions to determine
file type.

This also loosens the testing repo generation, as the existing
test required matching a predifed expected output which had to be
updated on every change (essentially making it a moot test, as the
reference output was obtained from the functions output).
The new test just checks if the output has the same number of packages
as the input dir has addons.

Tips on how best to test these sorts of "higher level" functions (if at
all) would be welcome :)
2017-07-04 23:56:19 -07:00
gandalf3
9f0ff11421 Get all tests for make_repo.py passing 2017-07-02 16:55:17 -07:00
gandalf3
8baacc366b Split repo generation functionality out of blenderpack.py
Moved repo.json generation to make_repo.py
Package/addon parsing is getting a bit messy, this can be
cleaned up when we have a clearer idea of what a package is.

For now just make it work.
2017-07-02 15:15:48 -07:00
gandalf3
354523f26b Write repo.json to current working directory 2017-06-30 15:08:07 -07:00
gandalf3
89ca306299 Cleanup: Remove commented code, use logging 2017-06-29 21:44:18 -07:00