1 From cc5b938f7f9e3c536f4a60c35cdd2085b3933618 Mon Sep 17 00:00:00 2001
2 From: Eli Schwartz <eschwartz@archlinux.org>
3 Date: Mon, 27 Apr 2020 21:51:57 -0400
4 Subject: [PATCH] Fix completely broken dependencies.
5
6 poetry habitually engages in:
7 - dependency versions which are known to be too pessimistic
8 - multiple editions of dependencies per python version
9
10 The former all work just fine in reported use and should not be pinned; we
11 package versions in Arch which are "too new". This is what unittests are
12 for, anyway.
13
14 The latter tries to enforce minimum versions of dependencies, but pins
15 it twice, once with more relaxed pinning for older versions of python.
16 If an old version works, it works irrespective of the python version,
17 and you don't need to use minimum requirements as your mallet to force
18 people to upgrade to the latest version anyway.
19 https://github.com/dephell/dephell/issues/330
20 ---
21 pyproject.toml | 11 ++---------
22 1 file changed, 2 insertions(+), 9 deletions(-)
23
24 diff --git a/pyproject.toml b/pyproject.toml
25 index 8c1f137..81ebc89 100644
26 --- a/pyproject.toml
27 +++ b/pyproject.toml
28 @@ -51,20 +51,13 @@ futures = { version = "^3.3.0", python = "~2.7" }
29 glob2 = { version = "^0.6", python = "~2.7" }
30 # functools32 is needed for Python 2.7
31 functools32 = { version = "^3.2.3", python = "~2.7" }
32 -keyring = [
33 - { version = "^18.0.1", python = "~2.7" },
34 - { version = "^20.0.1", python = "~3.5" },
35 - { version = "^21.2.0", python = "^3.6" }
36 -]
37 +keyring = "*"
38 # Use subprocess32 for Python 2.7
39 subprocess32 = { version = "^3.5", python = "~2.7" }
40 importlib-metadata = {version = "^1.6.0", python = "<3.8"}
41
42 [tool.poetry.dev-dependencies]
43 -pytest = [
44 - {version = "^4.1", python = "<3.5"},
45 - {version = "^5.4.3", python = ">=3.5"}
46 -]
47 +pytest = { version = ">=4.1" }
48 pytest-cov = "^2.5"
49 pytest-mock = "^1.9"
50 pre-commit = { version = "^2.6", python = "^3.6.1" }
51 --
52 2.28.0
|