feat: assert python3 package is ready with specified version

This commit is contained in:
debugtalk
2022-06-14 00:40:53 +08:00
parent cc5663ddec
commit f23309ab7f
9 changed files with 63 additions and 49 deletions

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),

View File

@@ -1,4 +1,4 @@
# NOTE: Generated By hrp v4.1.2, DO NOT EDIT!
# NOTE: Generated By hrp v4.1.3, DO NOT EDIT!
import sys
import os

View File

@@ -1,4 +1,4 @@
// NOTE: Generated By hrp v4.1.2, DO NOT EDIT!
// NOTE: Generated By hrp v4.1.3, DO NOT EDIT!
package main
import (