Skip to content

Commit

Permalink
Updated python versions (#103)
Browse files Browse the repository at this point in the history
* Updated python versions

* Ran black on the code
  • Loading branch information
regebro authored Oct 10, 2023
1 parent 0c05611 commit ecfac7e
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion pyroma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def main():


def run(mode, argument, quiet=False, skip_tests=None):

if quiet:
logger = logging.getLogger()
logger.disabled = True
Expand Down
2 changes: 0 additions & 2 deletions pyroma/projectdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -127,7 +126,6 @@ def __exit__(self, exc_type, exc_val, exc_tb):


class SetupMonkey:

used_setuptools = False

def distutils_setup_replacement(self, **kw):
Expand Down
1 change: 0 additions & 1 deletion pyroma/ratings.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ def message(self):


class ValidREST(BaseTest):

weight = 50

def test(self, data):
Expand Down
4 changes: 0 additions & 4 deletions pyroma/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -273,7 +272,6 @@ def test_markdown(self):


class PyPITest(unittest.TestCase):

maxDiff = None

@unittest.mock.patch("xmlrpc.client.ServerProxy", proxystub)
Expand Down Expand Up @@ -322,7 +320,6 @@ def test_complete(self, projectdatamock):


class ProjectDataTest(unittest.TestCase):

maxDiff = None

def test_complete(self):
Expand All @@ -334,7 +331,6 @@ def test_complete(self):


class DistroDataTest(unittest.TestCase):

maxDiff = None

def test_complete(self):
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ecfac7e

Please sign in to comment.