Tree: 9733cbe89d
-
Formatting clean-up and move to back to TravisCI.
- Run black, isort - Remove circleci setup - Update TravisCI config
Verified
This commit was signed with a verified signature.ruebot Nick RuestGPG key ID: 417FAF1A0E1080CD Learn about signing commits
-
CLI: use argparse, clearer logging logic (#19)
* optparse is deprecated, use argparse * logging logic was broken (logging to file could not be disabled / logging to console not be enabled) * set arg state defaults * add --version for bagit_profile version flag * add --report to print report after validation fails * add --skip-serialization to skip serialization validation * add --skip option to skip serialization or profile validation steps * support variant of constructor which doesn't require fetching URL * exits 1 for serialization error * exits 2 for validation error * unicode literals to make 27 happy
-
Verified
This commit was signed with a verified signature.ruebot Nick RuestGPG key ID: 417FAF1A0E1080CD Learn about signing commits -
* Set defaults for Serialization and Allow-Fetch.txt if not explicitly provided * Support BagIt-Profile-Version, bagit-profiles/bagit-profiles-specification#16 * re-enable tests blocked by bagit-profiles/bagit-profiles-specification#17
-
* update bagProfileBar.json with up-to-date spec example * make sure to check tag_file wildcards against bag basedir rel path
-
Validate tag files allowed (#14)
* bagit-profiles/bagit-profiles-specification#14 * refactor validate function as a list of checks * Save the errors of the last run as a ProfileValidationReport on prop 'report' * basic implementation of tag-files-allowed validation, bagit-profiles/bagit-profiles-specification#14 * test tag-files-allowed * fix find_tag_files to list only non-payload files * fetch.txt is a valid predefined tag file
-
Verified
This commit was signed with a verified signature.ruebot Nick RuestGPG key ID: 417FAF1A0E1080CD Learn about signing commits -
Pass profile to constructor (#7)
* fix python2-isms and pylint warnings * py2/py3 compatible call to urlopen * decode HTTP response body as utf8 in py3 * replace logging/raise with self._fail * test.py: remove unused imports, indent * allow passing profile in constructor in addition to url * validate profile in constructor before assigning to self.profile * adapt URL in test, test assets, include in error message if not matching
-
Verified
This commit was signed with a verified signature.ruebot Nick RuestGPG key ID: 417FAF1A0E1080CD Learn about signing commits -
fix python2-isms and pylint warnings (#5)
* fix python2-isms and pylint warnings * py2/py3 compatible call to urlopen * decode HTTP response body as utf8 in py3
-
updates tag parameter validation logic (#4)
* updates bag-info.txt validation logic * updates version
-
Adding support for checking repeatability parameter (#3)
* adds support for validating repeatable bag-info.txt elements * removes unnecesary library
-
Merge pull request #2 from MarcusBarnes/master
Update bagit_profile.py
-
mtype is a tuple. Added index to test on first member of mtype tuple.
-
-
Updated value of BagIt-Profile-Identifier in test-foo/bag-info.txt to…
… match changes in bagit-profiles Github repo.
-
Added underscore to separate log file name from date.
mjordan committedMar 2, 2013 -
Fixed error message for Allow-Fetch.txt validation.
mjordan committedMar 2, 2013 -
Fixed some problems with variable interpolation in error messages.
mjordan committedMar 2, 2013 -
Added test for Tag-Manifests-Required and Tag-Files-Required.
mjordan committedMar 2, 2013