Skip to content

Commit b43b886

Browse files
Merge remote-tracking branch 'upstream/main' into move-to-my-py
2 parents 81619b6 + 326172e commit b43b886

File tree

90 files changed

+3033
-2534
lines changed

Some content is hidden

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

90 files changed

+3033
-2534
lines changed

.github/workflows/ci-build.yml

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI Build
33

44
on:
55
push:
6-
branches: [ main ]
6+
branches: [main]
77
pull_request:
88

99
jobs:
@@ -15,47 +15,46 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
python-version:
18-
- '3.12'
19-
- '3.11'
20-
- '3.10'
21-
- '3.9'
22-
- '3.8'
23-
- '3.7'
24-
- '3.6'
25-
- 'pypy3.10'
18+
- "3.13"
19+
- "3.12"
20+
- "3.11"
21+
- "3.10"
22+
- "3.9"
23+
- "3.8"
24+
- "3.7"
25+
- "3.6"
26+
- "pypy3.10"
2627
env:
27-
CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED: '1'
28-
CI_UNSTABLE_TESTS_SKIP_ENABLED: '1'
29-
FORCE_COLOR: '1'
28+
CI_LARGE_SOCKET_MODE_PAYLOAD_TESTING_DISABLED: "1"
29+
FORCE_COLOR: "1"
3030
steps:
31-
- uses: actions/checkout@v4
32-
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v5
34-
with:
35-
python-version: ${{ matrix.python-version }}
36-
cache: pip
37-
- name: Install dependencies
38-
run: |
39-
pip install -U pip setuptools wheel
40-
pip install -r requirements/testing.txt
41-
pip install -r requirements/optional.txt
42-
- name: Run codegen
43-
run: |
44-
python setup.py codegen
45-
- name: Run validation (black/flake8/pytest)
46-
run: |
47-
python setup.py validate
48-
- name: Run tests for SQLAlchemy v1.4 (backward-compatibility)
49-
run: |
50-
# Install v1.4 for testing
51-
pip install "SQLAlchemy>=1.4,<2"
52-
python setup.py unit_tests --test-target tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py && \
53-
python setup.py unit_tests --test-target tests/slack_sdk/oauth/state_store/test_sqlalchemy.py
54-
- name: Run codecov (only 3.9)
55-
if: startsWith(matrix.python-version, '3.9')
56-
uses: codecov/codecov-action@v5
57-
with:
58-
token: ${{ secrets.CODECOV_TOKEN }}
59-
# python setup.py validate generates the coverage file
60-
files: ./coverage.xml
61-
31+
- uses: actions/checkout@v4
32+
- name: Set up Python ${{ matrix.python-version }}
33+
uses: actions/setup-python@v5
34+
with:
35+
python-version: ${{ matrix.python-version }}
36+
cache: pip
37+
- name: Install dependencies
38+
run: |
39+
pip install -U pip setuptools wheel
40+
pip install -r requirements/testing.txt
41+
pip install -r requirements/optional.txt
42+
- name: Run codegen
43+
run: |
44+
python setup.py codegen
45+
- name: Run validation (black/flake8/pytest)
46+
run: |
47+
python setup.py validate
48+
- name: Run tests for SQLAlchemy v1.4 (backward-compatibility)
49+
run: |
50+
# Install v1.4 for testing
51+
pip install "SQLAlchemy>=1.4,<2"
52+
python setup.py unit_tests --test-target tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py && \
53+
python setup.py unit_tests --test-target tests/slack_sdk/oauth/state_store/test_sqlalchemy.py
54+
- name: Run codecov (only with latest supported version)
55+
if: startsWith(matrix.python-version, '3.13')
56+
uses: codecov/codecov-action@v5
57+
with:
58+
token: ${{ secrets.CODECOV_TOKEN }}
59+
# python setup.py validate generates the coverage file
60+
files: ./coverage.xml

docs/package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/api-docs/slack_sdk/audit_logs/async_client.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -412,51 +412,51 @@ <h3>Class variables</h3>
412412
<dl>
413413
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.BASE_URL"><code class="name">var <span class="ident">BASE_URL</span></code></dt>
414414
<dd>
415-
<div class="desc"></div>
415+
<div class="desc"><p>The type of the None singleton.</p></div>
416416
</dd>
417417
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.auth"><code class="name">var <span class="ident">auth</span> : aiohttp.helpers.BasicAuth | None</code></dt>
418418
<dd>
419-
<div class="desc"></div>
419+
<div class="desc"><p>The type of the None singleton.</p></div>
420420
</dd>
421421
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.base_url"><code class="name">var <span class="ident">base_url</span> : str</code></dt>
422422
<dd>
423-
<div class="desc"></div>
423+
<div class="desc"><p>The type of the None singleton.</p></div>
424424
</dd>
425425
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.default_headers"><code class="name">var <span class="ident">default_headers</span> : Dict[str, str]</code></dt>
426426
<dd>
427-
<div class="desc"></div>
427+
<div class="desc"><p>The type of the None singleton.</p></div>
428428
</dd>
429429
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.logger"><code class="name">var <span class="ident">logger</span> : logging.Logger</code></dt>
430430
<dd>
431-
<div class="desc"></div>
431+
<div class="desc"><p>The type of the None singleton.</p></div>
432432
</dd>
433433
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.proxy"><code class="name">var <span class="ident">proxy</span> : str | None</code></dt>
434434
<dd>
435-
<div class="desc"></div>
435+
<div class="desc"><p>The type of the None singleton.</p></div>
436436
</dd>
437437
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.retry_handlers"><code class="name">var <span class="ident">retry_handlers</span> : List[slack_sdk.http_retry.async_handler.AsyncRetryHandler]</code></dt>
438438
<dd>
439-
<div class="desc"></div>
439+
<div class="desc"><p>The type of the None singleton.</p></div>
440440
</dd>
441441
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.session"><code class="name">var <span class="ident">session</span> : aiohttp.client.ClientSession | None</code></dt>
442442
<dd>
443-
<div class="desc"></div>
443+
<div class="desc"><p>The type of the None singleton.</p></div>
444444
</dd>
445445
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.ssl"><code class="name">var <span class="ident">ssl</span> : ssl.SSLContext | None</code></dt>
446446
<dd>
447-
<div class="desc"></div>
447+
<div class="desc"><p>The type of the None singleton.</p></div>
448448
</dd>
449449
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.timeout"><code class="name">var <span class="ident">timeout</span> : int</code></dt>
450450
<dd>
451-
<div class="desc"></div>
451+
<div class="desc"><p>The type of the None singleton.</p></div>
452452
</dd>
453453
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.token"><code class="name">var <span class="ident">token</span> : str</code></dt>
454454
<dd>
455-
<div class="desc"></div>
455+
<div class="desc"><p>The type of the None singleton.</p></div>
456456
</dd>
457457
<dt id="slack_sdk.audit_logs.async_client.AsyncAuditLogsClient.trust_env_in_session"><code class="name">var <span class="ident">trust_env_in_session</span> : bool</code></dt>
458458
<dd>
459-
<div class="desc"></div>
459+
<div class="desc"><p>The type of the None singleton.</p></div>
460460
</dd>
461461
</dl>
462462
<h3>Methods</h3>

docs/static/api-docs/slack_sdk/audit_logs/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -420,39 +420,39 @@ <h3>Class variables</h3>
420420
<dl>
421421
<dt id="slack_sdk.audit_logs.AuditLogsClient.BASE_URL"><code class="name">var <span class="ident">BASE_URL</span></code></dt>
422422
<dd>
423-
<div class="desc"></div>
423+
<div class="desc"><p>The type of the None singleton.</p></div>
424424
</dd>
425425
<dt id="slack_sdk.audit_logs.AuditLogsClient.base_url"><code class="name">var <span class="ident">base_url</span> : str</code></dt>
426426
<dd>
427-
<div class="desc"></div>
427+
<div class="desc"><p>The type of the None singleton.</p></div>
428428
</dd>
429429
<dt id="slack_sdk.audit_logs.AuditLogsClient.default_headers"><code class="name">var <span class="ident">default_headers</span> : Dict[str, str]</code></dt>
430430
<dd>
431-
<div class="desc"></div>
431+
<div class="desc"><p>The type of the None singleton.</p></div>
432432
</dd>
433433
<dt id="slack_sdk.audit_logs.AuditLogsClient.logger"><code class="name">var <span class="ident">logger</span> : logging.Logger</code></dt>
434434
<dd>
435-
<div class="desc"></div>
435+
<div class="desc"><p>The type of the None singleton.</p></div>
436436
</dd>
437437
<dt id="slack_sdk.audit_logs.AuditLogsClient.proxy"><code class="name">var <span class="ident">proxy</span> : str | None</code></dt>
438438
<dd>
439-
<div class="desc"></div>
439+
<div class="desc"><p>The type of the None singleton.</p></div>
440440
</dd>
441441
<dt id="slack_sdk.audit_logs.AuditLogsClient.retry_handlers"><code class="name">var <span class="ident">retry_handlers</span> : List[<a title="slack_sdk.http_retry.handler.RetryHandler" href="../http_retry/handler.html#slack_sdk.http_retry.handler.RetryHandler">RetryHandler</a>]</code></dt>
442442
<dd>
443-
<div class="desc"></div>
443+
<div class="desc"><p>The type of the None singleton.</p></div>
444444
</dd>
445445
<dt id="slack_sdk.audit_logs.AuditLogsClient.ssl"><code class="name">var <span class="ident">ssl</span> : ssl.SSLContext | None</code></dt>
446446
<dd>
447-
<div class="desc"></div>
447+
<div class="desc"><p>The type of the None singleton.</p></div>
448448
</dd>
449449
<dt id="slack_sdk.audit_logs.AuditLogsClient.timeout"><code class="name">var <span class="ident">timeout</span> : int</code></dt>
450450
<dd>
451-
<div class="desc"></div>
451+
<div class="desc"><p>The type of the None singleton.</p></div>
452452
</dd>
453453
<dt id="slack_sdk.audit_logs.AuditLogsClient.token"><code class="name">var <span class="ident">token</span> : str</code></dt>
454454
<dd>
455-
<div class="desc"></div>
455+
<div class="desc"><p>The type of the None singleton.</p></div>
456456
</dd>
457457
</dl>
458458
<h3>Methods</h3>
@@ -577,23 +577,23 @@ <h3>Class variables</h3>
577577
<dl>
578578
<dt id="slack_sdk.audit_logs.AuditLogsResponse.body"><code class="name">var <span class="ident">body</span> : Dict[str, Any] | None</code></dt>
579579
<dd>
580-
<div class="desc"></div>
580+
<div class="desc"><p>The type of the None singleton.</p></div>
581581
</dd>
582582
<dt id="slack_sdk.audit_logs.AuditLogsResponse.headers"><code class="name">var <span class="ident">headers</span> : Dict[str, Any]</code></dt>
583583
<dd>
584-
<div class="desc"></div>
584+
<div class="desc"><p>The type of the None singleton.</p></div>
585585
</dd>
586586
<dt id="slack_sdk.audit_logs.AuditLogsResponse.raw_body"><code class="name">var <span class="ident">raw_body</span> : str | None</code></dt>
587587
<dd>
588-
<div class="desc"></div>
588+
<div class="desc"><p>The type of the None singleton.</p></div>
589589
</dd>
590590
<dt id="slack_sdk.audit_logs.AuditLogsResponse.status_code"><code class="name">var <span class="ident">status_code</span> : int</code></dt>
591591
<dd>
592-
<div class="desc"></div>
592+
<div class="desc"><p>The type of the None singleton.</p></div>
593593
</dd>
594594
<dt id="slack_sdk.audit_logs.AuditLogsResponse.url"><code class="name">var <span class="ident">url</span> : str</code></dt>
595595
<dd>
596-
<div class="desc"></div>
596+
<div class="desc"><p>The type of the None singleton.</p></div>
597597
</dd>
598598
</dl>
599599
<h3>Instance variables</h3>

docs/static/api-docs/slack_sdk/audit_logs/v1/async_client.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -414,51 +414,51 @@ <h3>Class variables</h3>
414414
<dl>
415415
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.BASE_URL"><code class="name">var <span class="ident">BASE_URL</span></code></dt>
416416
<dd>
417-
<div class="desc"></div>
417+
<div class="desc"><p>The type of the None singleton.</p></div>
418418
</dd>
419419
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.auth"><code class="name">var <span class="ident">auth</span> : aiohttp.helpers.BasicAuth | None</code></dt>
420420
<dd>
421-
<div class="desc"></div>
421+
<div class="desc"><p>The type of the None singleton.</p></div>
422422
</dd>
423423
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.base_url"><code class="name">var <span class="ident">base_url</span> : str</code></dt>
424424
<dd>
425-
<div class="desc"></div>
425+
<div class="desc"><p>The type of the None singleton.</p></div>
426426
</dd>
427427
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.default_headers"><code class="name">var <span class="ident">default_headers</span> : Dict[str, str]</code></dt>
428428
<dd>
429-
<div class="desc"></div>
429+
<div class="desc"><p>The type of the None singleton.</p></div>
430430
</dd>
431431
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.logger"><code class="name">var <span class="ident">logger</span> : logging.Logger</code></dt>
432432
<dd>
433-
<div class="desc"></div>
433+
<div class="desc"><p>The type of the None singleton.</p></div>
434434
</dd>
435435
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.proxy"><code class="name">var <span class="ident">proxy</span> : str | None</code></dt>
436436
<dd>
437-
<div class="desc"></div>
437+
<div class="desc"><p>The type of the None singleton.</p></div>
438438
</dd>
439439
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.retry_handlers"><code class="name">var <span class="ident">retry_handlers</span> : List[slack_sdk.http_retry.async_handler.AsyncRetryHandler]</code></dt>
440440
<dd>
441-
<div class="desc"></div>
441+
<div class="desc"><p>The type of the None singleton.</p></div>
442442
</dd>
443443
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.session"><code class="name">var <span class="ident">session</span> : aiohttp.client.ClientSession | None</code></dt>
444444
<dd>
445-
<div class="desc"></div>
445+
<div class="desc"><p>The type of the None singleton.</p></div>
446446
</dd>
447447
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.ssl"><code class="name">var <span class="ident">ssl</span> : ssl.SSLContext | None</code></dt>
448448
<dd>
449-
<div class="desc"></div>
449+
<div class="desc"><p>The type of the None singleton.</p></div>
450450
</dd>
451451
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.timeout"><code class="name">var <span class="ident">timeout</span> : int</code></dt>
452452
<dd>
453-
<div class="desc"></div>
453+
<div class="desc"><p>The type of the None singleton.</p></div>
454454
</dd>
455455
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.token"><code class="name">var <span class="ident">token</span> : str</code></dt>
456456
<dd>
457-
<div class="desc"></div>
457+
<div class="desc"><p>The type of the None singleton.</p></div>
458458
</dd>
459459
<dt id="slack_sdk.audit_logs.v1.async_client.AsyncAuditLogsClient.trust_env_in_session"><code class="name">var <span class="ident">trust_env_in_session</span> : bool</code></dt>
460460
<dd>
461-
<div class="desc"></div>
461+
<div class="desc"><p>The type of the None singleton.</p></div>
462462
</dd>
463463
</dl>
464464
<h3>Methods</h3>

docs/static/api-docs/slack_sdk/audit_logs/v1/client.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -409,39 +409,39 @@ <h3>Class variables</h3>
409409
<dl>
410410
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.BASE_URL"><code class="name">var <span class="ident">BASE_URL</span></code></dt>
411411
<dd>
412-
<div class="desc"></div>
412+
<div class="desc"><p>The type of the None singleton.</p></div>
413413
</dd>
414414
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.base_url"><code class="name">var <span class="ident">base_url</span> : str</code></dt>
415415
<dd>
416-
<div class="desc"></div>
416+
<div class="desc"><p>The type of the None singleton.</p></div>
417417
</dd>
418418
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.default_headers"><code class="name">var <span class="ident">default_headers</span> : Dict[str, str]</code></dt>
419419
<dd>
420-
<div class="desc"></div>
420+
<div class="desc"><p>The type of the None singleton.</p></div>
421421
</dd>
422422
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.logger"><code class="name">var <span class="ident">logger</span> : logging.Logger</code></dt>
423423
<dd>
424-
<div class="desc"></div>
424+
<div class="desc"><p>The type of the None singleton.</p></div>
425425
</dd>
426426
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.proxy"><code class="name">var <span class="ident">proxy</span> : str | None</code></dt>
427427
<dd>
428-
<div class="desc"></div>
428+
<div class="desc"><p>The type of the None singleton.</p></div>
429429
</dd>
430430
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.retry_handlers"><code class="name">var <span class="ident">retry_handlers</span> : List[<a title="slack_sdk.http_retry.handler.RetryHandler" href="../../http_retry/handler.html#slack_sdk.http_retry.handler.RetryHandler">RetryHandler</a>]</code></dt>
431431
<dd>
432-
<div class="desc"></div>
432+
<div class="desc"><p>The type of the None singleton.</p></div>
433433
</dd>
434434
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.ssl"><code class="name">var <span class="ident">ssl</span> : ssl.SSLContext | None</code></dt>
435435
<dd>
436-
<div class="desc"></div>
436+
<div class="desc"><p>The type of the None singleton.</p></div>
437437
</dd>
438438
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.timeout"><code class="name">var <span class="ident">timeout</span> : int</code></dt>
439439
<dd>
440-
<div class="desc"></div>
440+
<div class="desc"><p>The type of the None singleton.</p></div>
441441
</dd>
442442
<dt id="slack_sdk.audit_logs.v1.client.AuditLogsClient.token"><code class="name">var <span class="ident">token</span> : str</code></dt>
443443
<dd>
444-
<div class="desc"></div>
444+
<div class="desc"><p>The type of the None singleton.</p></div>
445445
</dd>
446446
</dl>
447447
<h3>Methods</h3>

0 commit comments

Comments
 (0)