From de48b07328df73fa6c5b0c1fcdf565fa56739ea9 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Sun, 7 May 2023 05:15:53 +0000 Subject: [PATCH] remove deprecated pytest-runner See https://github.com/pytest-dev/pytest-runner/#deprecation-notice. We can call pytest directly instead. --- .github/workflows/python.yml | 6 ++---- setup.py | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 2889b70f..9e499b7d 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -41,13 +41,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e . - python setup.py develop + pip install -e '.[test]' - name: Compile all scripts run: python -m compileall -f terminatorlib/ tests/ remotinator terminator - name: Run tests run: | - pip install -e '.[test]' - xvfb-run -a python setup.py test + xvfb-run -a pytest diff --git a/setup.py b/setup.py index d706b7f4..c49a6f93 100755 --- a/setup.py +++ b/setup.py @@ -219,9 +219,6 @@ setup(name=APP_NAME, 'terminatorlib', 'terminatorlib.plugins', ], - setup_requires=[ - 'pytest-runner', - ], install_requires=[ 'pycairo', 'configobj', @@ -229,7 +226,6 @@ setup(name=APP_NAME, 'pygobject', 'psutil', ], - tests_require=test_deps, extras_require={'test': test_deps}, package_data={'terminatorlib': ['preferences.glade', 'layoutlauncher.glade']}, cmdclass={'build': BuildData, 'install_data': InstallData, 'uninstall': Uninstall},