Skip to content

Commit

Permalink
version 1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Mar 17, 2022
1 parent 911e21d commit 54114ca
Show file tree
Hide file tree
Showing 8 changed files with 315 additions and 7 deletions.
296 changes: 296 additions & 0 deletions docs/api-docs/slack_bolt/adapter/falcon/async_resource.html

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion docs/api-docs/slack_bolt/adapter/falcon/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ <h1 class="title">Module <code>slack_bolt.adapter.falcon</code></h1>
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">from .resource import SlackAppResource</code></pre>
<pre><code class="python"># Don&#39;t add async module imports here
from .resource import SlackAppResource</code></pre>
</details>
</section>
<section>
<h2 class="section-title" id="header-submodules">Sub-modules</h2>
<dl>
<dt><code class="name"><a title="slack_bolt.adapter.falcon.async_resource" href="async_resource.html">slack_bolt.adapter.falcon.async_resource</a></code></dt>
<dd>
<div class="desc"></div>
</dd>
<dt><code class="name"><a title="slack_bolt.adapter.falcon.resource" href="resource.html">slack_bolt.adapter.falcon.resource</a></code></dt>
<dd>
<div class="desc"></div>
Expand All @@ -58,6 +63,7 @@ <h1>Index</h1>
</li>
<li><h3><a href="#header-submodules">Sub-modules</a></h3>
<ul>
<li><code><a title="slack_bolt.adapter.falcon.async_resource" href="async_resource.html">slack_bolt.adapter.falcon.async_resource</a></code></li>
<li><code><a title="slack_bolt.adapter.falcon.resource" href="resource.html">slack_bolt.adapter.falcon.resource</a></code></li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion docs/api-docs/slack_bolt/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_bolt.version</code></h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-bolt/&#34;&#34;&#34;
__version__ = &#34;1.11.6&#34;</code></pre>
__version__ = &#34;1.12.0&#34;</code></pre>
</details>
</section>
<section>
Expand Down
4 changes: 3 additions & 1 deletion examples/falcon/async_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@


# @app.command("/bolt-py-proto", [lambda body: body["team_id"] == "T03E94MJU"])
async def test_command(logger: logging.Logger, body: dict, ack: AsyncAck, respond: AsyncRespond):
async def test_command(
logger: logging.Logger, body: dict, ack: AsyncAck, respond: AsyncRespond
):
logger.info(body)
await ack("thanks!")
await respond(
Expand Down
4 changes: 3 additions & 1 deletion examples/falcon/async_oauth_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@


# @app.command("/bolt-py-proto", [lambda body: body["team_id"] == "T03E94MJU"])
async def test_command(logger: logging.Logger, body: dict, ack: AsyncAck, respond: AsyncRespond):
async def test_command(
logger: logging.Logger, body: dict, ack: AsyncAck, respond: AsyncRespond
):
logger.info(body)
await ack("thanks!")
await respond(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
),
include_package_data=True, # MANIFEST.in
install_requires=[
"slack_sdk>=3.9.0,<4",
"slack_sdk>=3.15.2,<4",
],
setup_requires=["pytest-runner==5.2"],
tests_require=async_test_dependencies,
Expand Down
4 changes: 3 additions & 1 deletion slack_bolt/adapter/falcon/async_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class AsyncSlackAppResource:

def __init__(self, app: AsyncApp): # type: ignore
if falcon_version.__version__.startswith("2."):
raise BoltError("This ASGI compatible adapter requires Falcon version >= 3.0")
raise BoltError(
"This ASGI compatible adapter requires Falcon version >= 3.0"
)

self.app = app

Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-bolt/"""
__version__ = "1.11.6"
__version__ = "1.12.0"

0 comments on commit 54114ca

Please sign in to comment.