Skip to content

Commit

Permalink
Replace deprecated test_requires with extras_require
Browse files Browse the repository at this point in the history
List all dependencies needed to run all stages in tox.ini.
  • Loading branch information
mprpic committed Apr 21, 2022
1 parent dfb99b7 commit fcdfdef
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,19 @@
"requests>=2.24.0",
]

test_requires = ["pytest"]
extras_require = {
"dev": [
"black",
"click-man",
"flake8",
"isort",
"mypy",
"pytest",
"tox",
"types-click",
"types-requests",
]
}

with open("README.md") as f:
readme = f.read()
Expand Down Expand Up @@ -42,7 +54,7 @@
include_package_data=True,
packages=["cvelib"],
install_requires=requires,
tests_require=test_requires,
extras_require=extras_require,
entry_points={
"console_scripts": [
"cve = cvelib.cli:cli",
Expand Down

0 comments on commit fcdfdef

Please sign in to comment.