Skip to content

Commit 6ceac42

Browse files
authored
Remove hard dependency on iPython (theskumar#65)
1 parent d8f9816 commit 6ceac42

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

README.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,15 @@ Executing the tests:
261261
Changelog
262262
=========
263263

264+
0.7.1
265+
----
266+
267+
- Remove hard dependency on iPython (`@theskumar`_)
268+
264269
0.7.0
265270
----
266271

267-
- Add support to override system environment variable via .env. (`@maxkoryukov`_) (`#63`_)
272+
- Add support to override system environment variable via .env. (`@milonimrod`_) (`#63`_)
268273
- Disable ".env not found" warning by default (`@maxkoryukov`_) (`#57`_)
269274

270275
0.6.5
@@ -304,6 +309,7 @@ Changelog
304309
- cli: Added ``-q/--quote`` option to control the behaviour of quotes around values in ``.env``. (Thanks `@hugochinchilla`_).
305310
- Improved test coverage.
306311

312+
.. _@maxkoryukov: https://github.com/milonimrod
307313
.. _@maxkoryukov: https://github.com/maxkoryukov
308314
.. _@pjona: https://github.com/pjona
309315
.. _@Flimm: https://github.com/Flimm
@@ -313,6 +319,7 @@ Changelog
313319
.. _@isms: https://github.com/isms
314320
.. _@iameugenejo: https://github.com/iameugenejo
315321
.. _@paulochf: https://github.com/paulochf
322+
.. _@paulochf: https://github.com/theskumar
316323

317324
.. _#63: https://github.com/theskumar/python-dotenv/issues/63
318325
.. _#60: https://github.com/theskumar/python-dotenv/issues/60

dotenv/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
from .cli import get_cli_string
22
from .main import load_dotenv, get_key, set_key, unset_key, find_dotenv
3-
from .ipython import load_ipython_extension
3+
try:
4+
from .ipython import load_ipython_extension
5+
except ImportError:
6+
pass
47

58
__all__ = ['get_cli_string', 'load_dotenv', 'get_key', 'set_key', 'unset_key', 'find_dotenv', 'load_ipython_extension']

0 commit comments

Comments
 (0)