Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge from stableHEADmaster | Eli Collins | 2020-10-08 | 1 | -2/+4 |
|\ | |||||
| * | Added tag 1.7.4 for changeset 45bd047ba3a3stable | Eli Collins | 2020-10-08 | 0 | -0/+0 |
| | | |||||
| * | bumped to 1.7.4, marking for release1.7.4 | Eli Collins | 2020-10-08 | 3 | -4/+6 |
| | | |||||
* | | Merge from stable | Eli Collins | 2020-10-08 | 11 | -301/+710 |
|\ \ | |/ | | | | | | | | | | | As part of merge: * various: reverted the py26 compat fixes from rev 5e2f92012412 * test utils: stripped out "has_real_subtest" compat from rev c732a9e2a582, since now on py35+, which always has .subTest() method | ||||
| * | passlib.ext.django: refactored tests to give more granular results. | Eli Collins | 2020-10-07 | 2 | -200/+424 |
| | | | | | | | | | | | | | | | | | | | | | | | | * refactored DjangoBehaviorTest so instead of a monolothic "test_config()" method; there are now a bunch of different test methods. additionally, the ones with loops now use TestCase.subTest() to parameter things appropriately. *no changes to logic of the tests* * added TestCase.subTest() stub & wrapper to make debugging subtests easier. * added some documentation to test classes. | ||||
| * | passlib.ext.django: Updated UTs to work with latest django release | Eli Collins | 2020-10-07 | 6 | -80/+257 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (should fix long-standing issue 98) * test_ext_django: - Simplified "stock config" setup code. It now gets it's "sha_rounds" value from the django source, so we don't have to manually update it every time django changes their default. This should require less maintenance across minor django releases. (Should fix issue 98, and prevent recurrence) - Updated tests to account for quirks in how encoded hashes are handled. Specifically: None, "", and invalid hashes all cause subtly different behaviors across django versions. tests pass against django 1.8 - 3.1. - split "empty hash" test out from the loop it shared with "null hash" test, since the two behave differently. * tox: expanded envlist to explicitly test a bunch more django versions (1.8 - 3.1); and remove some needless "django 2.x + py2" tests * passlib.apps: reformatted django CryptContext declarations; added one for django 2.1 (which dropped "django_bcrypt" it's default list) * passlib.ext.django: - added internal "quirks" helper as central place to track minor edge-case changes between django versions. - passlib_to_django() helper now falls back to searching hasher classes directly, even if patch isn't installed. this allows it to work for django hashers that have been removed from django's default list. | ||||
| * | bugfix: python2.6 compat fixes -- a few "{}" set constructors slipped in. | Eli Collins | 2020-10-07 | 3 | -4/+14 |
| | | |||||
| * | bugfix: passlib.tests: revert filtering PasslibSecurityWarning in general; | Eli Collins | 2020-10-07 | 1 | -1/+2 |
| | | | | | | | | | | | | some tests depend on seeing it. (reverts change from rev be9a9121d5a7) | ||||
| * | passlib.context: now raises UnknownHashError() if hash can't be identified. | Eli Collins | 2020-10-07 | 5 | -27/+36 |
| | | | | | | | | this inherits from ValueError, and has same text, so backwards compatible. | ||||
| * | docs: typo fixes | Eli Collins | 2020-10-06 | 1 | -1/+1 |
| | | |||||
* | | python compat cleanup -- replace stray ".im_func" refs | Eli Collins | 2020-10-06 | 2 | -10/+11 |
| | | |||||
* | | python compat cleanup -- use abc.ABC directly | Eli Collins | 2020-10-06 | 1 | -18/+5 |
| | | |||||
* | | python compat cleanup -- use magic super() calls | Eli Collins | 2020-10-06 | 36 | -114/+113 |
| | | |||||
* | | passlib.hash.bcrypt: remove support for "py-bcrypt" backend | Eli Collins | 2020-10-06 | 3 | -111/+1 |
| | | |||||
* | | passlib.hash.bcrypt: remove support for "bcryptor" backend | Eli Collins | 2020-10-06 | 5 | -92/+13 |
| | | |||||
* | | tox: removed py2 envs & deps | Eli Collins | 2020-10-06 | 1 | -20/+9 |
| | | |||||
* | | cleanup old python compat - assorted minor cleanups & fixes from conversion | Eli Collins | 2020-10-06 | 10 | -15/+24 |
| | | |||||
* | | cleanup old python compat -- removed int_types alias | Eli Collins | 2020-10-06 | 7 | -24/+20 |
| | | |||||
* | | cleanup old python compat -- removed join_byte_elems() and ↵ | Eli Collins | 2020-10-06 | 7 | -37/+23 |
| | | | | | | | | join_byte_values() wrappers | ||||
* | | cleanup old python compat -- removed iter_byte_values() wrapper | Eli Collins | 2020-10-06 | 2 | -9/+3 |
| | | |||||
* | | cleanup old python compat -- removed byte_elem_value() wrapper | Eli Collins | 2020-10-06 | 8 | -19/+12 |
| | | |||||
* | | cleanup old python compat -- removed str_to_usascii() wrapper | Eli Collins | 2020-10-06 | 10 | -28/+17 |
| | | |||||
* | | cleanup old python compat -- removed uascii_to_str() wrapper | Eli Collins | 2020-10-06 | 14 | -41/+33 |
| | | |||||
* | | cleanup old python compat -- removed u() wrapper from some regexes | Eli Collins | 2020-10-06 | 5 | -33/+22 |
| | | |||||
* | | cleanup old python compat -- replaced "unicode" alias in favor of "str" | Eli Collins | 2020-10-06 | 41 | -200/+181 |
| | | |||||
* | | cleanup old python compat -- unified "unicode_or_bytes" aliases | Eli Collins | 2020-10-06 | 7 | -26/+18 |
| | | |||||
* | | cleanup old python compat -- removed "unicode_or_str" and ↵ | Eli Collins | 2020-10-06 | 11 | -51/+40 |
| | | | | | | | | "native_string_types" aliases | ||||
* | | cleanup old python compat -- removed IO aliases (BytesIO etc) | Eli Collins | 2020-10-06 | 6 | -24/+14 |
| | | |||||
* | | cleanup old python compat -- removed suppress_cause() and error_from() wrappers | Eli Collins | 2020-10-06 | 9 | -36/+18 |
| | | |||||
* | | cleanup old python compat -- removed get_unbound_method_function() wrapper | Eli Collins | 2020-10-06 | 3 | -10/+3 |
| | | |||||
* | | cleanup old python compat -- removed OrderedDict backport | Eli Collins | 2020-10-06 | 3 | -253/+2 |
| | | |||||
* | | cleanup old python compat -- removed izip() wrapper | Eli Collins | 2020-10-06 | 3 | -15/+6 |
| | | |||||
* | | cleanup old python compat -- removed nextgetter() wrapper | Eli Collins | 2020-10-06 | 3 | -12/+4 |
| | | |||||
* | | cleanup old python compat -- removed itervalues() wrapper | Eli Collins | 2020-10-06 | 2 | -6/+2 |
| | | |||||
* | | cleanup old python compat -- removed iteritems() wrapper | Eli Collins | 2020-10-06 | 7 | -23/+19 |
| | | |||||
* | | cleanup old python compat -- removed imap() / lmap() aliases | Eli Collins | 2020-10-06 | 3 | -17/+7 |
| | | |||||
* | | cleanup old python compat -- removed irange() alias | Eli Collins | 2020-10-06 | 20 | -70/+58 |
| | | |||||
* | | cleanup old python compat -- removed some sys.version_info refs | Eli Collins | 2020-10-06 | 2 | -30/+6 |
| | | |||||
* | | cleanup old python compat -- removed PY2 & PY3 conditionals | Eli Collins | 2020-10-06 | 21 | -377/+127 |
| | | |||||
* | | cleanup old python compat -- removed PY26 conditional, and unittest2 imports. | Eli Collins | 2020-10-06 | 8 | -92/+17 |
| | | | | | | | | removing unittest2 also allowed removing "passlib.tests.backports" | ||||
* | | cleanup old python compat -- removed all "from __future__" imports | Eli Collins | 2020-10-06 | 39 | -40/+0 |
| | | |||||
* | | docs & setup: updates text & setup requirements to indicate we need minimum | Eli Collins | 2020-10-06 | 8 | -32/+28 |
| | | | | | | | | of Python 3.5. | ||||
* | | minor cleanups after merge -- removed some stray u() calls | Eli Collins | 2020-10-06 | 2 | -4/+4 |
| | | |||||
* | | Merge from stable | Eli Collins | 2020-10-06 | 50 | -418/+1954 |
|\ \ | |/ | |||||
| * | Added tag 1.7.3 for changeset f84ee1cce26b | Eli Collins | 2020-10-06 | 0 | -0/+0 |
| | | |||||
| * | bumped to 1.7.3; updated docs for release1.7.3 | Eli Collins | 2020-10-06 | 5 | -7/+7 |
| | | |||||
| * | bugfix: passlib.utils: add stub safe_crypt() control flags when crypt() ↵ | Eli Collins | 2020-10-06 | 1 | -0/+3 |
| | | | | | | | | | | | | isn't available. (needed for windows) | ||||
| * | docs / sha crypt: commented out the "implicit_rounds" param in docs, | Eli Collins | 2020-10-06 | 2 | -19/+33 |
| | | | | | | | | | | it's not actually supported by using(), and isn't needed for users (issue 121) | ||||
| * | passlib.tests: silenced some internal warnings; fixed edge case in scrypt test; | Eli Collins | 2020-10-06 | 3 | -25/+4 |
| | | | | | | | | removed "gae" from tox suite (no meaningful difference from posix tests) | ||||
| * | passlib.tests.test_ext_django: cleaned up detection of missing django hasher ↵ | Eli Collins | 2020-10-06 | 4 | -12/+92 |
| | | | | | | | | | | | | backends; and some related helper methods. |