Unverified Commit 24418a54 authored by Hugo van Kemenade's avatar Hugo van Kemenade Committed by GitHub
Browse files

Black requires Python 3.6.2+ (#1668)

parent e293473e
Loading
Loading
Loading
Loading
+1 −1
Changes for README.md: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ _Contents:_ **[Installation and usage](#installation-and-usage)** |

### Installation

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

#### Install from GitHub
+3 −3
Changes for plugin/black.vim: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -103,9 +103,9 @@ def _get_virtualenv_site_packages(venv_path, pyver):
  return venv_path / 'lib' / f'python{pyver[0]}.{pyver[1]}' / 'site-packages'

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

  from pathlib import Path
+2 −2
Changes for setup.py: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
import sys
import os

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

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