Skip to content

Commit 422afa1

Browse files
authored
Add tests for twine (#2985)
1 parent 50a002b commit 422afa1

6 files changed

+21
-2
lines changed

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ require (
189189
sigs.k8s.io/yaml v1.4.0 // indirect
190190
)
191191

192+
replace github.com/jfrog/build-info-go => github.com/jfrog/build-info-go v1.8.9-0.20250529104758-6d769a684388
193+
192194
//replace github.com/jfrog/jfrog-cli-artifactory => github.com/jfrog/jfrog-cli-artifactory v0.2.5-0.20250514065555-2ad0e403ae04
193195

194196
//replace github.com/jfrog/jfrog-cli-core/v2 => github.com/jfrog/jfrog-cli-core/v2 v2.31.1-0.20250514055103-d3d0d25f7c85

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ github.com/jedib0t/go-pretty/v6 v6.6.5 h1:9PgMJOVBedpgYLI56jQRJYqngxYAAzfEUua+3N
176176
github.com/jedib0t/go-pretty/v6 v6.6.5/go.mod h1:Uq/HrbhuFty5WSVNfjpQQe47x16RwVGXIveNGEyGtHs=
177177
github.com/jfrog/archiver/v3 v3.6.1 h1:LOxnkw9pOn45DzCbZNFV6K0+6dCsQ0L8mR3ZcujO5eI=
178178
github.com/jfrog/archiver/v3 v3.6.1/go.mod h1:VgR+3WZS4N+i9FaDwLZbq+jeU4B4zctXL+gL4EMzfLw=
179-
github.com/jfrog/build-info-go v1.10.12 h1:KO/YUeKYtDrnpcmsXmwqr6akjzrwA0hSTUB+Op/HF88=
180-
github.com/jfrog/build-info-go v1.10.12/go.mod h1:JcISnovFXKx3wWf3p1fcMmlPdt6adxScXvoJN4WXqIE=
179+
github.com/jfrog/build-info-go v1.8.9-0.20250529104758-6d769a684388 h1:9fUZ5I3n2Ya7cq2z7JFntDbBz1Gq+q47UGmhetBb+jg=
180+
github.com/jfrog/build-info-go v1.8.9-0.20250529104758-6d769a684388/go.mod h1:JcISnovFXKx3wWf3p1fcMmlPdt6adxScXvoJN4WXqIE=
181181
github.com/jfrog/froggit-go v1.17.0 h1:20Ie787WO27SwB2MOHDvsR6yN7fA5WfRnuAbmUqz1Zs=
182182
github.com/jfrog/froggit-go v1.17.0/go.mod h1:HvDkfFfJwIdsXFdqaB+utvD2cLDRmaC3kF8otYb6Chw=
183183
github.com/jfrog/go-mockhttp v0.3.1 h1:/wac8v4GMZx62viZmv4wazB5GNKs+GxawuS1u3maJH8=

pip_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ func TestTwine(t *testing.T) {
223223
}{
224224
{"twine", "pyproject", "twine", "jfrog-python-example:1.0", []string{}, 2},
225225
{"twine-with-module", "pyproject", "twine-with-module", "twine-with-module", []string{"--module=twine-with-module"}, 2},
226+
{"twine-columns-env-long-filename", "pyprojectlongfilename", "twine-with-long-filename",
227+
"twine-with-long-filename", []string{"--module=twine-with-long-filename"}, 2},
226228
}
227229

228230
// Run test cases.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "jfrog-python-example-long-filename"
7+
version = "2.0.0.dev0+pr.17.br.test.in.artifactorydev.rc.6"
8+
description = "Project example for building Python project with JFrog products with long filename"
9+
authors = [
10+
{ name="JFrog", email="[email protected]" }
11+
]
12+
dependencies = [
13+
"PyYAML>3.11",
14+
"nltk"
15+
]

0 commit comments

Comments
 (0)