summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth M Morton <seth.m.morton@gmail.com>2018-05-11 22:40:31 -0700
committerSeth M Morton <seth.m.morton@gmail.com>2018-05-11 22:40:31 -0700
commitcbe4b79c53a34160816b1e934c983dbddd46dd96 (patch)
tree87cf3d0cf3c9b1e0d83922b16debd1805d8afb0f
parent2834cca639158d9b7a265bec349051825f7c7262 (diff)
downloadnatsort-cbe4b79c53a34160816b1e934c983dbddd46dd96.tar.gz
Moved optional dependencies to extras_require.
These can be installed with "pip install natsort[fast,icu]" notation, instead of `pip install -roptional-requirements.txt natsort". pathlib was removed as an extra because it would only kick in if the user had pathlib installed already.
-rw-r--r--optional-requirements.txt6
-rw-r--r--setup.cfg6
2 files changed, 6 insertions, 6 deletions
diff --git a/optional-requirements.txt b/optional-requirements.txt
deleted file mode 100644
index f421085..0000000
--- a/optional-requirements.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# These requirements are optional!
-# Install only if you want.
-
-pathlib; python_version < '3.4'
-fastnumbers >= 0.7.1; python_version > '2.6'
-PyICU >= 1.0.0
diff --git a/setup.cfg b/setup.cfg
index fc5b54a..8f0926d 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -41,6 +41,12 @@ exclude = test_*
console_scripts =
natsort = natsort.__main__:main
+[options.extras_require]
+fast =
+ fastnumbers >= 2.0.0; python_version > '2.6'
+icu =
+ PyICU >= 1.0.0
+
[bdist_wheel]
universal = 1