X Tutup
Skip to content

Commit ed80f3e

Browse files
committed
Fix build settings
1 parent ca2b4be commit ed80f3e

File tree

8 files changed

+18
-21
lines changed

8 files changed

+18
-21
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ A Python framework to build Slack apps in a flash with the latest platform featu
88
python -m venv env
99
source env/bin/activate
1010
pip install -U pip
11-
pip install -U slackclient
1211
pip install -U -i https://test.pypi.org/simple/ slack_bolt
1312
```
1413

maintainers_guide.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ python -m venv env
66
source env/bin/activate
77
pip install --upgrade pip
88
pip install twine wheel
9-
rm -rf dist/ build/
10-
python setup.py sdist bdist_wheel
9+
rm -rf dist/ build/ slack_bolt.egg-info/ && python setup.py sdist bdist_wheel
1110
twine check dist/*
1211
1312
# Deploy to test repository
1413
twine upload --repository testpypi dist/*
1514
# Test installation
16-
pip install -U slackclient
1715
pip install -U --index-url https://test.pypi.org/simple/ slack_bolt
1816
```

samples/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ def bot_message_deleted(logger):
147147
if __name__ == "__main__":
148148
app.start(3000)
149149

150-
# pip install slackclient
151150
# pip install -i https://test.pypi.org/simple/ slack_bolt
152151
# export SLACK_SIGNING_SECRET=***
153152
# export SLACK_BOT_TOKEN=xoxb-***

samples/async_app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ async def command(ack):
3535
if __name__ == "__main__":
3636
app.start(3000)
3737

38-
# pip install slackclient
3938
# pip install -i https://test.pypi.org/simple/ slack_bolt
4039
# export SLACK_SIGNING_SECRET=***
4140
# export SLACK_BOT_TOKEN=xoxb-***

samples/oauth_app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def button_click(logger, payload, ack, respond):
9494
if __name__ == "__main__":
9595
app.start(3000)
9696

97-
# pip install slackclient
9897
# pip install -i https://test.pypi.org/simple/ slack_bolt
9998
# export SLACK_SIGNING_SECRET=***
10099
# export SLACK_BOT_TOKEN=xoxb-***

samples/oauth_sqlite3_app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def handle_app_mentions(payload, say, logger):
2424
if __name__ == "__main__":
2525
app.start(3000)
2626

27-
# pip install slackclient
2827
# pip install -i https://test.pypi.org/simple/ slack_bolt
2928
# export SLACK_SIGNING_SECRET=***
3029
# export SLACK_BOT_TOKEN=xoxb-***

setup.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
#!/usr/bin/env python
22
import os
3-
from glob import glob
4-
from os.path import splitext, basename
53

64
import setuptools
75

6+
here = os.path.abspath(os.path.dirname(__file__))
7+
88
__version__ = None
9-
exec(open("slack_bolt/version.py").read())
9+
exec(open(f"{here}/slack_bolt/version.py").read())
1010

11-
with open("README.md", "r") as fh:
11+
with open(f"{here}/README.md", "r") as fh:
1212
long_description = fh.read()
1313

14-
here = os.path.abspath(os.path.dirname(__file__))
15-
1614
test_dependencies = [
1715
"pytest>=5,<6",
1816
"pytest-asyncio<1", # for async
@@ -23,20 +21,26 @@
2321
setuptools.setup(
2422
name="slack_bolt",
2523
version=__version__,
24+
license="MIT",
2625
author="Slack Technologies, Inc.",
2726
author_email="opensource@slack.com",
2827
description="The Bolt Framework for Python",
2928
long_description=long_description,
3029
long_description_content_type="text/markdown",
3130
url="https://github.com/slackapi/bolt-python",
32-
packages=setuptools.find_packages("slack_bolt"),
33-
package_dir={"": "slack_bolt"},
34-
py_modules=[splitext(basename(path))[0] for path in glob("slack_bolt/*.py")],
35-
include_package_data=True, # MANIFEST.in
31+
packages=setuptools.find_packages(
32+
exclude=[
33+
"samples",
34+
"integration_tests",
35+
"tests",
36+
"tests.*",
37+
]
38+
),
39+
include_package_data=True, # MANIFEST.in
40+
install_requires=["slack_sdk==3.0.0a1", ],
3641
setup_requires=["pytest-runner==5.2"],
37-
# python setup.py test
3842
tests_require=test_dependencies,
39-
install_requires=["slack_sdk==3.0.0a1",],
43+
test_suite="tests",
4044
extras_require={
4145
# pip install -e ".[async]"
4246
"async": [

slack_bolt/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.0a4"
1+
__version__ = "0.2.0a6"

0 commit comments

Comments
 (0)
X Tutup