Fixed AttributeError: 'module' object has no attribute 'disable_warnings' when a version of requests package is less then 2.4.0

This commit is contained in:
Ivan Kravets
2015-02-11 12:59:12 +02:00
committed by Valeriy Koval
parent b289d0ba42
commit 42f05979e3
2 changed files with 5 additions and 3 deletions

View File

@ -1,8 +1,8 @@
Release History Release History
=============== ===============
0.11.0 (2015-?) 1.0.0 (2015-?)
--------------- --------------
* Added support for *ARM*-based credit-card computers: `Raspberry Pi <http://www.raspberrypi.org>`_, * Added support for *ARM*-based credit-card computers: `Raspberry Pi <http://www.raspberrypi.org>`_,
`BeagleBoard <http://beagleboard.org>`_ and `CubieBoard <http://cubieboard.org>`_ `BeagleBoard <http://beagleboard.org>`_ and `CubieBoard <http://cubieboard.org>`_
@ -20,6 +20,8 @@ Release History
* Allowed to ignore some libs from *Library Dependency Finder* via * Allowed to ignore some libs from *Library Dependency Finder* via
`ignore_libs <http://docs.platformio.org/en/latest/projectconf.html#ignore-libs>`_ option `ignore_libs <http://docs.platformio.org/en/latest/projectconf.html#ignore-libs>`_ option
* Fixed an issue with the libraries that are git repositories (`issue #49 <https://github.com/ivankravets/platformio/issues/49>`_) * Fixed an issue with the libraries that are git repositories (`issue #49 <https://github.com/ivankravets/platformio/issues/49>`_)
* Fixed `AttributeError: 'module' object has no attribute 'disable_warnings'`
when a version of `requests` package is less then 2.4.0
0.10.2 (2015-01-06) 0.10.2 (2015-01-06)

View File

@ -20,7 +20,7 @@ setup(
install_requires=[ install_requires=[
"click", "click",
"pyserial", "pyserial",
"requests", "requests>=2.4.0",
# "SCons" # "SCons"
] + (["colorama"] if system() == "Windows" else []), ] + (["colorama"] if system() == "Windows" else []),
packages=find_packages(), packages=find_packages(),