-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Drop support for EOL Pythons""
This reverts commit 916a92d.
- Loading branch information
1 parent
b0aa21b
commit e18c469
Showing
16 changed files
with
76 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
#! /usr/bin/env python | ||
|
||
import sys | ||
|
||
from setuptools import find_packages, setup | ||
|
||
# Very old versions of setuptools do not support the python version | ||
# specifier syntax, so logic must be defined in code (see issue #64). | ||
install_requires = [] | ||
extras_require = {"icu": "PyICU >= 1.0.0"} | ||
if sys.version_info[:2] == (2, 6): | ||
install_requires.append("argparse") | ||
else: | ||
extras_require["fast"] = "fastnumbers >= 2.0.0" | ||
|
||
setup( | ||
name='natsort', | ||
version='5.5.0', | ||
packages=find_packages(), | ||
install_requires=install_requires, | ||
entry_points={'console_scripts': ['natsort = natsort.__main__:main']}, | ||
extras_require=extras_require, | ||
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", | ||
extras_require={ | ||
'fast': ["fastnumbers >= 2.0.0"], | ||
'icu': ["PyICU >= 1.0.0"] | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from natsort import ns | ||
|
||
|
||
def test_ns_enum(): | ||
enum_name_values = [ | ||
("FLOAT", 0x0001), | ||
("SIGNED", 0x0002), | ||
("NOEXP", 0x0004), | ||
("PATH", 0x0008), | ||
("LOCALEALPHA", 0x0010), | ||
("LOCALENUM", 0x0020), | ||
("IGNORECASE", 0x0040), | ||
("LOWERCASEFIRST", 0x0080), | ||
("GROUPLETTERS", 0x0100), | ||
("UNGROUPLETTERS", 0x0200), | ||
("NANLAST", 0x0400), | ||
("COMPATIBILITYNORMALIZE", 0x0800), | ||
("NUMAFTER", 0x1000), | ||
("DEFAULT", 0x0000), | ||
("INT", 0x0000), | ||
("UNSIGNED", 0x0000), | ||
("REAL", 0x0003), | ||
("LOCALE", 0x0030), | ||
("I", 0x0000), | ||
("U", 0x0000), | ||
("F", 0x0001), | ||
("S", 0x0002), | ||
("R", 0x0003), | ||
("N", 0x0004), | ||
("P", 0x0008), | ||
("LA", 0x0010), | ||
("LN", 0x0020), | ||
("L", 0x0030), | ||
("IC", 0x0040), | ||
("LF", 0x0080), | ||
("G", 0x0100), | ||
("UG", 0x0200), | ||
("C", 0x0200), | ||
("CAPITALFIRST", 0x0200), | ||
("NL", 0x0400), | ||
("CN", 0x0800), | ||
("NA", 0x1000), | ||
] | ||
assert list(ns._asdict().items()) == enum_name_values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters