From 8437c7f898e4400b0d45ef4e6d9b584ea2580780 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 23 May 2019 14:55:01 -0400 Subject: Duplicately supply a minimal metadata in setup.py to support setuptools older than 30.4. Fixes #49. --- CHANGES.rst | 5 +++++ setup.py | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index ab8f799..776f320 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,8 @@ +5.1 +=== + +* #49: Surgically restore support for older setuptools versions. + 5.0 === diff --git a/setup.py b/setup.py index 827e955..d6459a0 100644 --- a/setup.py +++ b/setup.py @@ -2,5 +2,20 @@ import setuptools + +compat = dict( + name='pytest-runner', + py_modules=['ptr'], + setup_requires=['setuptools_scm >= 1.15.0'], + entry_points={'distutils.commands': ['ptr = ptr:PyTest', 'pytest = ptr:PyTest']}, +) +""" +Because pytest-runner is frequently installed by +setup_requires and thus easy_install, and because +many systems still run with setuptools prior to +30.4 in which support for declarative config was +added, supply the basic metadata here. Ref #49. +""" + if __name__ == "__main__": - setuptools.setup(use_scm_version=True) + setuptools.setup(use_scm_version=True, **compat) -- cgit v1.2.1