Skip to content

Commit

Permalink
Add schemas directory to package; define manifest to include docs/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mprpic committed Nov 11, 2022
1 parent f88c9e4 commit 7dfa855
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 15 deletions.
7 changes: 7 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include LICENSE
include *.md
recursive-include tests/ *.py *.md *.json
graft man
graft cvelib/schemas
global-exclude __pycache__
global-exclude *.py[co]
38 changes: 23 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
from setuptools import setup
from setuptools import find_namespace_packages, setup

requires = [
install_requires = [
"click>=7.1.2",
"requests>=2.24.0",
"jsonschema>=4.17.0",
]

tests_require = [
"pytest",
]

dev_require = [
*tests_require,
"black",
"click-man",
"flake8",
"isort",
"mypy",
"tox",
"types-click",
"types-requests",
]

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

with open("README.md") as f:
Expand Down Expand Up @@ -52,8 +60,8 @@
"Programming Language :: Python :: 3.11",
],
include_package_data=True,
packages=["cvelib"],
install_requires=requires,
packages=find_namespace_packages(),
install_requires=install_requires,
extras_require=extras_require,
entry_points={
"console_scripts": [
Expand Down

0 comments on commit 7dfa855

Please sign in to comment.