Skip to content

Commit

Permalink
Remove backport since we are dropping python 3.10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
raman325 committed Jul 25, 2023
1 parent e9b569c commit 82f4ce4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
aiohttp==3.8.5
pydantic==2.0.3
backports-datetime-fromisoformat==2.0.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
packages=find_packages(exclude=["test.*", "test"]),
package_data={"zwave_js_server": ["py.typed"]},
python_requires=">=3.11",
install_requires=["aiohttp>3", "pydantic>=1.10.0", "backports-datetime-fromisoformat>=2.0.0"],
install_requires=["aiohttp>3", "pydantic>=1.10.0"],
entry_points={
"console_scripts": ["zwave-js-server-python = zwave_js_server.__main__:main"]
},
Expand Down
8 changes: 0 additions & 8 deletions zwave_js_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
"""Provide a package for zwave-js-server."""

import sys

# monkeypatch fromisoformat for Python 3.10 to support more formats
if sys.version_info < (3, 11):
from backports.datetime_fromisoformat import MonkeyPatch

MonkeyPatch.patch_fromisoformat()

0 comments on commit 82f4ce4

Please sign in to comment.