Skip to content

Commit

Permalink
Tweak scripts and apply black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Aug 26, 2020
1 parent 33fa9ee commit a152528
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
3 changes: 2 additions & 1 deletion samples/google_cloud_functions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def hello_bolt_app(request):
"""
return handler.handle(request)


# Step1: Create a new Slack App: https://api.slack.com/apps
# Bot Token Scopes: chat:write, commands, app_mentions:read

Expand All @@ -57,4 +58,4 @@ def hello_bolt_app(request):
# Step5: Set Request URL
# Set https://us-central1-YOUR_PROJECT_NAME.cloudfunctions.net/hello_bolt_app to the following:
# * slash command: /hello-bolt-python-gcp
# * Events Subscriptions & add `app_mention` event
# * Events Subscriptions & add `app_mention` event
4 changes: 2 additions & 2 deletions scripts/build_pypi_package.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

./scripts/run_tests.sh && \
pip install -U pip && \
pip install -U pip && \
python setup.py test && \
pip install twine wheel && \
rm -rf dist/ build/ slack_bolt.egg-info/ && \
python setup.py sdist bdist_wheel && \
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy_to_prod_pypi_org.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

./scripts/run_tests.sh && \
pip install -U pip && \
pip install -U pip && \
python setup.py test && \
pip install twine wheel && \
rm -rf dist/ build/ slack_bolt.egg-info/ && \
python setup.py sdist bdist_wheel && \
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy_to_test_pypi_org.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

./scripts/run_tests.sh && \
pip install -U pip && \
pip install -U pip && \
python setup.py test && \
pip install twine wheel && \
rm -rf dist/ build/ slack_bolt.egg-info/ && \
python setup.py sdist bdist_wheel && \
Expand Down
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@
long_description_content_type="text/markdown",
url="https://github.com/slackapi/bolt-python",
packages=setuptools.find_packages(
exclude=[
"samples",
"integration_tests",
"tests",
"tests.*",
]
exclude=["samples", "integration_tests", "tests", "tests.*",]
),
include_package_data=True, # MANIFEST.in
install_requires=["slack_sdk==3.0.0a4", ],
install_requires=["slack_sdk==3.0.0a4",],
setup_requires=["pytest-runner==5.2"],
tests_require=test_dependencies,
test_suite="tests",
Expand Down

0 comments on commit a152528

Please sign in to comment.