From 0328f51b0e9c5f1544d6bdb3a2296a67332bca68 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Wed, 5 May 2021 11:28:34 +0300 Subject: [PATCH] Add missing packages to build --- sanic_openapi/__init__.py | 2 +- setup.py | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/sanic_openapi/__init__.py b/sanic_openapi/__init__.py index 37deeba..282aefc 100644 --- a/sanic_openapi/__init__.py +++ b/sanic_openapi/__init__.py @@ -3,7 +3,7 @@ swagger_blueprint = openapi2_blueprint -__version__ = "21.3.0" +__version__ = "21.3.1" __all__ = [ "openapi2_blueprint", "swagger_blueprint", diff --git a/setup.py b/setup.py index 56a47fb..ee53e13 100644 --- a/setup.py +++ b/setup.py @@ -5,13 +5,17 @@ import os import re -from setuptools import setup +from setuptools import find_packages, setup install_requires = ["sanic>=18.12.0", "pyyaml>=3.0.0"] dev_requires = ["black==19.3b0", "flake8==3.7.7", "isort==4.3.19"] -doc_requires = ["recommonmark==0.5.0", "sphinx==2.1.2", "sphinx-rtd-theme==0.4.3"] +doc_requires = [ + "recommonmark==0.5.0", + "sphinx==2.1.2", + "sphinx-rtd-theme==0.4.3", +] test_requires = [ "coverage==4.5.3", @@ -28,7 +32,9 @@ os.path.join(project_root, "sanic_openapi", "__init__.py"), "r", "latin1" ) as fp: try: - version = re.findall(r"^__version__ = \"([^']+)\"\r?$", fp.read(), re.M)[0] + version = re.findall( + r"^__version__ = \"([^']+)\"\r?$", fp.read(), re.M + )[0] except IndexError: raise RuntimeError("Unable to determine version.") @@ -44,7 +50,7 @@ description="Easily document your Sanic API with a UI.", long_description=long_description, long_description_content_type="text/markdown", - packages=["sanic_openapi"], + packages=find_packages(), package_data={"sanic_openapi": ["ui/*"]}, platforms="any", install_requires=install_requires,