From ae9331e075873078819785781bee384b26bbbea0 Mon Sep 17 00:00:00 2001 From: hoiois1996 <43902385-hoiois1996@users.noreply.replit.com> Date: Mon, 16 Jun 2025 11:45:50 +0000 Subject: [PATCH 1/4] Use public cleanup api --- pytest_pudb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): From 36e3a1a7e4bfc37405d504b5d1b3daaaeaebd4c5 Mon Sep 17 00:00:00 2001 From: Nicholas Hansen Date: Mon, 16 Jun 2025 19:16:57 +0100 Subject: [PATCH 2/4] Update metadata and tox --- setup.cfg | 1 + setup.py | 4 ++-- tox.ini | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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..c81d703 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>=3.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 = From 4752359e2bf3853c6d791eaa534a8c6b817daff5 Mon Sep 17 00:00:00 2001 From: Nicholas Hansen Date: Mon, 16 Jun 2025 19:52:38 +0100 Subject: [PATCH 3/4] Bump pytest --- setup.py | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/setup.py b/setup.py index c81d703..c2b7aa3 100644 --- a/setup.py +++ b/setup.py @@ -1,31 +1,31 @@ from setuptools import setup setup( - name='pytest-pudb', - license='MIT', - description='Pytest PuDB debugger integration', - author='Michael Elovskikh', - 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.8.0', - py_modules=['pytest_pudb'], - entry_points={'pytest11': ['pudb = pytest_pudb']}, + name="pytest-pudb", + license="MIT", + description="Pytest PuDB debugger integration", + author="Michael Elovskikh", + 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.8.0", + py_modules=["pytest_pudb"], + entry_points={"pytest11": ["pudb = pytest_pudb"]}, install_requires=[ - 'pytest>=3.0', - 'pudb', + "pytest>=7.0", + "pudb", ], extras_require={ - 'dev': [ - 'pexpect', - 'tox', - 'flake8', + "dev": [ + "pexpect", + "tox", + "flake8", ] }, classifiers=[ - 'Development Status :: 3 - Alpha', - 'Topic :: Software Development :: Testing', - 'Intended Audience :: Developers', - 'Operating System :: OS Independent', - ] + "Development Status :: 3 - Alpha", + "Topic :: Software Development :: Testing", + "Intended Audience :: Developers", + "Operating System :: OS Independent", + ], ) From c29b32a7c93e9a2d40ae1d8594c1fcb3dfd26e06 Mon Sep 17 00:00:00 2001 From: Nicholas Hansen Date: Mon, 16 Jun 2025 19:54:25 +0100 Subject: [PATCH 4/4] Undo formatting changes --- setup.py | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/setup.py b/setup.py index c2b7aa3..bc0aad2 100644 --- a/setup.py +++ b/setup.py @@ -1,31 +1,31 @@ from setuptools import setup setup( - name="pytest-pudb", - license="MIT", - description="Pytest PuDB debugger integration", - author="Michael Elovskikh", - 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.8.0", - py_modules=["pytest_pudb"], - entry_points={"pytest11": ["pudb = pytest_pudb"]}, + name='pytest-pudb', + license='MIT', + description='Pytest PuDB debugger integration', + author='Michael Elovskikh', + 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.8.0', + py_modules=['pytest_pudb'], + entry_points={'pytest11': ['pudb = pytest_pudb']}, install_requires=[ - "pytest>=7.0", - "pudb", + 'pytest>=7.0', + 'pudb', ], extras_require={ - "dev": [ - "pexpect", - "tox", - "flake8", + 'dev': [ + 'pexpect', + 'tox', + 'flake8', ] }, classifiers=[ - "Development Status :: 3 - Alpha", - "Topic :: Software Development :: Testing", - "Intended Audience :: Developers", - "Operating System :: OS Independent", - ], + 'Development Status :: 3 - Alpha', + 'Topic :: Software Development :: Testing', + 'Intended Audience :: Developers', + 'Operating System :: OS Independent', + ] )