KEMBAR78
Comparing v0.18.0...v0.19.0 · theskumar/python-dotenv · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: theskumar/python-dotenv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.18.0
Choose a base ref
...
head repository: theskumar/python-dotenv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.19.0
Choose a head ref
  • 14 commits
  • 20 files changed
  • 2 contributors

Commits on Jun 25, 2021

  1. Add django-environ-2 to the Related Projects list

    Added django-environ-2 because this project is developing independently from joke2k's django-environ.
    sergeyklay authored and bbc2 committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    9d777e3 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2021

  1. 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.
    bbc2 committed Jun 26, 2021
    Configuration menu
    Copy the full SHA
    5c7f43f View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2021

  1. Require Python >= 3.5

    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
    bbc2 committed Jul 10, 2021
    Configuration menu
    Copy the full SHA
    fbc7a63 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. Remove some code specific to Python 2

    `to_env` and `to_text` are no longer necessary since they were identity
    functions with Python 3.
    bbc2 committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    9e522b1 View commit details
    Browse the repository at this point in the history
  2. 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/.
    bbc2 committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    9292074 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4617e39 View commit details
    Browse the repository at this point in the history
  4. Remove typing guards

    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.
    bbc2 committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    1914bac View commit details
    Browse the repository at this point in the history
  5. 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+.
    bbc2 committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    4590015 View commit details
    Browse the repository at this point in the history
  6. Replace Text with str

    Those are synonyms in Python 3.
    bbc2 committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    b8fdfba View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Fix documentation of dotenv set

    bbc2 committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    28dbb23 View commit details
    Browse the repository at this point in the history
  2. Enable the use of Mypy 0.900+

    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)
    bbc2 committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    f5d0c54 View commit details
    Browse the repository at this point in the history
  3. 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.
    bbc2 committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    955e2a4 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2021

  1. Allow any text stream (IO[str]) as stream

    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.
    bbc2 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    134ed43 View commit details
    Browse the repository at this point in the history
  2. Release version 0.19.0

    bbc2 committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    b043829 View commit details
    Browse the repository at this point in the history
Loading