File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ def collect_packages_from_maven(commits_per_push=10, logger=None):
676676 # save purls to yaml
677677 ppath = hashid .get_package_purls_yml_file_path (prev_package )
678678 purls = [package .purl for package in current_packages ]
679- write_file (
679+ federatedcode . write_data_as_yaml (
680680 base_path = repo .working_dir ,
681681 file_path = ppath ,
682682 data = purls ,
@@ -702,14 +702,3 @@ def collect_packages_from_maven(commits_per_push=10, logger=None):
702702
703703 # delete local clone
704704 federatedcode .delete_local_clone (repo )
705-
706-
707- def write_file (base_path , file_path , data ):
708- """
709- Write the ``data`` as YAML to the ``file_path`` in the ``base_path`` root directory.
710- Create directories in the path as needed.
711- """
712- write_to = base_path / file_path
713- write_to .parent .mkdir (parents = True , exist_ok = True )
714- with open (write_to , encoding = "utf-8" , mode = "w" ) as f :
715- f .write (saneyaml .dump (data ))
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ install_requires =
6262 matchcode-toolkit >= 7.2.2
6363 purl2vcs >= 2.0.0
6464 univers >= 30.12.1
65- scancodeio >= 35.0.0
65+ scancodeio @ git+https://github.com/aboutcode-org/scancode.io@f3a581171e201e5fdb20962115a661b4eb4a7850
6666 GitPython >= 3.1.44
6767 samecode >= 0.5.1
6868 # FederatedCode integration
@@ -100,3 +100,4 @@ console_scripts =
100100scancodeio_pipelines =
101101 matching = matchcode_pipeline.pipelines.matching:Matching
102102 d2d = scanpipe.pipelines.deploy_to_develop:DeployToDevelop
103+ mine_maven = minecode_pipeline.pipelines.mine_maven:MineMaven
You can’t perform that action at this time.
0 commit comments