Skip to content

Commit

Permalink
Fix packaging mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
janbuchar committed Mar 26, 2019
1 parent 5ad52e4 commit 89d41a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ First, you need to initialize the extension and bind it to your app.

```python
from flask import Flask
from apistrap import FlaskApistrap
from apistrap.flask import FlaskApistrap
app = Flask(__name__)
oapi = FlaskApistrap()
oapi.init_app(app)
Expand Down Expand Up @@ -66,7 +66,7 @@ the same with AioHTTP web routes. Also, you still have to put the route decorato
from schematics import Model
from schematics.types import StringType
from flask import Flask, jsonify
from apistrap import FlaskApistrap
from apistrap.flask import FlaskApistrap

app = Flask(__name__)
oapi = FlaskApistrap()
Expand Down Expand Up @@ -97,7 +97,7 @@ Note that the doc block will be parsed and used in the API specification as a de
from schematics import Model
from schematics.types import StringType
from flask import Flask
from apistrap import FlaskApistrap
from apistrap.flask import FlaskApistrap

app = Flask(__name__)
oapi = FlaskApistrap()
Expand Down Expand Up @@ -135,7 +135,7 @@ change the URL of the UI with `oapi.ui_url = "/docs_url/`. This feature can be t

```python
from flask import Flask, jsonify
from apistrap import FlaskApistrap
from apistrap.flask import FlaskApistrap

app = Flask(__name__)
oapi = FlaskApistrap()
Expand Down
3 changes: 0 additions & 3 deletions apistrap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
from .aiohttp import AioHTTPApistrap
from .flask import FlaskApistrap

__version__ = "0.3.0"
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
author_email='hello@iterait.com',
license='MIT',
packages=find_packages('.', exclude='tests'),
include_package_data=True,
package_data={
'apistrap': ['templates/*.html']
},
zip_safe=False,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-mock', 'pytest-flask', 'pytest-aiohttp'],
Expand Down

0 comments on commit 89d41a0

Please sign in to comment.