Skip to content

Commit

Permalink
Merge pull request #30 from questionlp/develop
Browse files Browse the repository at this point in the history
Upgrade to wwdtm 2.5.0, support Python 3.12
  • Loading branch information
questionlp authored Nov 25, 2023
2 parents 4d5285d + d2cd2c9 commit 4c6080a
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changes

## 2.6.0

**Starting with version 2.6.0, support for all versions of Python prior to 3.10 have been deprecated.**

### Application Changes

- Replace `dateutil.parser.parse` with `datetime.datetime.strptime`

### Component Changes

- Upgrade wwdtm from 2.4.1 to 2.5.0, which drops supports for Python versions prior to 3.10 and includes:
- Upgrade MySQL Connector/Python from 8.0.33 to 8.2.0
- Upgrade numpy from 1.24.4 to 1.26.0

### Development Changes

- Upgrade black from 23.10.1 to 23.11.0
- Remove `py38` and `py39` from `tool.black` in `pyproject.toml`
- Bump minimum pytest version from 7.0 to 7.4 in `pyproject.toml`

## 2.5.0

### Component Changes
Expand Down
3 changes: 1 addition & 2 deletions app/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"""Utility functions used by the Graphs Site"""

from datetime import datetime
from dateutil import parser
from flask import current_app
from typing import Any, Dict, List
from mysql.connector import connect, DatabaseError
Expand Down Expand Up @@ -41,7 +40,7 @@ def date_string_to_date(**kwargs) -> datetime:
"""Used to convert an ISO-style date string into a datetime object"""
if "date_string" in kwargs and kwargs["date_string"]:
try:
date_object = parser.parse(kwargs["date_string"])
date_object = datetime.datetime.strptime(kwargs["date_string"], "%Y-%m-%d")
return date_object

except ValueError:
Expand Down
2 changes: 1 addition & 1 deletion app/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# graphs.wwdt.me is released under the terms of the Apache License 2.0
"""Application Version for Wait Wait Graphs Site"""

APP_VERSION = "2.5.0"
APP_VERSION = "2.6.0"
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
required-version = "23.10.1"
target-version = ["py38", "py39", "py310", "py311", "py312"]
required-version = "23.11.0"
target-version = ["py310", "py311", "py312"]

[tool.pytest.ini_options]
minversion = "7.4"
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
flake8==6.1.0
pycodestyle==2.11.1
pytest==7.4.3
black==23.10.1
black==23.11.0

Flask==3.0.0
gunicorn==21.2.0

wwdtm==2.4.0
wwdtm==2.5.0
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask==3.0.0
gunicorn==21.2.0

wwdtm==2.4.0
wwdtm==2.5.0

0 comments on commit 4c6080a

Please sign in to comment.