[Python-modules-commits] [pytest] 01/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 b785d57d18ca439f71c8780f11c9c2a1deef06dc
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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index ec9c9d4..dc054d2 100644
--- a/setup.py
+++ b/setup.py
@@ -89,7 +89,8 @@ 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}
+            if versioninfo[0] == '3':
+                points = {'py.test-3' : target}
         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