Skip to content

Commit

Permalink
py310
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Nov 14, 2024
1 parent aa4ea81 commit d97e062
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion compliance_checker/cf/util.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import itertools
import os
import sys
from importlib.resources import files
from pkgutil import get_data

import requests
from cf_units import Unit
from importlib_resources import files
from lxml import etree
from netCDF4 import Dataset

Expand Down
2 changes: 1 addition & 1 deletion compliance_checker/cfutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import warnings
from collections import defaultdict
from functools import lru_cache, partial
from importlib.resources import files

from cf_units import Unit
from importlib_resources import files

_UNITLESS_DB = None
_SEA_NAMES = None
Expand Down
6 changes: 3 additions & 3 deletions compliance_checker/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
import warnings
from collections import defaultdict
from datetime import datetime, timezone
from importlib.metadata import entry_points
from operator import itemgetter
from pathlib import Path
from urllib.parse import urlparse

import importlib_metadata
import requests
from lxml import etree as ET
from netCDF4 import Dataset
Expand Down Expand Up @@ -73,7 +73,7 @@ def _get_generator_plugins(cls):
"""

if not hasattr(cls, "suite_generators"):
gens = importlib_metadata.entry_points(
gens = entry_points(

Check warning on line 76 in compliance_checker/suite.py

View check run for this annotation

Codecov / codecov/patch

compliance_checker/suite.py#L76

Added line #L76 was not covered by tests
group="compliance_checker.generators",
)
cls.suite_generators = [x.load() for x in gens]
Expand Down Expand Up @@ -139,7 +139,7 @@ def load_all_available_checkers(cls):
base classes.
"""
cls._load_checkers(
importlib_metadata.entry_points(group="compliance_checker.suites"),
entry_points(group="compliance_checker.suites"),
)

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion compliance_checker/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import subprocess
from importlib.resources import files
from itertools import chain

import pytest
from importlib_resources import files
from netCDF4 import Dataset

from compliance_checker.cf import util
Expand Down
3 changes: 1 addition & 2 deletions compliance_checker/tests/resources.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import subprocess

from importlib_resources import files
from importlib.resources import files


def get_filename(path):
Expand Down
2 changes: 1 addition & 1 deletion compliance_checker/tests/test_suite.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os
import unittest
from importlib.resources import files
from pathlib import Path

import numpy as np
from importlib_resources import files

from compliance_checker.acdd import ACDDBaseCheck
from compliance_checker.base import BaseCheck, GenericFile, Result
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ maintainers = [
{ name = "Luke Campbell" },
{ name = "Filipe Fernandes" },
]
requires-python = ">=3.8"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
Expand All @@ -28,8 +28,6 @@ classifiers = [
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"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",
Expand Down

0 comments on commit d97e062

Please sign in to comment.