From 4e08605b0d5cc4f8939b804549b1d812137e8b26 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 10 Jul 2022 17:36:39 -0400 Subject: [PATCH] Only do `pdbpp` from `git` install on 3.10+ --- setup.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 71a5ee0..de7a6c3 100755 --- a/setup.py +++ b/setup.py @@ -54,16 +54,23 @@ setup( # tooling 'colorlog', 'wrapt', + + # pip ref docs on these specs: + # https://pip.pypa.io/en/stable/reference/requirement-specifiers/#examples + # and pep: + # https://peps.python.org/pep-0440/#version-specifiers + + 'pdbpp <= 0.10.1; python_version < "3.10"', + + # 3.10 has an outstanding unreleased issue and `pdbpp` itself + # pins to patched forks of its own dependencies as well. + "pdbpp @ git+https://github.com/pdbpp/pdbpp@master#egg=pdbpp ; python_version >= '3.10'", # noqa: E501 + # windows deps workaround for ``pdbpp`` # https://github.com/pdbpp/pdbpp/issues/498 # https://github.com/pdbpp/fancycompleter/issues/37 'pyreadline3 ; platform_system == "Windows"', - 'pdbpp', - # 3.10 has an outstanding unreleased issue and `pdbpp` itself - # pins to patched forks of its own dependencies as well. - "pdbpp @ git+https://github.com/pdbpp/pdbpp@master#egg=pdbpp", # noqa: E501 - # serialization 'msgspec >= "0.4.0"'