Skip to content

Commit

Permalink
fix: 依赖改为可选
Browse files Browse the repository at this point in the history
  • Loading branch information
billduan committed May 7, 2022
1 parent 404cd3c commit 998b76b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
25 changes: 24 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 998b76b

Please sign in to comment.