Skip to content

Commit

Permalink
Merge pull request #1122 from ocefpaf/py310
Browse files Browse the repository at this point in the history
Minimum Python support 3.10
  • Loading branch information
ocefpaf authored Nov 21, 2024
2 parents 7d62f4f + e322674 commit f0bedc7
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/default-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
os: [ windows-latest, ubuntu-latest, macos-latest ]
fail-fast: false
defaults:
Expand Down
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(
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
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
cf-units>=2
cftime>=1.1.0
importlib-metadata
importlib-resources
isodate>=0.6.1
jinja2>=2.7.3
lxml>=3.2.1
Expand Down

0 comments on commit f0bedc7

Please sign in to comment.