Skip to content

Skaffold init supports Python projects with Buildpacks #4309

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

Merged
merged 1 commit into from
Jun 12, 2020

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jun 10, 2020

Signed-off-by: David Gageot [email protected]

@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

Merging #4309 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4309   +/-   ##
=======================================
  Coverage   71.95%   71.96%           
=======================================
  Files         323      323           
  Lines       12395    12404    +9     
=======================================
+ Hits         8919     8926    +7     
- Misses       2912     2913    +1     
- Partials      564      565    +1     
Impacted Files Coverage Δ
cmd/skaffold/app/cmd/init.go 100.00% <100.00%> (ø)
pkg/skaffold/build/buildpacks/init.go 93.75% <100.00%> (+2.44%) ⬆️
...affold/kubernetes/portforward/kubectl_forwarder.go 60.97% <0.00%> (-2.44%) ⬇️

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 a3b2132...5187bdd. Read the comment docs.

@dgageot
Copy link
Contributor Author

dgageot commented Jun 11, 2020

ping @nkubala @briandealwis

artifacts:
- image: skaffold-buildpacks
buildpacks:
builder: "gcr.io/buildpacks/builder"
Copy link
Member

Choose a reason for hiding this comment

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

In light of #4313, this should be with :v1

case file == "requirements.txt":
if _, err := os.Stat(filepath.Join(filepath.Dir(path), "Procfile")); err == nil {
valid = true
}
Copy link
Member

Choose a reason for hiding this comment

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

The boolean return doesn't quite capture enough. We should be able to return output a message here along the lines of "...$path seems to be a Python project, but Buildpacks requires a Procfile". Or maybe this framework needs the ability to register a follow-up action (REQUIRES_PROCFILE) so that the CLI/UI/IDE can offer the user some detail as to why it failed.

A todo for now is fine.

@dgageot dgageot force-pushed the python-buildpack branch from 864e692 to 5187bdd Compare June 11, 2020 20:11
@dgageot dgageot merged commit 00c0fba into GoogleContainerTools:master Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants