-
-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add system packages support in the new packages model #2909
Conversation
58692f8
to
6a1cdc4
Compare
@AyanSinhaMahapatra the latest jinja2 have some import changes sphinx-doc/sphinx#10291 which makes some test fail.
|
@pombredanne I bumped doc build tests to run on python3.9 here: #2896 We don't use pinned requirements for doc builds anymore, using https://github.com/nexB/scancode-toolkit/blob/develop/setup.cfg#L133 instead. The above mentioned PR makes some changes and fixes the doc builds (updated skeleton with UI from @johnmhoran and --docs option in configure directly). We can merge this first in develop imho. (Not merging here because we need to amend and squash commits in this branch) |
87ebb9a
to
350d4ab
Compare
@AyanSinhaMahapatra let's leave the tests/summarycode/ aside as this is is WIP from @JonoYang in #2914 |
6b03d00
to
56003c5
Compare
Yes, makes sense. |
51b9e6a
to
04dd231
Compare
We now collect package_data_fields corectly for use in CSVs Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Also apply minor formatting and cosmetic changes Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
In tests scans the UUID are best left out for stability of expected results Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Rename PackageFile to FileReference and update definition * Rename PackageDataFile to DatafileHandler * Streamline class hierarchy * Move PackageDataFile subclasses to misc.py In Dependency: * add for_package_uid, datafile_path, datasource_id * rename dependency_uuid to dependency_uid In Package * add package_uid, datafile_paths, datasource_ids In PackageData: * remove contains_source_code from * add file_references using FileReference, and remove installed_files * all *_url computed URLs are now stored * remove extra_key_files and extra_root_files properties Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have separate handlers: * AlpineApkArchiveHandler * AlpineInstalledDatabaseHandler * AlpineApkbuildHandler Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have one handler: BowerJsonHandler Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have separate handlers: * AutotoolsConfigureHandler * BazelBuildHandler * BuckPackageHandler * BuckMetadataBzlHandler Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have this handler to parse Gradle files: * BuildGradleHandler Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have separate handlers: * CargoTomlHandler * CargoLockHandler Adn we assemble these in a Package correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have separate handlers: * ChefCookbookHandler * ChefMetadataJsonHandler * ChefMetadataRbHandler Adn we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * PodspecHandler * PodfileHandler * PodfileLockHandler * PodspecJsonHandler And we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * CondaYamlHandler * CondaMetaYamlHandler And we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have this data file handler: * CranDescriptionFileHandler And we assemble it in a Package correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
This is a major refactoring of how we handle Debian packages in archives, extracted or installed layouts. In particular copyright files are treated as a package data file. We now have these data file handlers: * DebianSourcePackageMetadataTarballHandler * DebianSourcePackageTarballHandler * DebianControlFileInExtractedDebHandler * DebianControlFileInSourceHandler * DebianDscFileHandler * DebianInstalledStatusDatabaseHandler * DebianDistrolessInstalledDatabaseHandler * DebianInstalledFilelistHandler * DebianInstalledMd5sumFilelistHandler * DebianMd5sumFilelistInPackageHandler * DebianCopyrightFileInSourceHandler * DebianCopyrightFileInPackageHandler * StandaloneDebianCopyrightFileHandler (no active for now) And we assemble these in Packages correctly. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have this data file handler: * CompactManifestHandler And we assemble it in a Package correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * GoModHandler * GoSumHandler * GodepsHandler (legacy) And we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have this data file handler: * HaxelibJsonHandler And we assemble it in a Package correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * JavaJarManifestHandler * MavenPomXmlHandler * MavenPomPropertiesHandler And we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * MsiInstallerHandler * NugetNupkgHandler * NugetNuspecHandler * WindowsExecutableHandler * MicrosoftUpdateManifestHandler * InstalledProgramFromDockerSoftwareDeltaHandler * InstalledProgramFromDockerFilesSoftwareHandler * InstalledProgramFromDockerUtilityvmSoftwareHandler And we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * GemArchiveHandler * GemMetadataArchiveExtractedHandler * GemspecHandler * GemspecInExtractedGemHandler * GemspecInInstalledVendorBundleSpecificationsHandler * GemfileHandler * GemfileInExtractedGemHandler * GemfileLockHandler * GemfileLockInExtractedGemHandler And we assemble these in Packages correctly Also improve minimally gemspec parsing Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * NpmPackageJsonHandler * NpmPackageLockJsonHandler * NpmShrinkwrapJsonHandler * YarnLockV2Handler * YarnLockV1Handler And we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have this data file handler: * OpamFileHandler And we assemble this in a Package correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * PhpComposerJsonHandler * PhpComposerLockHandler And we assemble these in Packages correctly Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * RpmInstalledNdbDatabaseHandler * RpmInstalledSqliteDatabaseHandler * RpmInstalledBdbDatabaseHandler * RpmSpecfileHandler * RpmArchiveHandler And we assemble these in Packages correctly. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * PythonEggPkgInfoFile * PythonEditableInstallationPkgInfoFile * PythonSdistPkgInfoFile * PythonInstalledWheelMetadataFile * PyprojectTomlHandler * PypiWheelHandler * PypiEggHandler * PypiSdistArchiveHandler * PythonSetupPyHandler * SetupCfgHandler * PipfileHandler * PipfileLockHandler * PipRequirementsFileHandler And we assemble these in Packages correctly. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have these data file handlers: * DartPubspecYamlHandler * DartPubspecLockHandler And we assemble these in Packages correctly. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
We now have this data file handler: * ReadmeHandler Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Add new dependency on container-inspector * Also cleanup and sync setup files Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Adopt new handler style in plugin * improve utilities * test plugin and package recognition Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Adopt new handler style and top level packages Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Using the new SCANCODE_REGEN_TEST_FIXTURES Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
a2dc25e
to
8e07301
Compare
All green at last..... |
Tasks
Run tests locally to check for errors.