-
Notifications
You must be signed in to change notification settings - Fork 224
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
Confirm support of django 1.11 and python 2.7 to 3.* #141
base: master
Are you sure you want to change the base?
Conversation
joehybird
commented
Sep 12, 2017
- Add specific target for django 1.11 in travis configuration.
- Fix problem with int => long conversion in python 2.7
- Maybe the problems with travis builds comes from fast set/get calls in unit tests (async issue ?). I had no time to investigate sorry.
redis_cache/sharder.py
Outdated
# in get_slot() if the hash value overflows integer a LONG is returned ! | ||
# and LONG not exist in python 3.x | ||
try: | ||
NUMBER_TYPES = (int, long) |
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.
Use django.utils.six.integer_types
rather than reimplementing it.
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.
Done :)
47c21a2
to
e1fd32a
Compare
I have a serious problem with redis-server, the requests seems to fail randomly (are the tests synchronous ?) |
…aly). Fix issue due to integer overflow and python < 3 (converted to long). Fix redis version in order to have SCAN command.
1e22e46
to
68f2a41
Compare
@timgraham, it seems to pass but I got some issues between pyyaml and python 3.7 and had to upgrade this dependency. |
Okay. By the way, I'm not a maintainer of this project. |
Ok, I should ping @sebleier instead... Thanks for the help :) |