Skip to content

Commit 0f9b045

Browse files
committed
Add Python-3.6.9 and Python-3.7.4
1 parent 1866a1c commit 0f9b045

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test:
99
@go test -v -race ./...
1010

1111
test/e2e:
12-
@go test -tags=e2e -v -race ./...
12+
@go test -tags=e2e -timeout=30m -v -race ./...
1313

1414
gen:
1515
@go generate ./rc

installer/installer_python_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ func TestPython_Install(t *testing.T) {
2424
version string
2525
}{
2626
{"2.7.16"},
27-
{"3.4.9"},
2827
{"3.4.10"},
29-
{"3.5.6"},
3028
{"3.5.7"},
31-
{"3.7.3"},
29+
{"3.6.9"},
30+
{"3.7.4"},
3231
}
3332

3433
for _, testcase := range testcases {

origin/package_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ func TestFindPackage(t *testing.T) {
1111
expected string
1212
}{
1313
{"2.7.15", "2.7.15"},
14-
{"3.6.8", "3.6.8"},
15-
{"3.7.2", "3.7.2"},
16-
{"https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz", "3.6.4"},
14+
{"https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz", "3.6.9"},
15+
{"3.7.4", "3.7.4"},
1716
}
1817
for _, test := range tests {
1918
pkg, err := FindPackage(test.arg)
@@ -27,6 +26,9 @@ func TestFindPackage(t *testing.T) {
2726
}
2827

2928
_, err := FindPackage("1.0.0")
29+
if err == nil {
30+
t.Fatal("want error, but got nil")
31+
}
3032
if !strings.HasPrefix(err.Error(), "missing package") {
3133
t.Errorf("Expected missing package error, got %v", err)
3234
}

origin/python_package.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ var pythonPackages = map[string]Package{
8686
"3.6.6": NewPythonPackage("https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz#9a080a86e1a8d85e45eee4b1cd0a18a2"),
8787
"3.6.7": NewPythonPackage("https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tgz#c83551d83bf015134b4b2249213f3f85"),
8888
"3.6.8": NewPythonPackage("https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz#48f393a04c2e66c77bfc114e589ec630"),
89+
"3.6.9": NewPythonPackage("https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz#ff7cdaef4846c89c1ec0d7b709bbd54d"),
8990

9091
"3.7.0": NewPythonPackage("https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz#41b6595deb4147a1ed517a7d9a580271"),
9192
"3.7.1": NewPythonPackage("https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz#99f78ecbfc766ea449c4d9e7eda19e83"),
9293
"3.7.2": NewPythonPackage("https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz#02a75015f7cd845e27b85192bb0ca4cb"),
9394
"3.7.3": NewPythonPackage("https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz#2ee10f25e3d1b14215d56c3882486fcf"),
95+
"3.7.4": NewPythonPackage("https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz#68111671e5b2db4aef7b9ab01bf0f9be"),
9496
}
9597

9698
func (p *pythonPackage) Type() PackageType {

0 commit comments

Comments
 (0)