Skip to content

Commit

Permalink
build!: require python 3.11-13 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Nov 5, 2024
1 parent 6c542e1 commit 59c7ec7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ classifiers = [
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
requires-python = ">=3.11"
description = "Fetch regulatory approval data for drug terms"
license = {file = "LICENSE"}
dependencies = ["requests"]
Expand Down
4 changes: 1 addition & 3 deletions src/regbot/fetch/drugsfda.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,7 @@ def _intify(value: str) -> int | None:

def _make_datetime(value: str) -> datetime.datetime | None:
try:
return datetime.datetime.strptime(value, "%Y%m%d").replace(
tzinfo=datetime.timezone.utc
)
return datetime.datetime.strptime(value, "%Y%m%d").replace(tzinfo=datetime.UTC)
except ValueError:
_logger.error("Unable to convert value '%s' to datetime", value)
return None
Expand Down

0 comments on commit 59c7ec7

Please sign in to comment.