Skip to content

Commit 07da9c1

Browse files
committed
Remove Python 3.6 refs.
1 parent d4fc142 commit 07da9c1

File tree

12 files changed

+18
-19
lines changed

12 files changed

+18
-19
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Are you looking for [slackclient](https://pypi.org/project/slackclient/)? The sl
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 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:
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

docs/english/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation
22

3-
This package supports Python 3.6 and higher. We recommend using [PyPI](https://pypi.python.org/pypi) for installation. Run the following command:
3+
This package supports Python 3.7 and higher. We recommend using [PyPI](https://pypi.python.org/pypi) for installation. Run the following command:
44

55
```bash
66
pip install slack-sdk

docs/english/legacy/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Refer to the [migration guide](/tools/python-slack-sdk/v3-migration) to learn ho
1010

1111
Slack APIs allow anyone to build full featured integrations that extend and expand the capabilities of your Slack workspace. These APIs allow you to build applications that interact with Slack just like the people on your team. They can post messages, respond to events that happen, and build complex UIs for getting work done.
1212

13-
To make it easier for Python programmers to build Slack applications, we've provided this open source SDK that will help you get started building Python apps as quickly as possible. The current version is built for Python 3.6 and higher — if you need to target Python 2.x, you might consider using v1 of the SDK.
13+
To make it easier for Python programmers to build Slack applications, we've provided this open source SDK that will help you get started building Python apps as quickly as possible. The current version is built for Python 3.7 and higher — if you need to target Python 2.x, you might consider using v1 of the SDK.
1414

1515
## Slack platform basics {#platform-basics}
1616

docs/english/tutorial/uploading-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ With this, all your Slack app configuration is done. Let's start coding.
5656

5757
### Creating a new project {#create-new-project}
5858

59-
First, ensure you're using Python version 3.6 or above. While the current standard is for the `python3` and `pip3` commands to use Python 3.6 or above, it's best to ensure your runtime is always using the latest version of Python. [pyenv](https://github.com/pyenv/pyenv) is a handy tool that can do this for you.
59+
First, ensure you're using Python version 3.7 or above. While the current standard is for the `python3` and `pip3` commands to use Python 3.7 or above, it's best to ensure your runtime is always using the latest version of Python. [pyenv](https://github.com/pyenv/pyenv) is a handy tool that can do this for you.
6060

6161
We'll create a brand new virtual environment and install the required library dependencies using the following commands.
6262

docs/english/v3-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If you don't wish to upgrade yet, be sure to pin your module for the Python `sla
6969

7070
### Minimum Python versions {#minimum-versions}
7171

72-
`slackclient` v2.x requires Python 3.6 (or higher). Support for Python 2.7 is maintained in the existing `slackclient` v1.x.
72+
`slackclient` v2.x requires Python 3.7 (or higher). Support for Python 2.7 is maintained in the existing `slackclient` v1.x.
7373

7474
Client v1 support:
7575
- Python 2: Python 2.7 was supported in the 1.x version of the client up until Dec 31st, 2019.

integration_tests/web/test_issue_480.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def test_issue_480_processes_async(self):
4343
after = len(multiprocessing.active_children())
4444
self.assertEqual(0, after - before)
4545

46-
# fails with Python 3.6
46+
# fails with Python 3.6 (no longer supported)
4747
def test_issue_480_threads(self):
4848
client = self.sync_client
4949
before = threading.active_count()
@@ -53,7 +53,7 @@ def test_issue_480_threads(self):
5353
after = threading.active_count()
5454
self.assertEqual(0, after - before)
5555

56-
# fails with Python 3.6
56+
# fails with Python 3.6 (no longer supported)
5757
@async_test
5858
async def test_issue_480_threads_async(self):
5959
client = self.async_client

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "slack_sdk"
77
dynamic = ["version", "readme", "authors", "optional-dependencies"]
88
description = "The Slack API Platform SDK for Python"
99
license = { text = "MIT" }
10-
requires-python = ">=3.6"
10+
requires-python = ">=3.7"
1111
keywords = [
1212
"slack",
1313
"slack-api",
@@ -27,7 +27,6 @@ classifiers = [
2727
"License :: OSI Approved :: MIT License",
2828
"Programming Language :: Python",
2929
"Programming Language :: Python :: 3 :: Only",
30-
"Programming Language :: Python :: 3.6",
3130
"Programming Language :: Python :: 3.7",
3231
"Programming Language :: Python :: 3.8",
3332
"Programming Language :: Python :: 3.9",

requirements/testing.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ pytest>=7.0.1,<9
44
pytest-asyncio<2 # for async
55
pytest-cov>=2,<7
66
# while flake8 5.x have issues with Python 3.12, flake8 6.x requires Python >= 3.8.1,
7-
# so 5.x should be kept in order to stay compatible with Python 3.6/3.7
7+
# so 5.x should be kept in order to stay compatible with Python 3.7/3.8
88
flake8>=5.0.4,<8
99
# Don't change this version without running CI builds;
1010
# The latest version may not be available for older Python runtime
11-
black>=22.8.0; python_version=="3.6"
12-
black==22.10.0; python_version>"3.6"
11+
black>=22.8.0; python_version=="3.7"
12+
black==22.10.0; python_version>"3.7"
1313
click==8.0.4 # black is affected by https://github.com/pallets/click/issues/2225
1414
psutil>=6.0.0,<8
1515
# used only under slack_sdk/*_store

slack/web/async_internal_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _get_headers(
5656
e.g. {
5757
'Content-Type': 'application/json;charset=utf-8',
5858
'Authorization': 'Bearer xoxb-1234-1243',
59-
'User-Agent': 'Python/3.6.8 slack/2.1.0 Darwin/17.7.0'
59+
'User-Agent': 'Python/3.7.0 slack/2.1.0 Darwin/17.7.0'
6060
}
6161
"""
6262
final_headers = {

slack_sdk/web/internal_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_user_agent(prefix: Optional[str] = None, suffix: Optional[str] = None):
4444
4545
Returns:
4646
The user agent string.
47-
e.g. 'Python/3.6.7 slackclient/2.0.0 Darwin/17.7.0'
47+
e.g. 'Python/3.7.0 slackclient/2.0.0 Darwin/17.7.0'
4848
"""
4949
# __name__ returns all classes, we only want the client
5050
client = "{0}/{1}".format("slackclient", version.__version__)
@@ -91,7 +91,7 @@ def _get_headers(
9191
e.g. {
9292
'Content-Type': 'application/json;charset=utf-8',
9393
'Authorization': 'Bearer xoxb-1234-1243',
94-
'User-Agent': 'Python/3.6.8 slack/2.1.0 Darwin/17.7.0'
94+
'User-Agent': 'Python/3.7.0 slack/2.1.0 Darwin/17.7.0'
9595
}
9696
"""
9797
final_headers = {

0 commit comments

Comments
 (0)