-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
Signed-off-by: Joshua Kwan <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import os | ||
import pathlib | ||
import shutil | ||
import yaml | ||
|
||
def copy_rules(basedir): | ||
with open(os.path.join(basedir, 'version_sets.yaml'), 'r') as file: | ||
version_sets = yaml.safe_load(file) | ||
|
||
for version, base_files in version_sets.items(): | ||
dest = os.path.join(basedir, 'version_sets', version) | ||
if os.path.exists(dest): | ||
shutil.rmtree(dest) | ||
pathlib.Path(dest).mkdir(parents=True) | ||
for f in base_files: | ||
src_file = os.path.join(basedir, 'base_rule_definitions', f) | ||
dest_file = os.path.join(dest, f) | ||
shutil.copyfile(src_file, dest_file) | ||
|
||
if __name__ == "__main__": | ||
copy_rules(basedir='focus_validator/rules') |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Generated by build.py at wheel-time | ||
version_sets/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
'0.5': | ||
- FV-D001-0001.yaml | ||
- FV-D001-0002.yaml | ||
- FV-D001-0003.yaml | ||
- FV-D001-0004.yaml | ||
- FV-D002-0001.yaml | ||
- FV-D002-0002.yaml | ||
- FV-D003-0001.yaml | ||
- FV-D003-0002.yaml | ||
- FV-D004-0001.yaml | ||
- FV-D004-0002.yaml | ||
- FV-D004-0003.yaml | ||
- FV-D005-0001.yaml | ||
- FV-D005-0002.yaml | ||
- FV-D005-0003.yaml | ||
- FV-D006-0001.yaml | ||
- FV-D006-0002.yaml | ||
- FV-D006-0003.yaml | ||
- FV-D007-0001.yaml | ||
- FV-D007-0002.yaml | ||
- FV-D007-0003.yaml | ||
- FV-D008-0001.yaml | ||
- FV-D008-0002.yaml | ||
- FV-D008-0003.yaml | ||
- FV-D009-0001.yaml | ||
- FV-D009-0002.yaml | ||
- FV-D009-0003.yaml | ||
- FV-D010-0001.yaml | ||
- FV-D010-0002.yaml | ||
- FV-D010-0003.yaml | ||
- FV-D011-0001.yaml | ||
- FV-D011-0002.yaml | ||
- FV-D011-0003.yaml | ||
- FV-D012-0001.yaml | ||
- FV-D012-0002.yaml | ||
- FV-D012-0003.yaml | ||
- FV-D013-0001.yaml | ||
- FV-D013-0002.yaml | ||
- FV-D013-0003.yaml | ||
- FV-D014-0001.yaml | ||
- FV-D014-0002.yaml | ||
- FV-D015-0001.yaml | ||
- FV-D015-0002.yaml | ||
- FV-D015-0003.yaml | ||
- FV-D015-0004.yaml | ||
- FV-D016-0001.yaml | ||
- FV-D016-0002.yaml | ||
- FV-D016-0003.yaml | ||
- FV-D017-0001.yaml | ||
- FV-D017-0002.yaml | ||
- FV-D017-0003.yaml | ||
- FV-D018-0001.yaml | ||
- FV-D018-0002.yaml | ||
- FV-D018-0003.yaml | ||
- FV-M001-0001.yaml | ||
- FV-M001-0002.yaml | ||
- FV-M001-0003.yaml | ||
- FV-M002-0001.yaml | ||
- FV-M002-0002.yaml | ||
- FV-M002-0003.yaml |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.