Skip to content

Commit 55eb5b1

Browse files
authored
Merge branch 'master' into pr-by-releng-bot-1772696397
2 parents 8a683ef + 159ec39 commit 55eb5b1

File tree

592 files changed

+75565
-15960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

592 files changed

+75565
-15960
lines changed

go.mod

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
module github.com/cloudfoundry/python-buildpack
22

3-
go 1.23.4
3+
go 1.24.0
44

55
require (
66
github.com/Dynatrace/libbuildpack-dynatrace v1.8.0
77
github.com/blang/semver v3.5.1+incompatible
8-
github.com/cloudfoundry/libbuildpack v0.0.0-20251202224209-b07cc3dab65e
8+
github.com/cloudfoundry/libbuildpack v0.0.0-20260306121953-8ab9253c8181
99
github.com/cloudfoundry/switchblade v0.9.4
1010
github.com/golang/mock v1.6.0
1111
github.com/kr/text v0.2.0
12-
github.com/onsi/ginkgo v1.16.5
13-
github.com/onsi/gomega v1.36.2
12+
github.com/onsi/ginkgo/v2 v2.28.1
13+
github.com/onsi/gomega v1.39.0
1414
github.com/sclevine/spec v1.4.0
15-
golang.org/x/crypto v0.32.0
15+
golang.org/x/crypto v0.47.0
1616
gopkg.in/ini.v1 v1.67.0
1717
)
1818

1919
require (
2020
code.cloudfoundry.org/lager v2.0.0+incompatible // indirect
2121
github.com/Masterminds/semver v1.5.0 // indirect
22+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
2223
github.com/Microsoft/go-winio v0.6.2 // indirect
2324
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
2425
github.com/containerd/log v0.1.0 // indirect
@@ -30,18 +31,19 @@ require (
3031
github.com/felixge/httpsnoop v1.0.4 // indirect
3132
github.com/fsnotify/fsnotify v1.8.0 // indirect
3233
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
33-
github.com/go-logr/logr v1.4.2 // indirect
34+
github.com/go-logr/logr v1.4.3 // indirect
3435
github.com/go-logr/stdr v1.2.2 // indirect
36+
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
3537
github.com/gogo/protobuf v1.3.2 // indirect
36-
github.com/google/go-cmp v0.6.0 // indirect
38+
github.com/google/go-cmp v0.7.0 // indirect
39+
github.com/google/pprof v0.0.0-20260115054156-294ebfa9ad83 // indirect
3740
github.com/moby/docker-image-spec v1.3.1 // indirect
3841
github.com/nxadm/tail v1.4.11 // indirect
3942
github.com/opencontainers/go-digest v1.0.0 // indirect
4043
github.com/opencontainers/image-spec v1.1.0 // indirect
4144
github.com/paketo-buildpacks/packit v1.3.1 // indirect
4245
github.com/paketo-buildpacks/packit/v2 v2.16.0 // indirect
4346
github.com/pkg/errors v0.9.1 // indirect
44-
github.com/rogpeppe/go-internal v1.13.1 // indirect
4547
github.com/teris-io/shortid v0.0.0-20220617161101-71ec9f2aa569 // indirect
4648
github.com/tidwall/gjson v1.18.0 // indirect
4749
github.com/tidwall/match v1.1.1 // indirect
@@ -53,14 +55,16 @@ require (
5355
go.opentelemetry.io/otel/metric v1.32.0 // indirect
5456
go.opentelemetry.io/otel/sdk v1.32.0 // indirect
5557
go.opentelemetry.io/otel/trace v1.32.0 // indirect
56-
golang.org/x/net v0.34.0 // indirect
57-
golang.org/x/sys v0.29.0 // indirect
58-
golang.org/x/text v0.21.0 // indirect
58+
go.yaml.in/yaml/v3 v3.0.4 // indirect
59+
golang.org/x/mod v0.32.0 // indirect
60+
golang.org/x/net v0.49.0 // indirect
61+
golang.org/x/sync v0.19.0 // indirect
62+
golang.org/x/sys v0.40.0 // indirect
63+
golang.org/x/text v0.33.0 // indirect
64+
golang.org/x/tools v0.41.0 // indirect
5965
google.golang.org/genproto/googleapis/api v0.0.0-20241104194629-dd2ea8efbc28 // indirect
6066
google.golang.org/genproto/googleapis/rpc v0.0.0-20241104194629-dd2ea8efbc28 // indirect
61-
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
6267
gopkg.in/yaml.v2 v2.4.0 // indirect
63-
gopkg.in/yaml.v3 v3.0.1 // indirect
6468
)
6569

6670
exclude google.golang.org/genproto v0.0.0-20230403163135-c38d8f061ccd

go.sum

Lines changed: 48 additions & 24 deletions
Large diffs are not rendered by default.

manifest.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,6 @@ dependencies:
6565
- cflinuxfs3
6666
source: https://github.com/conda-forge/miniforge/archive/refs/tags/24.7.1-0.tar.gz
6767
source_sha256: ca2f3cea67d6a1dbfd6acb9743891014768b12ad774755c57fbbcbfcd1fd8200
68-
- name: pip
69-
version: '25.2'
70-
uri: https://buildpacks.cloudfoundry.org/dependencies/pip/pip_25.2_linux_noarch_any-stack_b15ae02f.tgz
71-
sha256: b15ae02f5b72bf9911bc550c7d8cf8210c26eff7047ba9f19446855ae8cb6749
72-
cf_stacks: []
73-
source: https://files.pythonhosted.org/packages/20/16/650289cd3f43d5a2fadfd98c68bd1e1e7f2550a1a5326768cddfbcedb2c5/pip-25.2.tar.gz
74-
source_sha256: 578283f006390f85bb6282dffb876454593d637f5d1be494b5202ce4877e71f2
7568
- name: pip
7669
version: '25.2'
7770
uri: https://buildpacks.cloudfoundry.org/dependencies/pip/pip_25.2_linux_noarch_any-stack_7dc1e988.tgz
@@ -82,12 +75,12 @@ dependencies:
8275
source: https://files.pythonhosted.org/packages/20/16/650289cd3f43d5a2fadfd98c68bd1e1e7f2550a1a5326768cddfbcedb2c5/pip-25.2.tar.gz
8376
source_sha256: 578283f006390f85bb6282dffb876454593d637f5d1be494b5202ce4877e71f2
8477
- name: pip
85-
version: '25.3'
86-
uri: https://buildpacks.cloudfoundry.org/dependencies/pip/pip_25.3_linux_noarch_any-stack_d4b0c622.tgz
87-
sha256: d4b0c62226e36bfc5f63b719e14f335182d0afa1bc8842dfba804bbb307d47e6
78+
version: 26.0.1
79+
uri: https://buildpacks.cloudfoundry.org/dependencies/pip/pip_26.0.1_linux_noarch_any-stack_0750a38b.tgz
80+
sha256: 0750a38b65c6038a0415a4ff15ef2df61fcaa6c1e5ec9d8c6678222dbac91306
8881
cf_stacks: []
89-
source: https://files.pythonhosted.org/packages/fe/6e/74a3f0179a4a73a53d66ce57fdb4de0080a8baa1de0063de206d6167acc2/pip-25.3.tar.gz
90-
source_sha256: 8d0538dbbd7babbd207f261ed969c65de439f6bc9e5dbd3b3b9a77f25d95f343
82+
source: https://files.pythonhosted.org/packages/48/83/0d7d4e9efe3344b8e2fe25d93be44f64b65364d3c8d7bc6dc90198d5422e/pip-26.0.1.tar.gz
83+
source_sha256: c4037d8a277c89b320abe636d59f91e6d0922d08a05b60e85e53b296613346d8
9184
- name: pipenv
9285
version: 2024.4.1
9386
uri: https://buildpacks.cloudfoundry.org/dependencies/pipenv/pipenv_2024.4.1_linux_noarch_cflinuxfs3_b3c74c78.tgz
@@ -210,13 +203,13 @@ dependencies:
210203
source: https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz
211204
source_sha256: f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c
212205
- name: setuptools
213-
version: 80.10.1
214-
uri: https://buildpacks.cloudfoundry.org/dependencies/setuptools/setuptools_80.10.1_linux_noarch_any-stack_e8745ea3.tgz
215-
sha256: e8745ea31b2af10b2056552a65181b52f8fcc645f1ac13a4f6440525fcc896d1
206+
version: 80.10.2
207+
uri: https://buildpacks.cloudfoundry.org/dependencies/setuptools/setuptools_80.10.2_linux_noarch_any-stack_61985ee9.tgz
208+
sha256: 61985ee962946676304c954fd40e7d292b75f5e0e90fbe6c41a2bea831951b22
216209
cf_stacks:
217210
- cflinuxfs4
218-
source: https://files.pythonhosted.org/packages/86/ff/f75651350db3cf2ef767371307eb163f3cc1ac03e16fdf3ac347607f7edb/setuptools-80.10.1.tar.gz
219-
source_sha256: bf2e513eb8144c3298a3bd28ab1a5edb739131ec5c22e045ff93cd7f5319703a
211+
source: https://files.pythonhosted.org/packages/76/95/faf61eb8363f26aa7e1d762267a8d602a1b26d4f3a1e758e92cb3cb8b054/setuptools-80.10.2.tar.gz
212+
source_sha256: 8b0e9d10c784bf7d262c4e5ec5d4ec94127ce206e8738f29a437945fbc219b70
220213
include_files:
221214
- CHANGELOG
222215
- CONTRIBUTING.md

scripts/.util/tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function util::tools::ginkgo::install() {
4040
pushd /tmp > /dev/null || return
4141
GOBIN="${dir}" \
4242
go install \
43-
github.com/onsi/ginkgo/ginkgo@latest
43+
github.com/onsi/ginkgo/v2/ginkgo@latest
4444
popd > /dev/null || return
4545
fi
4646
}

src/python/brats/brats_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/cloudfoundry/libbuildpack/bratshelper"
1313
"github.com/cloudfoundry/libbuildpack/cutlass"
1414

15-
. "github.com/onsi/ginkgo"
15+
. "github.com/onsi/ginkgo/v2"
1616
. "github.com/onsi/gomega"
1717
)
1818

src/python/brats/brats_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package brats_test
33
import (
44
"github.com/cloudfoundry/libbuildpack/bratshelper"
55
"github.com/cloudfoundry/libbuildpack/cutlass"
6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
"golang.org/x/crypto/bcrypt"
99
)

src/python/conda/conda_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package conda_test
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66

77
"testing"

src/python/conda/conda_test.go

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/cloudfoundry/libbuildpack"
1212
"github.com/cloudfoundry/libbuildpack/ansicleaner"
1313
"github.com/golang/mock/gomock"
14-
. "github.com/onsi/ginkgo"
14+
. "github.com/onsi/ginkgo/v2"
1515
. "github.com/onsi/gomega"
1616
)
1717

@@ -37,10 +37,13 @@ var _ = Describe("Conda", func() {
3737
BeforeEach(func() {
3838
buildDir, err = os.MkdirTemp("", "python-buildpack.build.")
3939
Expect(err).To(BeNil())
40+
DeferCleanup(os.RemoveAll, buildDir)
4041
cacheDir, err = os.MkdirTemp("", "python-buildpack.cache.")
4142
Expect(err).To(BeNil())
43+
DeferCleanup(os.RemoveAll, cacheDir)
4244
depsDir, err = os.MkdirTemp("", "python-buildpack.deps.")
4345
Expect(err).To(BeNil())
46+
DeferCleanup(os.RemoveAll, depsDir)
4447
depsIdx = "13"
4548
depDir = filepath.Join(depsDir, depsIdx)
4649

@@ -59,13 +62,6 @@ var _ = Describe("Conda", func() {
5962
subject = conda.New(mockInstaller, mockStager, mockCommand, logger)
6063
})
6164

62-
AfterEach(func() {
63-
mockCtrl.Finish()
64-
Expect(os.RemoveAll(buildDir)).To(Succeed())
65-
Expect(os.RemoveAll(cacheDir)).To(Succeed())
66-
Expect(os.RemoveAll(depsDir)).To(Succeed())
67-
})
68-
6965
Describe("Version", func() {
7066
Context("runtime.txt specifies python 3", func() {
7167
BeforeEach(func() {
@@ -129,13 +125,12 @@ var _ = Describe("Conda", func() {
129125

130126
BeforeEach(func() {
131127
condaPkgs = os.Getenv("CONDA_PKGS_DIRS")
132-
})
133-
134-
AfterEach(func() {
135-
if condaPkgs != "" {
136-
os.Setenv("CONDA_PKGS_DIRS", condaPkgs)
137-
}
138-
os.Unsetenv("BP_DEBUG")
128+
DeferCleanup(func() {
129+
if condaPkgs != "" {
130+
os.Setenv("CONDA_PKGS_DIRS", condaPkgs)
131+
}
132+
os.Unsetenv("BP_DEBUG")
133+
})
139134
})
140135

141136
It("uses staging cache for conda cache", func() {

src/python/finalize/cli/cli_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main_test
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66

77
"testing"

src/python/finalize/finalize.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ func (f *Finalizer) HandleCollectstatic() error {
9595
f.Log.Info("Running python %s collectstatic --noinput --traceback", managePyPath)
9696
output := new(bytes.Buffer)
9797
if err = f.Command.Execute(f.Stager.BuildDir(), output, text.NewIndentWriter(os.Stderr, []byte(" ")), "python", managePyPath, "collectstatic", "--noinput", "--traceback"); err != nil {
98-
f.Log.Error(fmt.Sprintf(` ! Error while running '$ python %s collectstatic --noinput'.
98+
f.Log.Error(` ! Error while running '$ python %s collectstatic --noinput'.
9999
See traceback above for details.
100100
101101
You may need to update application code to resolve this error.
102102
Or, you can disable collectstatic for this application:
103103
104104
$ cf set-env <app> DISABLE_COLLECTSTATIC 1
105105
106-
https://devcenter.heroku.com/articles/django-assets`, managePyPath))
106+
https://devcenter.heroku.com/articles/django-assets`, managePyPath)
107107
return err
108108
}
109109

0 commit comments

Comments
 (0)