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

Commit 8437c7f

Browse files
committed
Duplicately supply a minimal metadata in setup.py to support setuptools older than 30.4. Fixes #49.
1 parent 1173ceb commit 8437c7f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
5.1
2+
===
3+
4+
* #49: Surgically restore support for older setuptools versions.
5+
16
5.0
27
===
38

setup.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,20 @@
22

33
import setuptools
44

5+
6+
compat = dict(
7+
name='pytest-runner',
8+
py_modules=['ptr'],
9+
setup_requires=['setuptools_scm >= 1.15.0'],
10+
entry_points={'distutils.commands': ['ptr = ptr:PyTest', 'pytest = ptr:PyTest']},
11+
)
12+
"""
13+
Because pytest-runner is frequently installed by
14+
setup_requires and thus easy_install, and because
15+
many systems still run with setuptools prior to
16+
30.4 in which support for declarative config was
17+
added, supply the basic metadata here. Ref #49.
18+
"""
19+
520
if __name__ == "__main__":
6-
setuptools.setup(use_scm_version=True)
21+
setuptools.setup(use_scm_version=True, **compat)

0 commit comments

Comments
 (0)