-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds supplier/license info to pip components. (#938)
* Adds supplier/license info to pip components. * Rename GetReleasesAsync to GetProjectAsync * Address feedback --------- Co-authored-by: Sebastian Gomez <[email protected]>
- Loading branch information
1 parent
710273b
commit 809ef0b
Showing
7 changed files
with
226 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/Microsoft.ComponentDetection.Detectors/pip/PythonProjectInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace Microsoft.ComponentDetection.Detectors.Pip; | ||
|
||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
public class PythonProjectInfo | ||
{ | ||
public string Author { get; set; } | ||
|
||
[JsonProperty("author_email")] | ||
public string AuthorEmail { get; set; } | ||
|
||
public List<string> Classifiers { get; set; } | ||
|
||
public string License { get; set; } | ||
|
||
public string Maintainer { get; set; } | ||
|
||
[JsonProperty("maintainer_email")] | ||
public string MaintainerEmail { get; set; } | ||
|
||
// Add other properties from the "info" object as needed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.