Skip to content

Commit 11bded4

Browse files
authored
Merge pull request #386 from jpmckinney/pypy
fix: Apply backport only if needed
2 parents bc6981f + 92ca320 commit 11bded4

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [0.17.1] - 2021-07-21
10+
11+
### Fixed
12+
13+
- Use backports-datetime-fromisoformat only if needed, to fix PyPy 3.7 support https://github.com/OpenDataServices/flatten-tool/pull/386
14+
915
## [0.17.0] - 2021-04-27
1016

1117
### Removed

flattentool/ODSReader.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
from odf.table import Table, TableCell, TableRow
2424

2525
# Backport for datetime.fromisoformat, which is new in Python 3.7
26-
backports.datetime_fromisoformat.MonkeyPatch.patch_fromisoformat()
26+
try:
27+
_ = datetime.fromisoformat
28+
except AttributeError:
29+
backports.datetime_fromisoformat.MonkeyPatch.patch_fromisoformat()
2730

2831

2932
# http://stackoverflow.com/a/4544699/1846474

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run(self):
4343

4444
setup(
4545
name="flattentool",
46-
version="0.17.0",
46+
version="0.17.1",
4747
author="Open Data Services",
4848
author_email="[email protected]",
4949
packages=["flattentool"],

0 commit comments

Comments
 (0)