diff --git a/pytest_pudb.py b/pytest_pudb.py index 1f7a592..6f6fd2e 100644 --- a/pytest_pudb.py +++ b/pytest_pudb.py @@ -18,7 +18,7 @@ def pytest_configure(config): config.pluginmanager.register(pudb_wrapper, 'pudb_wrapper') pudb_wrapper.mount() - config._cleanup.append(pudb_wrapper.unmount) + config.add_cleanup(pudb_wrapper.unmount) class PuDBWrapper(object): diff --git a/setup.cfg b/setup.cfg index f827d19..766d7b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,6 @@ [flake8] max-line-length=120 +exclude = venv,.tox [bdist_wheel] universal = 1 diff --git a/setup.py b/setup.py index 24a6bd6..bc0aad2 100644 --- a/setup.py +++ b/setup.py @@ -8,11 +8,11 @@ author_email='wronglink@gmail.com', url='https://github.com/wronglink/pytest-pudb', long_description=open('README.rst').read() + '\n\n' + open('HISTORY.rst').read(), - version='0.7.0', + version='0.8.0', py_modules=['pytest_pudb'], entry_points={'pytest11': ['pudb = pytest_pudb']}, install_requires=[ - 'pytest>=2.0', + 'pytest>=7.0', 'pudb', ], extras_require={ diff --git a/tox.ini b/tox.ini index b67f6bd..ff9036c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py26,py27,py34,py35,py36,py37,flake8 +envlist = py26,py27,py34,py35,py36,py37,py313,flake8 [testenv] commands =