Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.7']
jsonref-version: ["==0.3", ">1"]
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Import backports-datetime-fromisoformat only if needed, to fix PyPy 3.7 support

## [0.20.0] - 2022-12-07

### Changed
Expand Down
3 changes: 2 additions & 1 deletion flattentool/ODSReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
from collections import OrderedDict
from datetime import datetime

import backports.datetime_fromisoformat
import odf.opendocument
from odf.table import Table, TableCell, TableRow

# Backport for datetime.fromisoformat, which is new in Python 3.7
try:
_ = datetime.fromisoformat
except AttributeError:
import backports.datetime_fromisoformat

backports.datetime_fromisoformat.MonkeyPatch.patch_fromisoformat()


Expand Down