-
Notifications
You must be signed in to change notification settings - Fork 471
Comparing changes
Open a pull request
base repository: theskumar/python-dotenv
base: v0.17.1
head repository: theskumar/python-dotenv
compare: v0.19.0
- 19 commits
- 20 files changed
- 2 contributors
Commits on Jun 20, 2021
-
Improve quoting of values in
set_key
The value of `quote_mode` must now be one of `auto`, `never` or `always`, to ensure that users aren't accidentally relying on any other value for their scripts to work. Surrounding quotes are no longer stripped. This makes it possible for the user to control exactly what goes in the .env file. Note that when doing `dotenv set foo 'bar'` in Bash, the shell will have already removed the quotes. Single quotes are used instead of double quotes. This avoids accidentally having values interpreted by the parser or Bash (e.g. if you set a password with `dotenv set password 'af$rb0'`. Previously, the `auto` mode of quoting had the same effect as `always`. This commit restores the functionality of `auto` by not quoting alphanumeric values (which don't need quotes). Plenty of other kinds of values also don't need quotes but it's hard to know which ones without actually parsing them, so we just omit quotes for alphanumeric values, at least for now.
Configuration menu - View commit details
-
Copy full SHA for b3c3195 - Browse repository at this point
Copy the full SHA b3c3195View commit details -
Mypy was failing because the new version requires some type packages to be installed even when `ignore_missing_imports` is set to `true`.
Configuration menu - View commit details
-
Copy full SHA for dbf8c7b - Browse repository at this point
Copy the full SHA dbf8c7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 72bc307 - Browse repository at this point
Copy the full SHA 72bc307View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c08eaf - Browse repository at this point
Copy the full SHA 3c08eafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97615cd - Browse repository at this point
Copy the full SHA 97615cdView commit details
Commits on Jun 25, 2021
-
Add django-environ-2 to the Related Projects list
Added django-environ-2 because this project is developing independently from joke2k's django-environ.
Configuration menu - View commit details
-
Copy full SHA for 9d777e3 - Browse repository at this point
Copy the full SHA 9d777e3View commit details
Commits on Jun 26, 2021
-
Avoid leaving any file after running tests
This notably prevents the file `.nx_file` from being created and not removed after running tests. That file could also lead to confusing test failures when changing and testing the code of python-dotenv.
Configuration menu - View commit details
-
Copy full SHA for 5c7f43f - Browse repository at this point
Copy the full SHA 5c7f43fView commit details
Commits on Jul 10, 2021
-
This is a big change. It will make it possible to simplify the code, add more features, improve the robustness and lower the barrier to new contributions. As per [Python's packaging documentation][doc], the `python_requires` keyword argument needs `setuptools >= 24.2.0` (released in 2016) and will only have en effect for `pip >= 9.0.0` (released in 2016 as well). [doc]: https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
Configuration menu - View commit details
-
Copy full SHA for fbc7a63 - Browse repository at this point
Copy the full SHA fbc7a63View commit details
Commits on Jul 13, 2021
-
Remove some code specific to Python 2
`to_env` and `to_text` are no longer necessary since they were identity functions with Python 3.
Configuration menu - View commit details
-
Copy full SHA for 9e522b1 - Browse repository at this point
Copy the full SHA 9e522b1View commit details -
Remove "coding: utf-8" source declarations
Now that we only support Python 3, we know that the encoding of source files is UTF-8 by default: https://www.python.org/dev/peps/pep-3120/.
Configuration menu - View commit details
-
Copy full SHA for 9292074 - Browse repository at this point
Copy the full SHA 9292074View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4617e39 - Browse repository at this point
Copy the full SHA 4617e39View commit details -
Since we now require Python 3.5+, we can assume that the `typing` module is available. The guards can also be removed because importing that module is cheap. This simplifies the code.
Configuration menu - View commit details
-
Copy full SHA for 1914bac - Browse repository at this point
Copy the full SHA 1914bacView commit details -
Use Python 3 type hints for functions
Unfortunately, we can't do the same for variables as that is only supported in Python 3.6+.
Configuration menu - View commit details
-
Copy full SHA for 4590015 - Browse repository at this point
Copy the full SHA 4590015View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8fdfba - Browse repository at this point
Copy the full SHA b8fdfbaView commit details
Commits on Jul 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 28dbb23 - Browse repository at this point
Copy the full SHA 28dbb23View commit details -
Mypy would complain about the missing `types-mock` package, which it now needs to perform accurate type checking and despite `ignore_missing_imports` set to `True`: tests/test_ipython.py:3: error: Library stubs not installed for "mock" (or incompatible with Python 3.9) tests/test_ipython.py:3: note: Hint: "python3 -m pip install types-mock" tests/test_ipython.py:3: note: (or run "mypy --install-types" to install all missing stub packages) tests/test_ipython.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports tests/test_main.py:7: error: Library stubs not installed for "mock" (or incompatible with Python 3.9) Found 2 errors in 2 files (checked 15 source files)
Configuration menu - View commit details
-
Copy full SHA for f5d0c54 - Browse repository at this point
Copy the full SHA f5d0c54View commit details -
Enable checking of "untyped defs" and fix types
`set_key` and `unset_key` were more restrictive than other functions such as `dotenv_values` with regards to their `dotenv_path` argument.
Configuration menu - View commit details
-
Copy full SHA for 955e2a4 - Browse repository at this point
Copy the full SHA 955e2a4View commit details
Commits on Jul 24, 2021
-
Allow any text stream (
IO[str]
) asstream
This applies to the `load_dotenv` and `dotenv_values` functions. This makes it possible to pass a file stream such as `open("foo", "r")` to these functions.
Configuration menu - View commit details
-
Copy full SHA for 134ed43 - Browse repository at this point
Copy the full SHA 134ed43View commit details -
Configuration menu - View commit details
-
Copy full SHA for b043829 - Browse repository at this point
Copy the full SHA b043829View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.17.1...v0.19.0