Skip to content

Commit

Permalink
Merge pull request #386 from jpmckinney/pypy
Browse files Browse the repository at this point in the history
fix: Apply backport only if needed
  • Loading branch information
Bjwebb authored Jul 21, 2021
2 parents bc6981f + 92ca320 commit 11bded4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.17.1] - 2021-07-21

### Fixed

- Use backports-datetime-fromisoformat only if needed, to fix PyPy 3.7 support https://github.com/OpenDataServices/flatten-tool/pull/386

## [0.17.0] - 2021-04-27

### Removed
Expand Down
5 changes: 4 additions & 1 deletion flattentool/ODSReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
from odf.table import Table, TableCell, TableRow

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


# http://stackoverflow.com/a/4544699/1846474
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def run(self):

setup(
name="flattentool",
version="0.17.0",
version="0.17.1",
author="Open Data Services",
author_email="[email protected]",
packages=["flattentool"],
Expand Down

0 comments on commit 11bded4

Please sign in to comment.