|
1 | 1 | #!/usr/bin/env python |
2 | 2 | import os |
3 | | -from glob import glob |
4 | | -from os.path import splitext, basename |
5 | 3 |
|
6 | 4 | import setuptools |
7 | 5 |
|
| 6 | +here = os.path.abspath(os.path.dirname(__file__)) |
| 7 | + |
8 | 8 | __version__ = None |
9 | | -exec(open("slack_bolt/version.py").read()) |
| 9 | +exec(open(f"{here}/slack_bolt/version.py").read()) |
10 | 10 |
|
11 | | -with open("README.md", "r") as fh: |
| 11 | +with open(f"{here}/README.md", "r") as fh: |
12 | 12 | long_description = fh.read() |
13 | 13 |
|
14 | | -here = os.path.abspath(os.path.dirname(__file__)) |
15 | | - |
16 | 14 | test_dependencies = [ |
17 | 15 | "pytest>=5,<6", |
18 | 16 | "pytest-asyncio<1", # for async |
|
23 | 21 | setuptools.setup( |
24 | 22 | name="slack_bolt", |
25 | 23 | version=__version__, |
| 24 | + license="MIT", |
26 | 25 | author="Slack Technologies, Inc.", |
27 | 26 | author_email="opensource@slack.com", |
28 | 27 | description="The Bolt Framework for Python", |
29 | 28 | long_description=long_description, |
30 | 29 | long_description_content_type="text/markdown", |
31 | 30 | 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", ], |
36 | 41 | setup_requires=["pytest-runner==5.2"], |
37 | | - # python setup.py test |
38 | 42 | tests_require=test_dependencies, |
39 | | - install_requires=["slack_sdk==3.0.0a1",], |
| 43 | + test_suite="tests", |
40 | 44 | extras_require={ |
41 | 45 | # pip install -e ".[async]" |
42 | 46 | "async": [ |
|
0 commit comments