File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333MINECODE_CARGO_INDEX_REPO = "https://github.com/rust-lang/crates.io-index"
3434
3535
36- class MineandPublishCargoPURLs (Pipeline):
36+ class MineCargo (Pipeline ):
3737 """Pipeline to mine Cargo (crates.io) packages and publish them to FederatedCode."""
3838
3939 @classmethod
Original file line number Diff line number Diff line change 22from packageurl import PackageURL
33from aboutcode.hashid import get_core_purl
44
5- from minecode_pipelines .miners import write_packageurls_to_file
5+ from minecode_pipelines.pipes import write_packageurls_to_file
66
77
88def store_cargo_packages(packages, repo):
Original file line number Diff line number Diff line change 66import saneyaml
77from django.test import TestCase
88
9- from minecode_pipelines.miners import write_packageurls_to_file
9+ from minecode_pipelines.pipes import write_packageurls_to_file
1010from minecode_pipelines.pipes.cargo import store_cargo_packages
1111
1212DATA_DIR = Path(__file__).parent.parent / "test_data" / "cargo"
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ urls = { Homepage = "https://github.com/aboutcode-org/purldb" }
4747[project.entry-points."scancodeio_pipelines"]
4848mine_pypi = "minecode_pipelines.pipelines.mine_pypi:MinePypi"
4949mine_maven = "minecode_pipeline.pipelines.mine_maven:MineMaven"
50+ mine_cargo = "minecode_pipelines.pipelines.mine_cargo:MineCargo"
5051
5152[tool.bumpversion]
5253current_version = "0.0.1b1"
You can’t perform that action at this time.
0 commit comments