Skip to content

Commit 98ebcbf

Browse files
authored
Merge branch 'main' into feature/oauth-google-cloud-storage
2 parents f8b4733 + ed1893d commit 98ebcbf

File tree

218 files changed

+52699
-27760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+52699
-27760
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,3 @@ updates:
1212
directory: "/"
1313
schedule:
1414
interval: "monthly"
15-
- package-ecosystem: "npm"
16-
directory: "/docs"
17-
schedule:
18-
interval: "monthly"
19-
groups:
20-
docusaurus:
21-
patterns:
22-
- "@docusaurus/*"
23-
react:
24-
patterns:
25-
- "react"
26-
- "react-dom"

.github/workflows/ci-build.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: CI Build
33

44
on:
55
push:
6-
branches: [main]
6+
branches:
7+
- main
78
pull_request:
89

910
jobs:
1011
build:
11-
# Avoiding -latest due to https://github.com/actions/setup-python/issues/162
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
timeout-minutes: 15
1414
strategy:
1515
fail-fast: false
@@ -22,37 +22,48 @@ jobs:
2222
- "3.9"
2323
- "3.8"
2424
- "3.7"
25-
- "3.6"
2625
- "pypy3.10"
26+
permissions:
27+
contents: read
2728
env:
2829
CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED: "1"
2930
FORCE_COLOR: "1"
3031
steps:
31-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
with:
34+
persist-credentials: false
3235
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3437
with:
3538
python-version: ${{ matrix.python-version }}
3639
cache: pip
3740
- name: Install dependencies
3841
run: |
39-
pip install -U pip setuptools wheel
42+
pip install -U pip
4043
pip install -r requirements/testing.txt
4144
pip install -r requirements/optional.txt
4245
- name: Run validation (black/flake8/pytest)
4346
run: |
4447
black --check slack/ slack_sdk/ tests/ integration_tests/
4548
flake8 slack/ slack_sdk/
46-
PYTHONPATH=$PWD:$PYTHONPATH pytest --cov-report=xml --cov=slack_sdk/ tests/
49+
PYTHONPATH=$PWD:$PYTHONPATH pytest --cov-report=xml --cov=slack_sdk/ --junitxml=reports/test_report.xml tests/
4750
- name: Run tests for SQLAlchemy v1.4 (backward-compatibility)
4851
run: |
4952
# Install v1.4 for testing
5053
pip install "SQLAlchemy>=1.4,<2"
5154
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py
5255
PYTHONPATH=$PWD:$PYTHONPATH pytest tests/slack_sdk/oauth/state_store/test_sqlalchemy.py
53-
- name: Run codecov (only with latest supported version)
56+
- name: Upload test results to Codecov
57+
if: ${{ !cancelled() }}
58+
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
59+
with:
60+
directory: ./reports/
61+
flags: ${{ matrix.python-version }}
62+
token: ${{ secrets.CODECOV_TOKEN }}
63+
verbose: true
64+
- name: Upload test coverage to Codecov (only with latest supported version)
5465
if: startsWith(matrix.python-version, '3.13')
55-
uses: codecov/codecov-action@v5
66+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
5667
with:
5768
token: ${{ secrets.CODECOV_TOKEN }}
5869
# Run validation generates the coverage file

.github/workflows/docs-deploy.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/workflows/mypy.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: mypy validation
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
pull_request:
78

89
jobs:
@@ -12,10 +13,14 @@ jobs:
1213
strategy:
1314
matrix:
1415
python-version: ["3.13"]
16+
permissions:
17+
contents: read
1518
steps:
16-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
with:
21+
persist-credentials: false
1722
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
1924
with:
2025
python-version: ${{ matrix.python-version }}
2126
- name: Run mypy verification

.github/workflows/triage-issues.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44

55
name: Close stale issues and PRs
66

7-
on:
7+
on:
88
workflow_dispatch:
99
schedule:
10-
- cron: '0 0 * * 1'
11-
12-
permissions:
13-
issues: write
14-
pull-requests: write
10+
- cron: "0 0 * * 1"
1511

1612
jobs:
1713
stale:
1814
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
1918
steps:
20-
- uses: actions/stale@v9.1.0
19+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10.0.0
2120
with:
2221
days-before-issue-stale: 30
2322
days-before-issue-close: 10
@@ -31,4 +30,3 @@ jobs:
3130
remove-stale-when-updated: true
3231
enable-statistics: true
3332
operations-per-run: 60
34-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ venv*/
1919
.coverage*
2020
cov_*
2121
coverage.xml
22+
reports/
2223

2324
# due to using tox and pytest
2425
.tox

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<img alt="PyPI - Version" src="https://img.shields.io/pypi/v/slack-sdk"></a>
1313
<a href="https://pypi.org/project/slack-sdk/">
1414
<img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/slack-sdk.svg"></a>
15-
<a href="https://tools.slack.dev/python-slack-sdk/">
15+
<a href="https://docs.slack.dev/tools/python-slack-sdk/">
1616
<img alt="Documentation" src="https://img.shields.io/badge/dev-docs-yellow"></a>
1717
</p>
1818

1919
The Slack platform offers several APIs to build apps. Each Slack API delivers part of the capabilities from the platform, so that you can pick just those that fit for your needs. This SDK offers a corresponding package for each of Slack’s APIs. They are small and powerful when used independently, and work seamlessly when used together, too.
2020

21-
**Comprehensive documentation on using the Slack Python can be found at [https://tools.slack.dev/python-slack-sdk/](https://tools.slack.dev/python-slack-sdk/)**
21+
**Comprehensive documentation on using the Slack Python can be found at [https://docs.slack.dev/tools/python-slack-sdk/](https://docs.slack.dev/tools/python-slack-sdk/)**
2222

2323
---
2424

@@ -36,11 +36,11 @@ The **Python Slack SDK** allows interaction with:
3636
- `slack_sdk.models`: for constructing [Block Kit](https://api.slack.com/block-kit) UI components using easy-to-use builders
3737
- `slack_sdk.rtm`: for utilizing the [RTM API][rtm-docs]
3838

39-
If you want to use our [Events API][events-docs] and Interactivity features, please check the [Bolt for Python][bolt-python] library. Details on the Tokens and Authentication can be found in our [Auth Guide](https://tools.slack.dev/python-slack-sdk/installation/).
39+
If you want to use our [Events API][events-docs] and Interactivity features, please check the [Bolt for Python][bolt-python] library. Details on the Tokens and Authentication can be found in our [Auth Guide](https://docs.slack.dev/tools/python-slack-sdk/installation/).
4040

4141
## slackclient is in maintenance mode
4242

43-
Are you looking for [slackclient](https://pypi.org/project/slackclient/)? The website is live [here](https://tools.slack.dev/python-slackclient/) just like before. However, the slackclient project is in maintenance mode now and this [`slack_sdk`](https://pypi.org/project/slack-sdk/) is the successor. If you have time to make a migration to slack_sdk v3, please follow [our migration guide](https://tools.slack.dev/python-slack-sdk/v3-migration/) to ensure your app continues working after updating.
43+
Are you looking for [slackclient](https://pypi.org/project/slackclient/)? The slackclient project is in maintenance mode now and this [`slack_sdk`](https://pypi.org/project/slack-sdk/) is the successor. If you have time to make a migration to slack_sdk v3, please follow [our migration guide](https://docs.slack.dev/tools/python-slack-sdk/v3-migration/) to ensure your app continues working after updating.
4444

4545
## Table of contents
4646

@@ -66,7 +66,7 @@ Are you looking for [slackclient](https://pypi.org/project/slackclient/)? The we
6666

6767
---
6868

69-
This library requires Python 3.6 and above. If you require Python 2, please use our [SlackClient - v1.x][slackclientv1]. If you're unsure how to check what version of Python you're on, you can check it using the following:
69+
This library requires Python 3.7 and above. If you're unsure how to check what version of Python you're on, you can check it using the following:
7070

7171
> **Note:** You may need to use `python3` before your commands to ensure you use the correct Python path. e.g. `python3 --version`
7272
@@ -98,7 +98,7 @@ We've created this [tutorial](https://github.com/slackapi/python-slack-sdk/tree/
9898

9999
---
100100

101-
Slack provide a Web API that gives you the ability to build applications that interact with Slack in a variety of ways. This Development Kit is a module based wrapper that makes interaction with that API easier. We have a basic example here with some of the more common uses but a full list of the available methods are available [here][api-methods]. More detailed examples can be found in [our guide](https://tools.slack.dev/python-slack-sdk/web/).
101+
Slack provide a Web API that gives you the ability to build applications that interact with Slack in a variety of ways. This Development Kit is a module based wrapper that makes interaction with that API easier. We have a basic example here with some of the more common uses but a full list of the available methods are available [here][api-methods]. More detailed examples can be found in [our guide](https://docs.slack.dev/tools/python-slack-sdk/web/).
102102

103103
#### Sending a message to Slack
104104

@@ -267,7 +267,7 @@ print(response)
267267

268268
If you're migrating from slackclient v2.x of slack_sdk to v3.x, Please follow our migration guide to ensure your app continues working after updating.
269269

270-
**[Check out the Migration Guide here!](https://tools.slack.dev/python-slack-sdk/v3-migration/)**
270+
**[Check out the Migration Guide here!](https://docs.slack.dev/tools/python-slack-sdk/v3-migration/)**
271271

272272
### Migrating from v1
273273

docs/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/README.md

Lines changed: 0 additions & 107 deletions
This file was deleted.

docs/babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)