diff --git a/.gitignore b/.gitignore index c5da25c..aba99db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ +__pycache__/ +build/ *.egg-info/ *.svg -__pycache__/ benchmark-results/ condaenv.*.requirements.txt node_modules/ diff --git a/pyproject.toml b/pyproject.toml index 3be11fc..ecc73d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,8 +18,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python", "Topic :: Software Development", @@ -27,7 +25,6 @@ classifiers = [ ] dependencies = [ "PyYAML", - "importlib-metadata; python_version<'3.8.0'", "jax", "jaxlib", "matplotlib", @@ -50,7 +47,7 @@ maintainers = [ {name = "Common Partial Wave Analysis", email = "compwa-admin@ep1.rub.de"}, ] name = "jax-mini-benchmark" -requires-python = ">=3.7" +requires-python = ">=3.9" [project.optional-dependencies] dev = [ @@ -119,7 +116,7 @@ extend-include = ["*.ipynb"] preview = true show-fixes = true src = ["src"] -target-version = "py37" +target-version = "py39" [tool.ruff.format] docstring-code-format = true diff --git a/src/jax_benchmark/io.py b/src/jax_benchmark/io.py index 8d30dcc..5bc8bbf 100644 --- a/src/jax_benchmark/io.py +++ b/src/jax_benchmark/io.py @@ -1,15 +1,10 @@ import logging import os import socket -import sys +from importlib.metadata import version import cpuinfo -if sys.version_info < (3, 8): - from importlib_metadata import version -else: - from importlib.metadata import version - def enable_x64() -> None: import jax