Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: drop Python 3.8 support due to EOL #534

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
254 changes: 0 additions & 254 deletions .constraints/py3.8.txt

This file was deleted.

4 changes: 3 additions & 1 deletion benchmarks/ampform.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from pprint import pprint
from typing import TYPE_CHECKING, Mapping, Sequence
from typing import TYPE_CHECKING

import numpy as np
import pytest
Expand All @@ -17,6 +17,8 @@
from tensorwaves.function.sympy import create_parametrized_function

if TYPE_CHECKING:
from collections.abc import Mapping, Sequence

from ampform.helicity import HelicityModel
from qrules.combinatorics import StateDefinition

Expand Down
2 changes: 1 addition & 1 deletion docs/amplitude-analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
"source": [
"::::{margin}\n",
":::{tip}\n",
"{doc}`TR-018<compwa:report/018>` explains some of the mechanisms behind the phase space generator as well as how to do {ref}`importance sampling<compwa:report/018:Intensity distribution>`.\n",
"{doc}`TR-018<compwa-report:018>` explains some of the mechanisms behind the phase space generator as well as how to do {ref}`importance sampling<compwa-report:018:Intensity distribution>`.\n",
":::\n",
"::::\n",
"\n",
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def get_tensorflow_url() -> str:
intersphinx_mapping = {
"ampform": (f"https://ampform.readthedocs.io/{pin('ampform')}", None),
"compwa": ("https://compwa.github.io", None),
"compwa-report": ("https://compwa.github.io/report", None),
"graphviz": ("https://graphviz.readthedocs.io/en/stable", None),
"iminuit": ("https://scikit-hep.org/iminuit", None),
"jax": ("https://jax.readthedocs.io/en/latest", None),
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Physics",
Expand Down Expand Up @@ -47,7 +46,7 @@ keywords = [
license = {file = "LICENSE"}
maintainers = [{email = "[email protected]"}]
name = "tensorwaves"
requires-python = ">=3.8"
requires-python = ">=3.9"

[project.optional-dependencies]
all = [
Expand Down Expand Up @@ -144,7 +143,6 @@ tf = [
"numpy<2",
"tensorflow !=2.15.0.post1", # https://github.com/ComPWA/tensorwaves/actions/runs/7147814088/job/19467965144?pr=509
"tensorflow >=2.4", # tensorflow.experimental.numpy
'tensorflow <2.12; python_version <"3.9.0"',
]
types = [
"sphinx-api-relink >=0.0.4",
Expand Down
4 changes: 3 additions & 1 deletion src/tensorwaves/data/_attrs.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from __future__ import annotations

from typing import TYPE_CHECKING, Iterable
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from collections.abc import Iterable

from tensorwaves.interface import DataTransformer


Expand Down
4 changes: 3 additions & 1 deletion src/tensorwaves/data/phasespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import logging
from typing import TYPE_CHECKING, Mapping
from typing import TYPE_CHECKING

from tqdm.auto import tqdm

Expand All @@ -19,6 +19,8 @@
from .rng import TFUniformRealNumberGenerator

if TYPE_CHECKING:
from collections.abc import Mapping

import numpy as np
import tensorflow as tf

Expand Down
4 changes: 3 additions & 1 deletion src/tensorwaves/data/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import TYPE_CHECKING, Mapping
from typing import TYPE_CHECKING

from attrs import field, frozen

Expand All @@ -16,6 +16,8 @@
from ._attrs import to_tuple

if TYPE_CHECKING: # pragma: no cover
from collections.abc import Mapping

import numpy as np
import sympy as sp

Expand Down
4 changes: 3 additions & 1 deletion src/tensorwaves/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from __future__ import annotations

from typing import TYPE_CHECKING, Callable, Iterable, Mapping
from typing import TYPE_CHECKING, Callable

from tensorwaves.data.transform import SympyDataTransformer
from tensorwaves.function._backend import find_function, raise_missing_module_error
Expand All @@ -19,6 +19,8 @@
)

if TYPE_CHECKING:
from collections.abc import Iterable, Mapping

import numpy as np
import sympy as sp

Expand Down
5 changes: 4 additions & 1 deletion src/tensorwaves/function/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from __future__ import annotations

import inspect
from typing import Callable, Iterable, Mapping
from typing import TYPE_CHECKING, Callable

import attrs
import numpy as np
Expand All @@ -16,6 +16,9 @@
ParametrizedFunction,
)

if TYPE_CHECKING:
from collections.abc import Iterable, Mapping


def _all_str(
_: PositionalArgumentFunction, __: attrs.Attribute, value: Iterable[str]
Expand Down
Loading
Loading