Fix for Python 3.10 (released 2021-10-04) #68
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #58.
Fixes #67.
Python 3.10 is due out on 2021-10-04, three weeks from now.
https://discuss.python.org/t/python-3-10-0rc2-is-now-available/10496?u=hugovk
This deprecation warning was added in Python 3.8:
DeprecationWarning: an integer is required (got type decimal.Decimal). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
For example:
https://bugs.python.org/issue36048
In Python 3.10 it is now an error:
TypeError: 'decimal.Decimal' object cannot be interpreted as an integer
For example:
https://bugs.python.org/issue37999
Failing build without fix:
Passing build with fix:
isodate is downloaded from PyPI 33 million times a month, the 52nd most popular package (https://hugovk.github.io/top-pypi-packages/), therefore I recommend making a release before 2021-10-04.
This PR also switches from Travis CI to GitHub Actions and Coveralls to Codecov, taken from #66, because testing on Travis CI is more difficult now. It only adds testing for supported Python versions. Let me know if this commit should be dropped, but I'd recommend merging #66 as well.