Skip to content
This repository was archived by the owner on May 26, 2022. It is now read-only.

Commit e97081c

Browse files
authored
Remove simplejson as a dependency for python 2.6+
Python 2.6 introduced the ``json`` module into the core language and so ``simplejson`` is only required in python versions prior to python 2.6. This fix ensures that pip will only install simplejson if the version of python being run is less than 2.6. This stops the un-needed installation of a library that wont ever actually get used by authy if a newer version of python is running.
1 parent 97ddb05 commit e97081c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
author_email="dev-support@authy.com",
1616
url="http://github.com/authy/authy-python",
1717
keywords=["authy", "two factor", "authentication"],
18-
install_requires=["requests>=2.2.1", "simplejson>=3.4.0", "six>=1.8.0"],
18+
install_requires=[
19+
"requests>=2.2.1",
20+
"six>=1.8.0",
21+
"simplejson>=3.4.0;python_version<'2.6'"
22+
]
1923
packages=find_packages(),
2024
classifiers=[
2125
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)