-
Notifications
You must be signed in to change notification settings - Fork 478
Comparing changes
Open a pull request
base repository: theskumar/python-dotenv
base: v0.18.0
head repository: theskumar/python-dotenv
compare: v0.19.0
- 14 commits
- 20 files changed
- 2 contributors
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]) asstreamThis 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.18.0...v0.19.0