Commit Graph

192 Commits

Author SHA1 Message Date
Sean Reifschneider 288c159720 Adding back in py33 because removing didn't help. 2016-12-17 19:50:50 -07:00
Sean Reifschneider d9ded7bf07 Removing py33 since flake8 seems to be having a bug checking it. 2016-12-17 19:18:46 -07:00
Sean Reifschneider 5b75728565 #112 Cleaning up flake8 alerts 2016-12-17 09:03:22 -07:00
Sean Reifschneider 1cab3004e3 Adding notes about changes. 2016-12-17 09:00:45 -07:00
Sean Reifschneider ea0cb51a8a Merge pull request #112 from timgraham/flake8
Add flake8 check to Travis
2016-12-17 08:38:33 -07:00
Tim Graham 183e4808ca Add flake8 check to Travis 2016-12-17 09:52:50 -05:00
Sean Reifschneider e741b2a239 Merge pull request #111 from timgraham/has_unicode
Remove unused _has_unicode/_str_cls vars
2016-12-17 07:50:40 -07:00
Sean Reifschneider d6a7a49ff1 Merge pull request #113 from timgraham/return
Remove unnecessary parentheses in return statements
2016-12-17 07:44:44 -07:00
Sean Reifschneider 5f69ec888c Merge pull request #115 from timgraham/drop-py2632
Fix #109: Remove testing for Python 2.6 and 3.2
2016-12-17 07:41:45 -07:00
Tim Graham a590982122 Fix #109: Remove testing for Python 2.6 and 3.2 2016-12-17 09:25:15 -05:00
Sean Reifschneider f4d8bf2603 Merge pull request #105 from romuald/typo-docstring
Fix some typos in docstrings
2016-12-17 07:20:27 -07:00
Sean Reifschneider 06995d8351 Merge pull request #110 from timgraham/py35
Add testing for Python 3.5
2016-12-17 07:19:19 -07:00
Tim Graham 48f9610d6d Remove unnecessary parentheses in return statements 2016-12-16 10:06:19 -05:00
Tim Graham f34f9d233c Remove unused _has_unicode/_str_cls vars
Unused since 04f1c78c13.
2016-12-16 07:20:21 -05:00
Tim Graham 0f0cb639ad Add testing for Python 3.5 2016-12-14 08:36:29 -05:00
Romuald Brunet 44f95a2c42 Fix some typos in docstrings 2016-12-01 14:56:51 +01:00
Sean Reifschneider b13d6fcb71 Version changes for release. 2016-05-27 14:03:45 -06:00
Sean Reifschneider f8c2231c16 Adding changelog entries. 2016-05-27 13:45:19 -06:00
Sean Reifschneider d8cfb1693a Merge branch 'oremj-fix_delete_defaults' 2016-05-27 13:25:44 -06:00
Sean Reifschneider 81cd83d713 Readme changes for delete() time=None change 2016-05-27 13:25:00 -06:00
Sean Reifschneider 6b2edeb9d3 Merge pull request #81 from pipermerriam/piper/pin-six-at-version-with-PY2-property
Pin six at version with PY2 property
2016-05-27 10:54:43 -06:00
Sean Reifschneider f862e3c164 Merge pull request #82 from dieselmachine/72-version-discrepancies
(#72) setup.py will now pull the version number directly from memcach…
2016-05-27 10:52:58 -06:00
Sean Reifschneider f7d081e534 Merge pull request #91 from bartTC/master
Python3: `get_stats` function fails due to Bytestring encoding errors
2016-05-27 10:35:24 -06:00
Sean Reifschneider 120a16d86e Merge pull request #93 from grg350/master
Adding support for "stats slabs" statistics
2016-05-27 10:24:54 -06:00
Sean Reifschneider 7feed83fcb Merge pull request #86 from edmorley/python2-pickle-perf
Use cPickle with Python 2 again, to fix v1.54 performance regression
2016-05-26 08:51:21 -06:00
grg350 dc35cd8fdb fixing indentation 2 2016-05-09 15:35:35 -07:00
grg350 291b910230 fixing indentation 2016-05-09 15:31:02 -07:00
raj.gurung cf77e434b2 Adding support for "stats slabs" statistics 2016-05-09 14:44:36 -07:00
Martin Mahner 8cc37bb9c6 Fixed Python3 Bytestring decoding error in get_stats. 2016-03-19 14:06:53 +01:00
Ed Morley 781021ea5a Use cPickle with Python 2 again, to fix v1.54 performance regression
Some Python 3 compatibility changes made python-memcached import pickle
rather than cPickle, since the latter isn't available on Python 3:
45403325e0

This is fine on Python 3, since importing pickle will automatically use
the faster C implementation if available, however with Python 2 this
caused a 400% slowdown in memcache gets between python-memcached v1.53
and v1.54, when dealing with objects other than bytes.

This mostly fixes #71, though there is still a 10-20% performance drop
using current master plus this change compared to v1.53 (using Python
2.7.10).
2016-01-07 23:19:34 +00:00
JT b84e904a8c (#72) setup.py will now pull the version number directly from memcache.py (using setuptools.depends.get_module_constant) in order to prevent discrepancies 2015-10-01 00:13:46 +00:00
Piper Merriam 33a63dc404 Pin six at version with PY2 property 2015-09-15 11:39:31 -06:00
Sean Reifschneider 37f55ca4ad Changing assertIs from last patch to assertTrue. 2015-08-02 17:57:17 -06:00
Sean Reifschneider f65b1dcfe2 Fixing tests for PEP8. 2015-08-02 17:55:27 -06:00
Sean Reifschneider e1d093fd49 Adding unittest backport to 2.6. 2015-08-02 17:54:10 -06:00
Sean Reifschneider d6cc2096f3 Merge branch 'haypo-py3' 2015-08-02 17:50:57 -06:00
Sean Reifschneider 94089e66cd Merge branch 'py3' of ssh://github.com/haypo/python-memcached into haypo-py3
Conflicts:
	tests/test_memcache.py
2015-08-02 17:50:40 -06:00
Sean Reifschneider 7e46fa837c Merge pull request #78 from nicholasserra/nicholasserra-boolean-test
Test for set/get boolean values.
2015-07-31 14:13:04 -06:00
Sean Reifschneider c92b9541a9 Release automation. 2015-07-31 14:10:22 -06:00
Nicholas Serra a029bfd89d Test for set/get boolean values. 2015-07-31 15:05:18 -04:00
Sean Reifschneider 664bd3e23f Fix for value being boolean in set(). 2015-07-31 11:46:13 -06:00
Victor Stinner 3fde65eeae More Python 3 fixes
* Port set_multi() to Python 3
* Port delete_multi() to Python 3
* Fix _get_server() on Python 3 when the connection to the first server
  fails: encode to ASCII before calling serverHashFunction.
* Fix expect(): don't decode line on Python 3, return the raw line
* Add more unit tests
* tox now also runs unit tests
* Explicit the encoding when calling str.encode(): use 'utf-8'
* test_memcache: close sockets in tearDown()
* test_get_unknown_value(): delete the key to ensure that it doesn't exist
2015-07-27 18:08:10 +02:00
Sean Reifschneider d9c602ffb1 For 1.56 release. 2015-07-26 14:48:29 -06:00
Sean Reifschneider d9d676344e Updating version in memcache.py 2015-07-26 14:47:56 -06:00
Sean Reifschneider 8a48945009 Updating changelog. 2015-07-26 14:44:31 -06:00
Sean Reifschneider 7e353b8fa4 Merge pull request #67 from haypo/py3
Port memcache to Python 3
2015-07-26 14:41:16 -06:00
Victor Stinner 04f1c78c13 Port memcache to Python 3
* travis: make python 3 tests voting (cannot fail anymore)
* setup.py: add Python 3 classifiers
* Encode unicode key to UTF-8: add _encode_key() method
* Add _encode_cmd() helper method to format a memcache command as a byte
  string (bytes%args will only be supported in Python 3.5)
* Rewrite _map_and_prefix_keys() code converting keys
* _val_to_store_info() now accepts Unicode: Unicode is encoded to UTF-8
* _set('cas') doesn't call _val_to_store_info() anymore when it's not
  needed: begin by checking if the key is in the cas_ids dictionary
* Process server reply as bytes
* _recv_value() now clears the _FLAG_COMPRESSED flag after decompressing
  to simplify the code
* On Python 3, _recv_value() now decodes byte strings from UTF-8
* Simplify check_key(), _encode_key() now encodes Unicode to UTF-8
* Replace u'...' with six.u('...') in tests for Python 3.2
2015-04-23 16:14:09 +02:00
Sean Reifschneider 48e882719c Adding Changelog entry. 2015-03-19 10:45:43 -06:00
Sean Reifschneider bf294096c6 Merge pull request #60 from jerith/split-out-tests
Better test structure
2015-03-19 10:39:35 -06:00
Sean Reifschneider 70f24bb011 Merge pull request #59 from tylerdave/master
Updating comment to account for -I option
2015-03-18 16:27:19 -06:00