summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Style update in custom_strcoll logic.48-feature-request-natsorted-sort-by-letters-then-numbersSeth M Morton2018-02-101-4/+1
|
* Fix "always last" separator for Python 2.Seth M Morton2018-02-101-12/+22
| | | | | | | | | The implementation that was used for the "always last" separator for NUMAFTER when LOCALE was turned on for non-OSX OSs was buggy. This new implementation does not rely on string value tricks, but rather implements a sentinel-based methodology to identify the "always last" separator and place it last explicitly.
* Add tests for ns.NUMAFTER.Seth M Morton2018-02-101-0/+16
| | | | These tests verify that the option puts numbers after non-numbers.
* Add code to support placing numbers after non-numbers.Seth M Morton2018-02-108-37/+76
| | | | | | All infrastructure has been added, but no tests have been yet been inserted to verify that the code is working properly. That will come in the next commit.
* natsort.compat.(null_string -> null_string_locale).Seth M Morton2018-02-104-10/+15
| | | | | | This is in preparation for adding a few new versions of the null string, one which will be sorted after other strings, and another pair which will be used when locale is not enabled.
* Fix OSX-related bugs in cmp testing.Seth M Morton2018-02-102-11/+9
| | | | | | | | | | | | Because OSX is a "dumb sorting" OS when locale is turned on, the method by which "dumb sorting" was being tested for natcmp worked on non-OSX OSs, but failed on OSX. This is addressed by using patch for both True and False returns of dumb_sort. For the test of using natcmp with an alg, if hypothesis yields very extreme integers then conversion of those integers into a float (due to alg.REAL) can cause the sorting to give unexpected results. Switching to alg.SIGNED fixes this.
* Merge pull request #47 from rinslow/masterSeth Morton2018-02-106-4/+192
|\ | | | | Add a natcmp() for comparing in Python 2.
| * Fixed patching for Python > 3d-kiss2018-02-031-1/+1
| |
| * Added locale dumb sort coverage.d-kiss2018-02-031-2/+27
| |
| * Added coverage to the caching mechanism.d-kiss2018-02-031-0/+14
| |
| * Supressing Codacy unusued-variable.d-kiss2018-02-031-0/+1
| |
| * Syncing with current master of natsort.d-kiss2018-02-039-162/+81
| |\ | |/ |/|
* | Update hypothesis tests to not rely on "assume".Seth M Morton2018-01-279-160/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than generating testing values and then removing them in post-processing, now test values are created correct-by-construction using the newer .filter API of hypothesis strategies. Whilst doing this filtering, it was found that the range_check function was doing the unnecessary step of converting its input to floats, so this has been removed (which simplifies testing). Last, some of the tests for the command-line --filter arguments have been simplified because the ROI of the thorough hypothesis tests was low.
| * Added algorithm-based caching to natcmp()d-kiss2018-02-032-4/+20
| |
| * natcmp does not appear in Python 3 anymore.d-kiss2018-02-035-52/+76
| |
| * Revert "This should be in a PR of it's own."d-kiss2018-02-031-3/+5
| | | | | | | | This reverts commit fee6378d840d4fe2e36f9904ec1cee3b386d9bef.
| * This should be in a PR of it's own.d-kiss2018-01-281-5/+3
| |
| * Suppressing Codacy.d-kiss2018-01-281-1/+3
| |
| * Added cmp() support for Python3 Build.d-kiss2018-01-271-0/+4
| |
| * Made the build non-flaky.d-kiss2018-01-271-3/+5
| |
| * Changed class-style to old-style.d-kiss2018-01-272-1/+2
| |
| * Reuse the Comparable stub-class.d-kiss2018-01-271-14/+10
| |
| * Used the official workaround for cmp in Python3d-kiss2018-01-271-1/+1
| |
| * Prevent SyntaxError in Python 2.6.d-kiss2018-01-271-1/+1
| |
| * Updated the tests to match the repo's style.d-kiss2018-01-271-0/+2
| |
| * Added natcmp as inteded.d-kiss2018-01-273-0/+103
| |
| * Creating a dict with dict comperhension in much faster than casting a list ↵d-kiss2018-01-261-1/+1
|/ | | | of two-tuples.
* Update MANIFEST.inSeth Morton2017-11-111-0/+2
|
* Create CONTRIBUTING.mdSeth Morton2017-11-111-0/+41
|
* Create CODE_OF_CONDUCT.mdSeth Morton2017-11-111-0/+46
|
* Create ISSUE_TEMPLATE.mdSeth Morton2017-11-111-0/+5
|
* Add check-manifest to tox:release.Seth M Morton2017-11-111-0/+2
|
* natsort version 5.1.1 release.5.1.1Seth M Morton2017-11-113-9/+13
| | | | | - Added additional unicode number support for Python 3.7. - Added information on how to install and test.
* Update all references from stable to master at readthedocs.org.Seth M Morton2017-11-111-2/+2
|
* Add explanation for pythonhosted.org content going dead.Seth M Morton2017-11-112-0/+8
|
* Update list of unicode numbers for Python 3.7.Seth M Morton2017-11-112-222/+262
|
* Fix "embedded null character" in LOCALE tests.Seth M Morton2017-11-111-0/+3
| | | | | Some tests with LOCALE would fail because the given input had an embedded null character. These are now pre-filtered.
* Fixed PyICU link in documentation.Seth M Morton2017-11-111-1/+1
|
* Add better documentation on how to install/test.Seth M Morton2017-11-112-28/+84
| | | | | | | | Previously, there was no information in the README indicating how to run the unit tests, and the documentation had incorrect information. The instructions are now accurate. This closes #46.
* Point to master instead of stable at readthedocs.org.Seth M Morton2017-08-191-11/+11
|
* natsort version 5.1.0 release.v.5.1.05.1.0Seth M Morton2017-08-193-9/+13
| | | | | - Fixed ``StopIteration`` warning on Python 3.6+. - All Unicode input is now normalized.
* Point to new PyPI.org in documentation.Seth M Morton2017-08-194-20/+20
|
* Merge pull request #45 from SethMMorton/unicode-normalizationSeth Morton2017-08-197-26/+141
|\ | | | | Add normalization to incoming Unicode data
| * Move input normalization to an earlier stage.Seth M Morton2017-08-194-39/+38
| | | | | | | | | | | | | | | | | | | | The input normalization has been moved out of the "input_transform" function (which was called in the "parse_string" function) and now is the first step of the "parse_string" function. This is because the data needs to be normalized even if the "input_transform" function is skipped. Tests have been reworked to understand this change.
| * Update documentation to discuss Unicode normalization.Seth M Morton2017-08-182-4/+86
| |
| * Add unicode normalization to all input.Seth M Morton2017-08-185-30/+64
|/ | | | | | | | | | | | | | | | All unicode input now gets 'NFD' normalization, which ensures that all characters that look the same are represented by the same code points. 'NFD' was chosen because it is the expanded for which will cause (for example) 'é' to be placed immediately after 'e' rather than after 'z'. Users can choose 'NFKD' with ns.COMPATIBILITYNORMALIZE (or ns.CN) which will change certain characters to their compatible (and often ASCII) representation. This may be useful to cause force numbers in odd representations to be transformed to ASCII which will potentially give better sorting orders. This will close issue #44.
* Merge pull request #43 from lykinsbd/masterSeth Morton2017-08-171-15/+20
|\
| * Added Try/Except to handle StopIteration for PEP479 - Issue #42Brett Lykins2017-08-171-15/+20
|/
* Removed pypy testing from Travis-CI.Seth M Morton2017-07-061-3/+0
| | | | | | | In order to test PyICU, we need to use the Trusty distribution because PyICU needs -std=c++11 compiler option to gcc. To use pypy on Trusty, sudo=True must be enable, but I do not want to use that. So, I am removing pypy from testing.
* Travis-CI trusty does not support pypy without versions.Seth M Morton2017-07-061-1/+1
| | | | The version of pypy has been added to avoid a build failure.