From 25d6810517ac8580950a09c7cb04ff4e3fb3c796 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 21 May 2021 13:22:18 +0200 Subject: [PATCH] build(deps): require "attrs<21" on Python 3.4 Ref: https://github.com/python-attrs/attrs/pull/807 --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a56a440ce20..78446835748 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,9 @@ "py>=1.5.0", "six>=1.10.0", "packaging", - "attrs>=17.4.0", + # attrs 21.1.0 is broken on Python 3.4, but not marked as such. + 'attrs>=17.4.0,<21;python_version=="3.4"', + 'attrs>=17.4.0;python_version>="3.5"', 'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"', 'more-itertools>=4.0.0;python_version>"2.7"', "atomicwrites>=1.0",