From 307a67ae6af1b1b79435e4c7c518a4dd73a23b62 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 12 Feb 2020 18:28:21 +0100 Subject: [PATCH] [fix] #263: Allow to install Black on Python >= 3.6 - Use caret requirement: - https://python-poetry.org/docs/dependency-specification/#caret-requirements - Remove now useless black prereleases statement --- poetry.lock | 12 ++++++------ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index dcd35149..befe9bb6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -27,7 +27,7 @@ speedups = ["aiodns", "brotlipy", "cchardet"] [[package]] category = "dev" description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." -marker = "python_version == \"3.6\"" +marker = "python_version >= \"3.6\" and python_version < \"4.0\"" name = "appdirs" optional = false python-versions = "*" @@ -95,7 +95,7 @@ version = "2.0.0" [[package]] category = "dev" description = "The uncompromising code formatter." -marker = "python_version == \"3.6\"" +marker = "python_version >= \"3.6\" and python_version < \"4.0\"" name = "black" optional = false python-versions = ">=3.6" @@ -342,7 +342,7 @@ six = "*" [[package]] category = "dev" description = "Utility library for gitignore style pattern matching of file paths." -marker = "python_version == \"3.6\"" +marker = "python_version >= \"3.6\" and python_version < \"4.0\"" name = "pathspec" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" @@ -551,7 +551,7 @@ version = "5.3" [[package]] category = "dev" description = "Alternative regular expression module, to replace re." -marker = "python_version == \"3.6\"" +marker = "python_version >= \"3.6\" and python_version < \"4.0\"" name = "regex" optional = false python-versions = "*" @@ -603,7 +603,7 @@ version = "0.10.0" [[package]] category = "dev" description = "a fork of Python 2 and 3 ast modules with type comment support" -marker = "python_version == \"3.6\"" +marker = "python_version >= \"3.6\" and python_version < \"4.0\"" name = "typed-ast" optional = false python-versions = "*" @@ -667,7 +667,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["pathlib2", "contextlib2", "unittest2"] [metadata] -content-hash = "2e92ad6120327223b363728899edd617103272c023c657b8487f4f6fda938ba8" +content-hash = "fa67b26290477d18db9a1d00b3e4007168c3a7aaa1491a6e086ed068cfae6d9c" python-versions = "^3.5.3" [metadata.files] diff --git a/pyproject.toml b/pyproject.toml index a8af50bf..29471aae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ texttable = "^1.6" PyNaCl = "^1.3" [tool.poetry.dev-dependencies] -black = {version = "^19.10b0", allow-prereleases = true, python = "3.6"} +black = {version = "^19.10b0", python = "^3.6"} pre-commit = "^1.18" pytest = "^5.1" pytest-cov = "^2.7" -- GitLab