Skip to content

Commit

Permalink
Drop support for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Sep 19, 2023
1 parent 3bb4d03 commit a2e5d55
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
- ubuntu-latest
- windows-latest
python-version:
- "3.7" # Earliest version supported by ixmp
- "3.8"
- "3.8" # Earliest version supported by ixmp
- "3.9"
- "3.10"
- "3.11" # Latest supported by ixmp
Expand Down
1 change: 1 addition & 0 deletions RELEASE_NOTES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Next release
.. All changes
.. -----------
- Support for Python 3.7 is dropped (:pull:`492`).
- New :func:`.utils.discard_on_error` and matching argument to :meth:`.TimeSeries.transact` to avoid locking :class:`.TimeSeries` / :class:`.Scenario` on failed operations with :class:`.JDBCBackend` (:pull:`488`).

.. _v3.7.0:
Expand Down
5 changes: 5 additions & 0 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Use cases for installing ixmp directly include:
Install system dependencies
===========================

Python
------

Python version 3.8 or later is required.

GAMS (required)
---------------

Expand Down
6 changes: 1 addition & 5 deletions ixmp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import logging

try:
from importlib.metadata import PackageNotFoundError, version
except ImportError: # Python 3.7
from importlib_metadata import PackageNotFoundError, version # type: ignore
from importlib.metadata import PackageNotFoundError, version

from ixmp._config import config
from ixmp.backend import BACKENDS, IAMC_IDX, ItemType
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ 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",
Expand All @@ -29,11 +28,10 @@ classifiers = [
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
]
requires-python = ">=3.8"
dependencies = [
"click",
"genno <= 1.13; python_version < '3.8'",
"genno >= 1.16; python_version >= '3.8'",
"importlib_metadata; python_version < '3.8'",
"genno >= 1.16",
"JPype1 >= 1.2.1",
"openpyxl",
"pandas >= 1.2",
Expand Down

0 comments on commit a2e5d55

Please sign in to comment.