-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring with pyproject.toml #996
Merged
WilliamBergamin
merged 8 commits into
slackapi:main
from
WilliamBergamin:consolidate-pyproject-toml
Nov 29, 2023
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7410bf7
move everything to pyproject
WilliamBergamin 6e4b41d
Move dependencies to txt file
WilliamBergamin 5636c3c
fix tests
WilliamBergamin 7e25b1f
update CI
WilliamBergamin 9ffaa8a
Fix CI pipline
WilliamBergamin bfd020d
Adapt for python 3.6
WilliamBergamin c87959d
fix pytype script
WilliamBergamin 76c668a
Update requirements/adapter.txt
WilliamBergamin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "slack_bolt" | ||
dynamic = ["version", "readme"] | ||
description = "The Bolt Framework for Python" | ||
license = { text = "MIT" } | ||
authors = [{ name = "Slack Technologies, LLC", email = "[email protected]" }] | ||
dependencies = ["slack_sdk>=3.25.0,<4"] | ||
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" } | ||
|
||
[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,22 @@ | ||
# pip install -r requirements/adapter.txt | ||
# NOTE: any of async ones requires pip install -r requirements/async.txt too | ||
# used only under src/slack_bolt/adapter | ||
WilliamBergamin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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,5 @@ | ||
# pip install -r requirements/testing.txt | ||
-r testing_without_asyncio.txt | ||
|
||
pytest-asyncio>=0.18.2,<1 | ||
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps, need changes on this part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great point, I've fixed up the CI parts to work with the new changes
NOTE: there are some limitation with python 3.6 that required work arounds