diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 804480b..4e00f28 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.7', '3.11', 'pypy-3.7'] + python-version: ['3.8', '3.12', 'pypy-3.10'] steps: - name: Checkout diff --git a/pyroma/__init__.py b/pyroma/__init__.py index 1bdefd9..038d13c 100644 --- a/pyroma/__init__.py +++ b/pyroma/__init__.py @@ -151,7 +151,6 @@ def main(): def run(mode, argument, quiet=False, skip_tests=None): - if quiet: logger = logging.getLogger() logger.disabled = True diff --git a/pyroma/projectdata.py b/pyroma/projectdata.py index 700dd47..960b60b 100644 --- a/pyroma/projectdata.py +++ b/pyroma/projectdata.py @@ -84,7 +84,6 @@ def _get_data(path): # It couldn't build the package, because there is no setup.py or pyproject.toml. # Let's see if there is a setup.cfg: try: - metadata = get_setupcfg_data(path) # Yes, there's a setup.cfg. Pyroma accepted this earlier, but that was probably # a mistake. For the time being, warn for it, but in a future version just fail. @@ -127,7 +126,6 @@ def __exit__(self, exc_type, exc_val, exc_tb): class SetupMonkey: - used_setuptools = False def distutils_setup_replacement(self, **kw): diff --git a/pyroma/ratings.py b/pyroma/ratings.py index d6630a5..5af2acb 100644 --- a/pyroma/ratings.py +++ b/pyroma/ratings.py @@ -397,7 +397,6 @@ def message(self): class ValidREST(BaseTest): - weight = 50 def test(self, data): diff --git a/pyroma/tests.py b/pyroma/tests.py index 787d2ef..17b752c 100644 --- a/pyroma/tests.py +++ b/pyroma/tests.py @@ -100,7 +100,6 @@ def __exit__(self, type, value, traceback): class RatingsTest(unittest.TestCase): - maxDiff = None def _get_file_rating(self, dirname, skip_tests=None): @@ -273,7 +272,6 @@ def test_markdown(self): class PyPITest(unittest.TestCase): - maxDiff = None @unittest.mock.patch("xmlrpc.client.ServerProxy", proxystub) @@ -322,7 +320,6 @@ def test_complete(self, projectdatamock): class ProjectDataTest(unittest.TestCase): - maxDiff = None def test_complete(self): @@ -334,7 +331,6 @@ def test_complete(self): class DistroDataTest(unittest.TestCase): - maxDiff = None def test_complete(self): diff --git a/setup.cfg b/setup.cfg index ec9ae8c..8b57239 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,11 +10,11 @@ classifiers = Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Programming Language :: Python :: 3 :: Only Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy @@ -32,7 +32,7 @@ include_package_data = True packages = find: package_dir = = . -python_requires = >=3.7 +python_requires = >=3.8 install_requires = build>=0.7.0 docutils