Skip to content

Commit

Permalink
Add missing packages to build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed May 5, 2021
1 parent 015e850 commit 0328f51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sanic_openapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

swagger_blueprint = openapi2_blueprint

__version__ = "21.3.0"
__version__ = "21.3.1"
__all__ = [
"openapi2_blueprint",
"swagger_blueprint",
Expand Down
14 changes: 10 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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.")

Expand All @@ -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,
Expand Down

0 comments on commit 0328f51

Please sign in to comment.