Permalink
Branch: master
Commits on Mar 14, 2020
-
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
Commits on Mar 10, 2020
Commits on Feb 28, 2020
Commits on Feb 23, 2020
-
Remove warning when last line is empty
This also simplifies tests and adds test cases for `set_key`.
Commits on Feb 21, 2020
Commits on Feb 15, 2020
-
Fix escaping of quoted values written by `set_key` (#236)
* Fix PyPy jobs in CI * Add test cases for `dotenv.set_key` * Escape values before quoting in `dotenv.set_key`
Verified
This commit was created on GitHub.com and signed with a verified signature using GitHub’s key.GPG key ID: 4AEE18F83AFDEB23 Learn about signing commits
Commits on Feb 9, 2020
Commits on Feb 8, 2020
-
* Move tests to the right test file (e.g. tests for `dotenv.main.get_key` go to `tests.test_main.py`, not `tests.test_cli.py`. * Check logged warnings for more functions. For instance, that uncovered unexpected extra warnings when passing a non-existent file as argument. * Remove tests for properties already checked at a lower level. For instance, it's unnecessary to call `get_key` with weird file content because that's already tested with the parser. * Follow the Act/Arrange/Assert (AAA) pattern. This clarifies what is tested in each test function. For instance, using this, we test only one thing at a time, which makes the test easier to read and potential failures easier to interpret.
Commits on Feb 7, 2020
Commits on Feb 4, 2020
-
Add control over interpolation
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
Commits on Jan 28, 2020
-
Use logging instead of warnings
Problems with the `warnings` module: * Undesirable output in tests, although it could be filtered out. * Output unsuited for users: shows source code of Python-dotenv. Users don't know what to do with that. * Rather meant for programming issues (e.g. deprecation) rather than runtime issues (file not found). Problems with the `logging` module: * Slightly less easy to test, unlike warnings with `catch_warnings(record=True)`, because you need to use the `mock` package for compatibility with Python 2. Despite this last issue, I think it makes more sense to use the `logging` module as a base for warnings. Of course, `logging` is not suited to all forms of output, so this change doesn't mean `logging` has to be used everywhere. For instance, if we want to improve the output of the `dotenv` CLI later, we might want to use `print`, `click.echo` or other printing facilities.
Commits on Jan 22, 2020
-
* Remove Python 3.4. * Add Python 2 and 3.
-
bbc2 committed
Jan 21, 2020 -
Fix upload to PyPI by Travis CI
bbc2 committedJan 21, 2020 * Add `bdist_wheel` to the uploaded distributions. This avoids the need for pip to run `setup.py` when installing the package, speeding up installation and avoiding potential environment issues. * `skip_existing` avoids CI failures due to "deploy" tasks being run several times by Travis for one tag pushed.
Commits on Jan 21, 2020
Commits on Jan 19, 2020
-
-
Fix handling of lines with just a comment
A .env file like the following would trigger a warning: # comment The problem is that with the previous `Binding` structure, it was impossible to distinguish the parsing of such a line and that of a malformed line. Therefore, this commit adds an `error` field so that error reporting works correctly in this case.
Commits on Jan 18, 2020
Commits on Jan 17, 2020
Commits on Jan 16, 2020
Commits on Jan 15, 2020
-
Remove Python 3.4 in .travis (EOL mid 2019)
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
-
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
Commits on Jan 13, 2020
-
Print a warning on malformed line
If a line can't be parsed (e.g. `FOO: BAR` is invalid), it is printed as a warning on stderr. As usual, after such an error, Python-dotenv tries to parse the rest of the file and the application can use the successfully parsed variable bindings.
-
bbc2 committed
Nov 1, 2019
Commits on Dec 21, 2019
-
-
The dependency on the `typing` package is now optional for Python 3.4. This commit runs (part of) the test suite in when that package is absent, to make sure the dependency isn't reintroduced accidentally.
-
- Fall back to `collections.namedtuple` for `Binding` when typing is not present - Add import guards to all imports - Fixes #178 - Add missing coverage config to setup.cfg
Commits on Sep 10, 2019
Commits on Jul 21, 2019
-
Update README.md (minor typos and grammar)
Just wanted to help proofread!
Commits on Jul 9, 2019
-
Adding Dynaconf to related projects
HI, Dynaconf heavily uses `python-dotenv` https://dynaconf.readthedocs.io https://github.com/rochacbruno/dynaconf
Commits on Jun 24, 2019