fix: 依赖改为可选

This commit is contained in:
duanchao.bill
2022-05-07 10:42:55 +08:00
parent 654edabe78
commit c69acad9e4
2 changed files with 31 additions and 5 deletions

View File

@@ -45,14 +45,17 @@ filetype = {version = "^1.0.7", optional = true}
Brotli = "^1.0.9"
jinja2 = "^3.0.3"
toml = "^0.10.2"
sqlalchemy = "^1.4.36"
cython = "^0.29.28"
thriftpy2 = "^0.4.14"
thrift = "^0.16.0"
sqlalchemy = {version = "^1.4.36", optional = true}
pymysql = {version = "^1.0.2",optional = true}
cython = {version = "^0.29.28", optional = true}
thriftpy2 = {version = "^0.4.14", optional = true}
thrift = {version = "^0.16.0", optional = true}
[tool.poetry.extras]
allure = ["allure-pytest"] # pip install "httprunner[allure]", poetry install -E allure
upload = ["requests-toolbelt", "filetype"] # pip install "httprunner[upload]", poetry install -E upload
sql = ["sqlalchemy","pymysql"] # pip install "httprunner[sql]", poetry install -E sql
thrift = ["cython","thrift","thriftpy2"] # pip install "httprunner[thrift]", poetry install -E sql
[tool.poetry.dev-dependencies]
coverage = "^4.5.4"