[Python-modules-commits] [pytest] 05/12: Don't provide py.test-X.Y entry points.

Barry Warsaw barry at moszumanska.debian.org
Thu Feb 11 19:37:37 UTC 2016


This is an automated email from the git hooks/post-receive script.

barry pushed a commit to branch master
in repository pytest.

commit 00fc4b7079f17bf98a3e83c28f8247704f3244a0
Author: Barry Warsaw <barry at python.org>
Date:   Thu Feb 11 13:31:23 2016 -0500

    Don't provide py.test-X.Y entry points.
    
    Patch-Name: normalize-entry-points.patch
---
 setup.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index ec9c9d4..d969a23 100644
--- a/setup.py
+++ b/setup.py
@@ -89,8 +89,10 @@ def cmdline_entrypoints(versioninfo, platform, basename):
         if basename.startswith('pypy'):
             points = {'py.test-%s' % basename: target}
         else: # cpython
-            points = {'py.test-%s.%s' % versioninfo[:2] : target}
-        points['py.test'] = target
+            if versioninfo.major == 3:
+                points = {'py.test-3' : target}
+            else:
+                points = {'py.test' : target}
     return points
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pytest.git



More information about the Python-modules-commits mailing list