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

Support generating build-info for projects that use Poetry #104

Merged
merged 11 commits into from
Sep 28, 2022

Conversation

talarian1
Copy link
Contributor

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

@talarian1 talarian1 requested a review from eyalbe4 September 13, 2022 17:11
utils/pythonutils/poetryutils.go Outdated Show resolved Hide resolved
utils/pythonutils/poetryutils.go Outdated Show resolved Hide resolved
dependencyName := dependency.Name + ":" + dependency.Version
dependencies[dependencyName] = maps.Keys(dependency.Dependencies)
}
return
}

func extractPoetryDependenciesFiles(srcPath string, cmdArgs []string, log utils.Log) (dependenciesFiles map[string]entities.Dependency, err error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Let's add a description for this function, specifically describing the returned values and the structure of dependenciesFiles.
  • Let's add a unit test for this function.
  • I also suggest adding some more focused tests for the getSitePackagesPath function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests will be added in following PR.

@talarian1 talarian1 added the new feature Automatically generated release notes label Sep 28, 2022
@talarian1 talarian1 merged commit ab4690a into jfrog:dev Sep 28, 2022
@eyalbe4 eyalbe4 changed the title Add Poetry Build Support generating build-info for projects that use Poetry Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants