Skip to content

Commit e454c08

Browse files
committed
prepare 0.3.1
1 parent a398cf2 commit e454c08

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
0.3.1
2+
-----
3+
4+
- avoid using deprecated-in-python3.5 getargspec method. Thanks
5+
Michael Droettboom.
6+
7+
18
0.3.0
29
-----
310

pluggy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
import sys
6868
import inspect
6969

70-
__version__ = '0.3.0'
70+
__version__ = '0.3.1'
7171
__all__ = ["PluginManager", "PluginValidationError",
7272
"HookspecMarker", "HookimplMarker"]
7373

@@ -763,7 +763,6 @@ class PluginValidationError(Exception):
763763
""" plugin failed validation. """
764764

765765

766-
767766
if hasattr(inspect, 'signature'):
768767
def _formatdef(func):
769768
return "%s%s" % (

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup
55

66
classifiers = [
7-
'Development Status :: 3 - Alpha ',
7+
'Development Status :: 4 - Beta',
88
'Intended Audience :: Developers',
99
'License :: OSI Approved :: MIT License',
1010
'Operating System :: POSIX',
@@ -14,7 +14,7 @@
1414
'Topic :: Software Development :: Libraries',
1515
'Topic :: Utilities'] + [
1616
('Programming Language :: Python :: %s' % x) for x in
17-
'2 2.6 2.7 3 3.3 3.4'.split()]
17+
'2 2.6 2.7 3 3.3 3.4 3.5'.split()]
1818

1919
with open('README.rst') as fd:
2020
long_description = fd.read()

test_pluggy.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -666,18 +666,25 @@ class D:
666666

667667

668668
def test_formatdef():
669-
def function1(): pass
669+
def function1():
670+
pass
671+
670672
assert _formatdef(function1) == 'function1()'
671673

672-
def function2(arg1): pass
674+
def function2(arg1):
675+
pass
676+
673677
assert _formatdef(function2) == "function2(arg1)"
674678

675-
def function3(arg1, arg2="qwe"): pass
679+
def function3(arg1, arg2="qwe"):
680+
pass
681+
676682
assert _formatdef(function3) == "function3(arg1, arg2='qwe')"
677683

678-
def function4(arg1, *args, **kwargs): pass
679-
assert _formatdef(function4) == "function4(arg1, *args, **kwargs)"
684+
def function4(arg1, *args, **kwargs):
685+
pass
680686

687+
assert _formatdef(function4) == "function4(arg1, *args, **kwargs)"
681688

682689

683690
class Test_MultiCall:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=check,{py26,py27,py34,pypy}-{pytest27,pytest}
2+
envlist=check,{py26,py27,py34,py35,pypy}-{pytest27,pytest}
33

44
[testenv]
55
commands= py.test {posargs:test_pluggy.py}

0 commit comments

Comments
 (0)