From 7dfa855d23eef0af71218ad116a04e1076b5f892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Prpi=C4=8D?= Date: Thu, 10 Nov 2022 16:01:00 -0500 Subject: [PATCH] Add schemas directory to package; define manifest to include docs/tests --- MANIFEST.in | 7 +++++++ setup.py | 38 +++++++++++++++++++++++--------------- 2 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..a2c3b6a --- /dev/null +++ b/MANIFEST.in @@ -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] diff --git a/setup.py b/setup.py index b230448..56063fd 100644 --- a/setup.py +++ b/setup.py @@ -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: @@ -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": [