Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24418a5

Browse files
authored
Black requires Python 3.6.2+ (psf#1668)
1 parent e293473 commit 24418a5

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ _Contents:_ **[Installation and usage](#installation-and-usage)** |
4949

5050
### Installation
5151

52-
_Black_ can be installed by running `pip install black`. It requires Python 3.6.0+ to
52+
_Black_ can be installed by running `pip install black`. It requires Python 3.6.2+ to
5353
run but you can reformat Python 2 code with it, too.
5454

5555
#### Install from GitHub

plugin/black.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ def _get_virtualenv_site_packages(venv_path, pyver):
103103
return venv_path / 'lib' / f'python{pyver[0]}.{pyver[1]}' / 'site-packages'
104104

105105
def _initialize_black_env(upgrade=False):
106-
pyver = sys.version_info[:2]
107-
if pyver < (3, 6):
108-
print("Sorry, Black requires Python 3.6+ to run.")
106+
pyver = sys.version_info[:3]
107+
if pyver < (3, 6, 2):
108+
print("Sorry, Black requires Python 3.6.2+ to run.")
109109
return False
110110

111111
from pathlib import Path

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
import os
55

6-
assert sys.version_info >= (3, 6, 0), "black requires Python 3.6+"
6+
assert sys.version_info >= (3, 6, 2), "black requires Python 3.6.2+"
77
from pathlib import Path # noqa E402
88

99
CURRENT_DIR = Path(__file__).parent
@@ -65,7 +65,7 @@ def get_long_description() -> str:
6565
packages=["blackd", "black", "blib2to3", "blib2to3.pgen2", "black_primer"],
6666
package_dir={"": "src"},
6767
package_data={"blib2to3": ["*.txt"], "black": ["py.typed"]},
68-
python_requires=">=3.6",
68+
python_requires=">=3.6.2",
6969
zip_safe=False,
7070
install_requires=[
7171
"click>=7.1.2",

0 commit comments

Comments
 (0)