Skip to content

Commit 64fa12c

Browse files
authored
Merge pull request #3485 from mgorny/setuptools-min
Update setuptools version check for license_files change
2 parents 0fba54f + 09f9da1 commit 64fa12c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hypothesis-python/setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ def local_file(name):
3131
SOURCE = local_file("src")
3232
README = local_file("README.rst")
3333

34-
setuptools_version = tuple(map(int, setuptools.__version__.split(".")[:2]))
34+
setuptools_version = tuple(map(int, setuptools.__version__.split(".")[:1]))
3535

36-
if setuptools_version < (36, 2):
36+
if setuptools_version < (42,):
3737
# Warning only - very bad if uploading bdist but fine if installing sdist.
3838
warnings.warn(
39-
"This version of setuptools is too old to correctly store "
40-
"conditional dependencies in binary wheels. For more info, see: "
41-
"https://hynek.me/articles/conditional-python-dependencies/"
39+
"This version of setuptools is too old to handle license_files "
40+
"metadata key. For more info, see: "
41+
"https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#metadata"
4242
)
4343

4444

0 commit comments

Comments
 (0)