feat: assert python3 package is ready with specified version

This commit is contained in:
debugtalk
2022-06-14 00:51:45 +08:00
parent cc5663ddec
commit f23309ab7f
9 changed files with 63 additions and 49 deletions
+2 -1
View File
@@ -8,10 +8,10 @@ import (
"path/filepath"
"time"
"github.com/httprunner/funplugin/fungo"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"
"github.com/httprunner/funplugin/fungo"
"github.com/httprunner/httprunner/v4/hrp"
"github.com/httprunner/httprunner/v4/hrp/internal/builtin"
"github.com/httprunner/httprunner/v4/hrp/internal/sdk"
@@ -208,6 +208,7 @@ func createPythonPlugin(projectName, venv string) error {
if venv == "" {
venv = filepath.Join(projectName, ".venv")
}
log.Info().Str("venv", venv).Msg("create python3 venv")
packages := []string{
fmt.Sprintf("funppy==%s", fungo.Version),
fmt.Sprintf("httprunner==%s", version.VERSION),