-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuring with pyproject.toml (#996)
* move configuration to pyproject.toml Co-authored-by: Kazuhiro Sera <seratch@gmail.com>
- Loading branch information
1 parent
9209e7b
commit 90467fb
Showing
19 changed files
with
139 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,53 @@ | ||
# black project prefers pyproject.toml | ||
# that's why we have this file in addition to other setting files | ||
[build-system] | ||
requires = ["setuptools", "pytest-runner==5.2", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "slack_bolt" | ||
dynamic = ["version", "readme", "dependencies"] | ||
description = "The Bolt Framework for Python" | ||
license = { text = "MIT" } | ||
authors = [{ name = "Slack Technologies, LLC", email = "opensource@slack.com" }] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
requires-python = ">=3.6" | ||
|
||
|
||
[project.urls] | ||
homepage = "https://github.com/slackapi/bolt-python" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["slack_bolt*"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "slack_bolt.version.__version__" } | ||
readme = { file = ["README.md"], content-type = "text/markdown" } | ||
dependencies = { file = ["requirements.txt"] } | ||
|
||
[tool.distutils.bdist_wheel] | ||
universal = true | ||
|
||
[tool.black] | ||
line-length = 125 | ||
line-length = 125 | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
log_file = "logs/pytest.log" | ||
log_file_level = "DEBUG" | ||
log_format = "%(asctime)s %(levelname)s %(message)s" | ||
log_date_format = "%Y-%m-%d %H:%M:%S" | ||
filterwarnings = [ | ||
"ignore:\"@coroutine\" decorator is deprecated since Python 3.8, use \"async def\" instead:DeprecationWarning", | ||
"ignore:The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.:DeprecationWarning", | ||
] | ||
asyncio_mode = "auto" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
slack_sdk>=3.25.0,<4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# pip install -r requirements/adapter.txt | ||
# NOTE: any of async ones requires pip install -r requirements/async.txt too | ||
# used only under slack_bolt/adapter | ||
boto3<=2 | ||
bottle>=0.12,<1 | ||
chalice<=1.27.3; python_version=="3.6" | ||
chalice>=1.28,<2; python_version>"3.6" | ||
CherryPy>=18,<19 | ||
Django>=3,<5 | ||
falcon>=2,<4; python_version<"3.11" | ||
falcon>=3.1.1,<4; python_version>="3.11" | ||
fastapi>=0.70.0,<1 | ||
Flask>=1,<3 | ||
Werkzeug>=2,<3 | ||
pyramid>=1,<3 | ||
sanic>=20,<21; python_version=="3.6" | ||
sanic>=22,<23; python_version>"3.6" | ||
starlette>=0.14,<1 | ||
tornado>=6,<7 | ||
uvicorn<1 # The oldest version can vary among Python runtime versions | ||
gunicorn>=20,<21 | ||
websocket_client>=1.2.3,<2 # Socket Mode 3rd party implementation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# pip install -r requirements/adapter_testing.txt | ||
moto>=3,<4 # For AWS tests | ||
docker>=5,<6 # Used by moto | ||
boddle>=0.2,<0.3 # For Bottle app tests | ||
Flask>=1,<2 # TODO: Flask-Sockets is not yet compatible with Flask 2.x | ||
Werkzeug>=1,<2 # TODO: Flask-Sockets is not yet compatible with Flask 2.x | ||
sanic-testing>=0.7; python_version>"3.6" | ||
requests>=2,<3 # For Starlette's TestClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# pip install -r requirements/async.txt | ||
aiohttp>=3,<4 | ||
websockets>=8,<10; python_version=="3.6" | ||
websockets>=10,<11; python_version>"3.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# pip install -r requirements/testing.txt | ||
-r testing_without_asyncio.txt | ||
|
||
pytest-asyncio>=0.16.0; python_version=="3.6" | ||
pytest-asyncio>=0.18.2,<1; python_version>"3.6" | ||
aiohttp>=3,<4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# pip install -r requirements/testing_without_asyncio.txt | ||
pytest>=6.2.5,<7 | ||
pytest-cov>=3,<4 | ||
Flask-Sockets>=0.2,<1 # TODO: This module is not yet Flask 2.x compatible | ||
Werkzeug>=1,<2 # TODO: Flask-Sockets is not yet compatible with Flask 2.x | ||
itsdangerous==2.0.1 # TODO: Flask-Sockets is not yet compatible with Flask 2.x | ||
Jinja2==3.0.3 # https://github.com/pallets/flask/issues/4494 | ||
black==22.8.0 # Until we drop Python 3.6 support, we have to stay with this version | ||
click<=8.0.4 # black is affected by https://github.com/pallets/click/issues/2225 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.