- Modernize development infrastructure
(PR #162)
- Use
ruff
instead offlake8
andblack
- Move all config to
pyproject.toml
- Use
setuptools-scm
to track__version__
- Remove
bumpversion
for creating new releases
- Use
- Eliminated mypy failure related to string literals
- Support for EOL Python 3.7
8.4.0 - 2023-06-19
- The changelog now only explictly exists in the repository (issue #162)
- Inputs with spaces near adjascent to the extension are now sorted
correctly for
os_sorted
on Windows (issues #165 and #166)
8.3.1 - 2023-03-01
- Broken test found on FreeBSD. This change has no effect outside fixing tests (issue #161)
8.3.0 - 2023-02-27
- The
PRESORT
option to thens
enum to attain consistent sort order in certain corner cases (issue #149) - Logic to ensure
None
and NaN are sorted in a consistent order (issue #149) - Explict Python 3.11 support
- Only convert to
str
if necessary inos_sorted
(@Dobatymo, issues #157 and #158) - Attempt to use new
fastnumbers
functionality if available - Move non-API documentation to the GitHub wiki
- Support for EOL Python 3.6
8.2.0 - 2022-09-01
- Auto-coerce
pathlib.Path
objects tostr
since it is the least astonishing behavior (@Gilthans, issues #152 and #153) - Reduce strictness of type hints to avoid over-constraining client code (issues #154 and #155)
8.1.0 - 2022-01-30
- When using
ns.PATH
, only split off a maximum of two suffixes from a file name (issues #145 and #146).
8.0.2 - 2021-12-14
8.0.1 - 2021-12-10
- Compose unicode characters when using locale to ensure sorting is correct across all locales (issues #140 and #141)
8.0.0 - 2021-11-03
- Re-release 7.2.0 as 8.0.0 because introduction of type hints can break CI builds (issue #139)
7.2.0 - 2021-11-02 (Yanked)
- Type hints (contributions from @thethiny and @domdfcoding, issues #132, #135, and #138)
- Explicit testing for Python 3.10
- Support for Python 3.4 and Python 3.5
7.1.1 - 2021-01-24
- Use GitHub Actions instead of Travis-CI (issue #125)
- No longer pin testing dependencies (issue #126)
- Correct a minor typo (@madphysicist, issue #127)
7.1.0 - 2020-11-19
os_sorted
,os_sort_keygen
, andos_sort_key
to better support sorting like the file browser on the current operating system - this closes the long-standing issue #41- Support for Python 3.9 (@swt2c, issue #119)
- MacOS unit tests run on native Python
- Treat
None
likeNaN
internally to avoidTypeError
(issue #117) - No longer fail tests every time a new Python version is released (issue #122)
- Various typos, missing figures, and out-of-date information in the "How it works"
- Fix typo in CHANGELOG (@graingert, issue #113)
- Updated "How it works" to account for Pandas updates (@kuraga, issue #116)
7.0.1 - 2020-01-27
- Bug where that caused incorrect sorting when using locales
that have a
"."
character as the thousands separator.
7.0.0 - 2020-01-08
- Ability to deploy directly from TravisCI (@hugovk, issue #106)
- Release checklist in
RELEASING.md
(@hugovk, issue #106)
- Updated auxiliary shell scripts to be written in python, and added
ability to call these from
tox
- Improved Travis-CI experience
- Update testing dependency versions
- Support for Python 2
6.2.0 - 2019-11-13
index_natsorted
internally now uses tuples for index-element pairs instead of lists- Added a TOC to the README
- Python 3.4 is no longer included in testing
- Pin testing dependencies to prevent CI breaking due to third-party library changes
- Introduction page in documentation
6.1.0 - 2019-11-09
- Expose
numeric_regex_chooser
as a public function for ease in making key functions - Example in the documentation on how to sort numbers with units
- Automated testing support for macos and Windows (issue #91)
- Update CHANGELOG format to style from https://keepachangelog.com/ (issue #92)
- Removed dependency on
sudo
in TravisCI configuration (@hugovk, issue #99) - Documentation typos (@jdufresne, issue #94) (@cpburnz, issue #95)
6.0.0 - 2019-02-04
- Simply Travis-CI configuration (@jdufresne, issue #88)
- Drop support for Python 2.6 and 3.3 (@jdufresne, issue #70)
- Remove deprecated APIs (kwargs
number_type
,signed
,exp
,as_path
,py3_safe
; enumsns.TYPESAFE
,ns.DIGIT
,ns.VERSION
; functionsversorted
,index_versorted
) (issue #81) - Remove
pipenv
as a dependency for building (issue #86)
5.5.0 - 2018-11-18
CHANGELOG.rst
to the top-level of the repository (issue #85)
- Documentation, packaging, and CI cleanup (@jdufresne, issues #69, #71-#80)
- Consolidate API documentation into a single page (issue #82)
- Formally deprecated old or misleading APIs (issue #83)
- Add back support for very old versions of setuptools (issue #84)
5.4.1 - 2018-09-09
- Code format and quality checking infrastructure (issue #68)
5.4.0 - 2018-09-06
- Re-expose
natsort_key
as "public" and remove the associatedDeprecationWarning
- Better developer documentation
- Refactor tests (issue #66)
- Bump allowed
fastnumbers
version
5.3.3 - 2018-07-07
- Enable Python 3.7 support in Travis-CI (issue #61)
- Update docs with a FAQ and quick how-it-works (issue #60)
StopIteration
error in the testing code
5.3.2 - 2018-05-17
- Bug that prevented install on old versions of
setuptools
(issues #55 and #56) - Revert layout from
src/natsort/
back tonatsort/
to make user testing simpler (issues #57 and #58)
5.3.1 - 2018-05-14
bumpversion
infrastructure- Extras can be installed by "[]" notation
- No bugfixes or features, just infrastructure and installation updates
- Move to defining dependencies with
Pipfile
- Development layout is now
src/natsort/
instead ofnatsort/
5.3.0 - 2018-04-20
- Bug in assessing
fastnumbers
version at import-time (@hholzgra, issues #51 and #53)
5.2.0 - 2018-02-14
ns.NUMAFTER
to cause numbers to be placed after non-numbers (issues #48 and #49)natcmp
function (Python 2 only) (@rinslow, issue #47)
5.1.1 - 2017-11-11
- Additional unicode number support for Python 3.7
- Information on how to install and test (issue #46)
5.1.0 - 2017-08-19
5.0.3 - 2017-04-30
- Improved development infrastructure
- Migrated documentation to ReadTheDocs
5.0.2 - 2017-01-02
- Additional unicode number support for Python 3.6
- "how does it work?" section to the documentation
- Renamed several internal functions and variables to improve clarity
- Improved documentation examples
5.0.1 - 2016-06-04
- The
ns
enum attributes can now be imported from the top-level namespace
- Bug with the
from natsort import *
mechanism - Bug with using
natsort
withpython -OO
(issues #38 and #39)
5.0.0 - 2016-05-08
chain_functions
function for convenience in creating a complex user-givenkey
from several existing functions
ns.LOCALE
/humansorted
now accounts for thousands separators (issue #36)- Refactored entire codebase to be more functional (as in use functions as units). Previously, the code was rather monolithic and difficult to follow. The goal is that with the code existing in smaller units, contributing will be easier (issue #37)
- Increased speed of execution (came for free with the new functional approach
because the new factory function paradigm eliminates most
if
branches during execution). For the most cases, the code is 30-40% faster than version 4.0.4. If usingns.LOCALE
orhumansorted
, the code is 1100% faster than version 4.0.4 - Improved clarity of documentation with regards to locale-aware sorting
ns.TYPESAFE
option as it is now always on (due to a new iterator-based algorithm, the typesafe function is now cheap)
4.0.4 - 2015-11-01
- Improved coverage of unit tests
- Unit tests use new and improved hypothesis library
- Compatibility issues with Python 3.5
4.0.3 - 2015-06-25
- Bad install on last release (sorry guys!) (issue #30)
4.0.2 - 2015-06-24
- Consolidated under-the-hood compatibility functionality
- Python 2.6 and Python 3.2 compatibility. Unit testing is now performed for these versions (@dpetzold, issue #29)
4.0.1 - 2015-06-04
- Support for sorting NaN by internally converting to -Infinity or +Infinity (issue #27)
4.0.0 - 2015-05-17
- Made default behavior of
natsort
search for unsigned ints, rather than signed floats. This is a backwards-incompatible change but in 99% of use cases it should not require any end-user changes (issue #20) - Improved handling of locale-aware sorting on systems where the underlying locale library is broken (issue #34))
- Greatly improved all unit tests by adding the
hypothesis
library
3.5.6 - 2015-04-06
UNGROUPLETTERS
algorithm to get the case-grouping behavior of an ordinal sort when usingLOCALE
(issue #23)- Convenience functions
decoder
,as_ascii
, andas_utf8
for dealing with bytes types
3.5.5 - 2015-04-04
realsorted
andindex_realsorted
functions for forward-compatibility with >= 4.0.0
- Made explanation of when to use
TYPESAFE
more clear in the docs
3.5.4 - 2015-04-02
- Bug where a
TypeError
was raised if a string containing a leading number was sorted with alpha-only strings whenLOCALE
is used (issue #22)
3.5.3 - 2015-03-26
- Documentation updates to better describe locale bug, and illustrate upcoming default behavior change
- Internal improvements, including making test suite more granular
- Bug where
--reverse-filter
option in shell script was not getting checked for correctness
3.5.2 - 2015-01-13
- A
pathlib.Path
object is converted to astr
ifns.PATH
is enabled (issue #16)
3.5.1 - 2014-09-25
- Refactored modules so that only the public API was in
natsort.py
andns_enum.py
- Refactored all import statements to be absolute, not relative
- Bug that caused list/tuples to fail when using
ns.LOWECASEFIRST
orns.IGNORECASE
(issue #15)
3.5.0 - 2014-09-02
alg
argument to thenatsort
functions. This argument accepts an enum that is used to indicate the options the user wishes to use. Thenumber_type
,signed
,exp
,as_path
, andpy3_safe
options are being deprecated and will become (undocumented) keyword-only options innatsort
version 4.0.0- The
humansorted
convenience function as a convenience to locale-aware sorting - The user can now modify how
natsort
handles the case of non-numeric characters (issue #14) - The user can now instruct
natsort
to use locale-aware sorting, which allowsnatsort
to perform true "human sorting" (issue #14) - Locale functionality to the shell script
3.4.1 - 2014-08-12
natsort
will now use thefastnumbers
module if it is installed. This gives up to an extra 30% boost in speed over the previous performance enhancements- Made documentation point to more
natsort
resources, and also added a new example in the examples section
3.4.0 - 2014-07-19
natsort_keygen
function that will generate a wrapped version ofnatsort_key
that is easier to call.natsort_key
is now set to deprecate at natsort version 4.0.0as_path
option tonatsorted
& co. that will try to treat input strings as filepaths. This will help yield correct results for OS-generated inputs like['/p/q/o.x', '/p/q (1)/o.x', '/p/q (10)/o.x', '/p/q/o (1).x']
(issue #3)order_by_index
function to help in using the output ofindex_natsorted
andindex_versorted
reverse
option tonatsorted
& co. to make it's API more similar to the builtin 'sorted'- More unit tests
- Auxiliary test code that helps in profiling and stress-testing
- Support for coveralls.io
- Massive performance enhancements for string input (1.8x-2.0x), at the expense
of reduction in speed for numeric input (~2.0x) - note that sorting numbers
still only takes 0.6x the time of sorting strings - Entire codebase is now PyFlakes and PEP8 compliant
- Reworked the documentation, moving most of it to PyPI's hosting platform
- Bug that caused user's options to the
natsort_key
to not be passed on to recursive calls ofnatsort_key
(issue #12)
3.3.0 - 2014-06-28
versorted
method for more convenient sorting of versions (issue #11)- Unit test coverage (99%)
- Updated command-line tool
--number_type
option with 'version' and 'ver' to make it more clear how to sort version numbers - Moved unit-testing mechanism from being docstring-based to actual unit tests in actual functions (issue #10)
- Made docstrings for public functions mirror the README API
- Connected
natsort
development to Travis-CI to help ensure quality releases
3.2.1 - 2014-06-20
- Re-"Fixed" unorderable types issue on Python 3.x - this workaround is for when the problem occurs in the middle of the string (issue #7 again)
3.2.0 - 2014-05-07
- "Fixed" unorderable types issue on Python 3.x with a workaround that attempts to replicate the Python 2.x behavior by putting all the numbers (or strings that begin with numbers) first (issue #7)
- Now explicitly excluding
__pycache__
from releases by adding a prune statement to MANIFEST.in
3.1.2 - 2014-05-05
setup.cfg
to support universal wheels (issue #6)- Python 3.0 and Python 3.1 as requiring the argparse module
3.1.1 - 2014-03-01
- Ability to sort lists of lists (issue #5)
- Cleaned up import statements
3.1.0 - 2014-01-20
signed
andexp
options to allow finer tuning of the sorting- Doctests
- New shell script options that correspond to
signed
andexp
- In the shell script the user can now specify multiple numbers to exclude or multiple ranges
- Entire codebase now works for both Python 2 and Python 3 without needing to run
2to3
- Updated all doctests
- Further simplified the
natsort
base code by removing unneeded functions. - Simplified documentation where possible
- Improved the shell script code
- Made the shell script documentation less "path"-centric to make it clear it is not just for sorting file paths
- The shell script filesystem-based options because these can be achieved better though a pipeline by which to filter
3.0.2 - 2013-10-01
- Made float, int, and digit searching algorithms all share the same base function
- Made the
__version__
variable available when importing the module
- Outdated comments
3.0.1 - 2013-08-15
- Support for unicode strings (issue #2)
- Empty string removal function
- Extraneous
string2int
function
3.0.0 - 2013-07-13
- A
number_type
argument to the sorting functions to specify how liberal to be when deciding what a number is
- Reworked the documentation
2.2.0 - 2013-06-25
key
attribute tonatsorted
andindex_natsorted
so that it mimics the functionality of the built-insorted
(issue #1)- Tests to reflect the new functionality, as well as tests demonstrating how to get similar
functionality using
natsort_key
2.1.0 - 2012-12-05
- Reorganized package
- Now using a platform independent shell script generator (
entry_points
from distribute) - Can now execute
natsort
from command line withpython -m natsort
as well
2.0.2 - 2012-11-30
- The
use_2to3
option tosetup.py
- Include
distribute_setup.py
to the distribution - Dependency to the
argparse
module (for python2.6)
2.0.1 - 2012-11-21
- Tests into the natsort.py file itself
- Reorganized directory structure
2.0.0 - 2012-11-16
- Better README documentation
- Doctests
- Sorting algorithm to support floats (including exponentials) and basic version number support