diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 75056bf9..03785db7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,7 @@ jobs: max-parallel: 1 # Hinet doesn't allow parallel data request fail-fast: false matrix: - python-version: ["3.10", "3.14"] + python-version: ["3.11", "3.14"] os: [macos-latest, ubuntu-latest] steps: diff --git a/HinetPy/client.py b/HinetPy/client.py index 5b297404..02acb516 100644 --- a/HinetPy/client.py +++ b/HinetPy/client.py @@ -157,7 +157,7 @@ def __str__(self): if key == "password": value = "*" * len(value) string += f"{key:22s}: {value}\n" - except AttributeError: # noqa: PERF203 + except AttributeError: continue return string @@ -721,7 +721,7 @@ def _download_event_waveform(self, id): # noqa: A002 with zipfile.ZipFile(ft.name) as fz: fz.extractall(path=outdir) return outdir - except Exception: # noqa: BLE001, S112, PERF203 + except Exception: # noqa: BLE001, S112 continue logger.error("Data download fails after %d retries.", self.retries) return None diff --git a/docs/installation.md b/docs/installation.md index 8fe68dbb..5d0387c7 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -4,7 +4,7 @@ To use HinetPy, you need: -- Python \>= 3.10 +- Python \>= 3.11 - win32tools provided by NIED Hi-net (see below for install instructions) - a Hi-net account (register on Hi-net website to get your user name and password) diff --git a/docs/locale/zh_CN/LC_MESSAGES/installation.po b/docs/locale/zh_CN/LC_MESSAGES/installation.po index a1ec136a..13e32cd2 100644 --- a/docs/locale/zh_CN/LC_MESSAGES/installation.po +++ b/docs/locale/zh_CN/LC_MESSAGES/installation.po @@ -30,7 +30,7 @@ msgid "To use HinetPy, you need:" msgstr "为了使用 HinetPy,你需要:" #: ../../installation.md:7 -msgid "Python \\>= 3.10" +msgid "Python \\>= 3.11" msgstr "" #: ../../installation.md:8 diff --git a/docs/locale/zh_CN/LC_MESSAGES/tutorial/get-started.po b/docs/locale/zh_CN/LC_MESSAGES/tutorial/get-started.po index 2679f5d7..d53118e9 100644 --- a/docs/locale/zh_CN/LC_MESSAGES/tutorial/get-started.po +++ b/docs/locale/zh_CN/LC_MESSAGES/tutorial/get-started.po @@ -43,10 +43,10 @@ msgstr "启动Python" #: ../../tutorial/get-started.md:12 msgid "" "Run `python` (or `ipython` if you have it), and make sure you're using " -"Python 3.10 or above:" +"Python 3.11 or above:" msgstr "" "在终端中运行 `python` (或 `ipython` ),并确保你所使用的Python版本大于等于" -"3.10:" +"3.11:" #: ../../tutorial/get-started.md:22 msgid "Create a Client" diff --git a/docs/tutorial/get-started.md b/docs/tutorial/get-started.md index 0aa1b4b1..bf055ba0 100644 --- a/docs/tutorial/get-started.md +++ b/docs/tutorial/get-started.md @@ -9,8 +9,8 @@ Now let's get started. ## Start python -Run `python` (or `ipython` if you have it), and make sure you're using Python -3.10 or above: +Run `python` (or `ipython` if you have it), and make sure you're using Python 3.11 or +above: ```console $ python diff --git a/environment.yml b/environment.yml index 03d660b5..cbfd87a3 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge - nodefaults dependencies: - - python>=3.10 + - python>=3.11 - pip - setuptools>=77 - setuptools_scm>=6.2 diff --git a/pyproject.toml b/pyproject.toml index f0871813..b86f0ba4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "HinetPy" description = "A Python package for accessing and processing NIED Hi-net seismic data" readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" authors = [{name = "Dongdong Tian", email = "seisman.info@gmail.com"}] license = "MIT" license-files = ["LICENSE"] @@ -18,7 +18,6 @@ classifiers = [ "Operating System :: POSIX :: Linux", "Operating System :: MacOS", "Programming Language :: Python", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13",