File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99install :
1010 - python setup.py install
1111script :
12- - python -m pytest tests/
12+ - python setup.py test
Original file line number Diff line number Diff line change 1010with open ("README.md" , "r" ) as fh :
1111 long_description = fh .read ()
1212
13+ test_dependencies = [
14+ "pytest>=5,<6" ,
15+ "pytest-asyncio<1" ,
16+ ]
17+
1318setuptools .setup (
1419 name = "slack_bolt" ,
1520 version = __version__ ,
2328 package_dir = {"" : "src" },
2429 py_modules = [splitext (basename (path ))[0 ] for path in glob ('src/*.py' )],
2530 setup_requires = ["pytest-runner==5.2" ],
26- tests_require = [
27- "pytest>=5,<6" ,
28- "pytest-asyncio<1" ,
29- ],
31+ # python setup.py test
32+ tests_require = test_dependencies ,
3033 install_requires = [
3134 "slackclient>=2,<3" , # TODO: will be replaced with slack_sdk==3.0.0
3235 "aiohttp>=3,<4" , # slackclient depends on aiohttp
3336 ],
3437 extras_require = {
38+ # pip install -e ".[testing]"
39+ # python -m pytest tests/scenario_tests/test_async_events.py
40+ "testing" : test_dependencies ,
41+ # pip install -e ".[adapters]"
3542 "adapters" : [
3643 # used only under src/slack_bolt/adapter
3744 "Django>=3,<4" ,
You can’t perform that action at this time.
0 commit comments