-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switched to use Pendulum's C timezone implementation #58
Conversation
@movermeyer Thanks for this! Looks like there are some conflicts now. Is this otherwise ready? |
5583e76
to
39f40f8
Compare
03a53b6
to
2b3eb27
Compare
9ba62be
to
42b4f5c
Compare
5d85d29
to
509e78b
Compare
d95048b
to
8e67d21
Compare
05c671d
to
6cd055a
Compare
… against other libraries (ex. `from pendulum.parsing import parse_iso8601 as parse_datetime`)
module.c
Outdated
} | ||
|
||
#if PY_VERSION_AT_LEAST_37 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use
#if PY_VERSION_HEX < 0x03070000 || (PYPY_VERSION && PYPY_VERSION_NUM < 0x07030600)
utc = new_fixed_offset(0);
#else
utc = PyDateTime_TimeZone_UTC;
#endif
to be most compatible?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thomasst Make sense. Added as SUPPORTS_37_TIMEZONE_API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested that the build works with pypy v7.3.5
using:
docker run -it --rm=true -v $(dirname `pwd`):/app pypy bash
cd /app
pypy3 setup.py test
It fails some of the tests due to difference in the error message printout, but runs fine.
I have also tested against the nightly build of the py3.7
branch, which includes their changes. For this I used a slightly updated version of linnik/pypy3-nightly-docker
and the same test methodology as above. It had the same results.
de3cf00
to
e2dea9c
Compare
Removes dependency on pytz. Maintains the same error messages so its backwards compatible with 2.0.x versions.
Removes dependency on pytz.
Maintains the same error messages so it's backwards compatible with 2.0.x versions.
Resolves #45 (See that issue for performance discussion), and fixes #101