Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Duplicately supply a minimal metadata in setup.py to support setuptoo…
Browse files Browse the repository at this point in the history
…ls older than 30.4. Fixes #49.
  • Loading branch information
jaraco committed May 23, 2019
1 parent 1173ceb commit 8437c7f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
5.1
===

* #49: Surgically restore support for older setuptools versions.

5.0
===

Expand Down
17 changes: 16 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 8437c7f

Please sign in to comment.