Skip to content

Commit

Permalink
MAINT: drop Python 3.7 & 3.8 support due to EOL (#10)
Browse files Browse the repository at this point in the history
* DX: add `build/` to `.gitignore`
* MAINT: modernize Python syntax to Python 3.9
  • Loading branch information
redeboer authored Oct 11, 2024
1 parent d7e2916 commit eea9bf8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
__pycache__/
build/
*.egg-info/
*.svg
__pycache__/
benchmark-results/
condaenv.*.requirements.txt
node_modules/
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,13 @@ 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",
"Typing :: Typed",
]
dependencies = [
"PyYAML",
"importlib-metadata; python_version<'3.8.0'",
"jax",
"jaxlib",
"matplotlib",
Expand All @@ -50,7 +47,7 @@ maintainers = [
{name = "Common Partial Wave Analysis", email = "[email protected]"},
]
name = "jax-mini-benchmark"
requires-python = ">=3.7"
requires-python = ">=3.9"

[project.optional-dependencies]
dev = [
Expand Down Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions src/jax_benchmark/io.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit eea9bf8

Please sign in to comment.