change: make allure-pytest, requests-toolbelt, filetype as optional dependencies

This commit is contained in:
debugtalk
2020-05-28 18:21:33 +08:00
parent 9e0bd12b6c
commit ed3c937be6
3 changed files with 17 additions and 5 deletions

View File

@@ -14,6 +14,10 @@
- fix: ensure compatibility with deprecated cli args in v2
- fix: UnicodeDecodeError when request body in protobuf
**Changed**
- change: make `allure-pytest`, `requests-toolbelt`, `filetype` as optional dependencies
## 3.0.5 (2020-05-22)
**Added**

10
poetry.lock generated
View File

@@ -173,7 +173,7 @@ test = ["pytest (>=4.0.0)", "pytest-cov", "mypy", "black", "isort", "requests",
category = "main"
description = "Infer file type and MIME type of any file/buffer. No external dependencies."
name = "filetype"
optional = false
optional = true
python-versions = "*"
version = "1.0.7"
@@ -444,7 +444,7 @@ socks = ["PySocks (>=1.5.6,<1.5.7 || >1.5.7)", "win-inet-pton"]
category = "main"
description = "A utility belt for advanced users of python-requests"
name = "requests-toolbelt"
optional = false
optional = true
python-versions = "*"
version = "0.9.1"
@@ -567,8 +567,12 @@ version = "3.1.0"
docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
testing = ["jaraco.itertools", "func-timeout"]
[extras]
allure = ["allure-pytest"]
upload = ["requests-toolbelt", "filetype"]
[metadata]
content-hash = "28adf69bdbc4dff08967e2a901450791c90acb93bdc83443084dbeaa5406b116"
content-hash = "3b5147c8c95480574c9eaa8f035c536cf18535766f60f768d2e714b257511dae"
python-versions = "^3.6"
[metadata.files]

View File

@@ -30,10 +30,8 @@ include = ["docs/CHANGELOG.md"]
[tool.poetry.dependencies]
python = "^3.6"
requests = "^2.22.0"
requests-toolbelt = "^0.9.1"
pyyaml = "^5.1.2"
jinja2 = "^2.10.3"
filetype = "^1.0.5"
pydantic = "^1.4"
loguru = "^0.4.1"
jmespath = "^0.9.5"
@@ -41,6 +39,12 @@ black = "^19.10b0"
pytest = "^5.4.2"
pytest-html = "^2.1.1"
allure-pytest = {version = "^2.8.16", optional = true}
requests-toolbelt = {version = "^0.9.1", optional = true}
filetype = {version = "^1.0.7", optional = true}
[tool.poetry.extras]
allure = ["allure-pytest"] # poetry install -E allure
upload = ["requests-toolbelt", "filetype"] # poetry install -E upload
[tool.poetry.dev-dependencies]
coverage = "^4.5.4"