Skip to content
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

#529 Add support for dependency collection for Maven packages #561

Merged
merged 3 commits into from
Jun 14, 2017

Conversation

licodeli
Copy link
Contributor

Including Pymaven, implement our own subClass from Pom class of Pymaven. This is to support pom location to get POM object. Use the getdependencies function to get dependencies details in POM parse of scancode toolkit.

@pombredanne pombredanne changed the title #529 dependency elements #529 Add support for dependency collection for Maven packages Mar 27, 2017
@pombredanne pombredanne force-pushed the 529-dependency-elements branch from e198603 to c7b2bbb Compare June 8, 2017 13:14
@codecov
Copy link

codecov bot commented Jun 12, 2017

Codecov Report

Merging #561 into develop will decrease coverage by 11.64%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop     #561       +/-   ##
============================================
- Coverage    75.87%   64.23%   -11.65%     
============================================
  Files           82       82               
  Lines        10493    10528       +35     
============================================
- Hits          7962     6763     -1199     
- Misses        2531     3765     +1234
Impacted Files Coverage Δ
src/packagedcode/maven.py 86.66% <100%> (+1.93%) ⬆️
src/packagedcode/xmlutils.py 85.71% <100%> (-0.57%) ⬇️
src/scancode/pool.py 0% <0%> (-100%) ⬇️
src/commoncode/version.py 0% <0%> (-100%) ⬇️
src/commoncode/urn.py 0% <0%> (-100%) ⬇️
src/scancode/cli_test_utils.py 0% <0%> (-93.34%) ⬇️
src/commoncode/timeutils.py 0% <0%> (-92.86%) ⬇️
src/scancode/utils.py 0% <0%> (-91.4%) ⬇️
src/formattedcode/format.py 0% <0%> (-89.43%) ⬇️
src/scancode/extract_cli.py 0% <0%> (-87.78%) ⬇️
... and 26 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05cbe0b...0ff7ab9. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 12, 2017

Codecov Report

Merging #561 into develop will increase coverage by 0.86%.
The diff coverage is 92.59%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #561      +/-   ##
===========================================
+ Coverage    75.87%   76.74%   +0.86%     
===========================================
  Files           82       82              
  Lines        10493    10604     +111     
===========================================
+ Hits          7962     8138     +176     
+ Misses        2531     2466      -65
Impacted Files Coverage Δ
src/packagedcode/xmlutils.py 65.3% <66.66%> (-20.97%) ⬇️
src/packagedcode/maven.py 87.65% <93.48%> (+2.92%) ⬆️
src/typecode/contenttype.py 85.15% <0%> (+0.7%) ⬆️
src/scancode/cli.py 87.32% <0%> (+9.36%) ⬆️
src/scancode/api.py 68.57% <0%> (+33.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05cbe0b...aca83b5. Read the comment docs.

Li added 2 commits June 13, 2017 16:11
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * Use pymaven throughout for Maven POM parsing including
   collecting depdenencies
 * Use a patched subclass of pymaven with enhanced properties resolution
   and extract extra attributes that can serialize to a mapping
 * Update maven test expectations accordingly adding new tests for
   Package creation
 * made most maven-related tests data-driven and using plain JSON files

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne pombredanne force-pushed the 529-dependency-elements branch from 0ff7ab9 to 1c54a74 Compare June 13, 2017 14:41
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne pombredanne merged commit aca83b5 into develop Jun 14, 2017
@pombredanne pombredanne deleted the 529-dependency-elements branch June 15, 2017 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants