KEMBAR78
Comparing v0.15.0...v0.16.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.15.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.16.0
Choose a head ref
  • 9 commits
  • 13 files changed
  • 3 contributors

Commits on Dec 5, 2020

  1. Configuration menu
    Copy the full SHA
    8815885 View commit details
    Browse the repository at this point in the history
  2. Decouple variable parsing and expansion

    This is now done in two steps:
    
    - Parse the value into a sequence of atoms (literal of variable).
    - Resolve that sequence into a string.
    bbc2 committed Dec 5, 2020
    Configuration menu
    Copy the full SHA
    17dba65 View commit details
    Browse the repository at this point in the history
  3. Fix variable expansion order without override

    This fixes an issue when a variable is resolved differently in two
    bindings.
    
    For instance, take the following env file:
    
    ```
    PORT=8000
    URL=http://localhost:${PORT}
    ```
    
    With `PORT` set to `1234` in the environment, the environment resulting
    from `dotenv_load(override=False)` would be:
    
    ```
    PORT=1234
    URL=http://localhost:8000
    ```
    
    This was inconsistent and is fixed by this commit.  The environment
    would now be:
    
    ```
    PORT=1234
    URL=http://localhost:1234
    ```
    
    with override, and
    
    ```
    PORT=8000
    URL=http://localhost:8000
    ```
    
    without override.
    
    The behavior of `load_dotenv` is unchanged and always assumes
    `override=True`.
    bbc2 committed Dec 5, 2020
    Configuration menu
    Copy the full SHA
    26ff5b7 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2020

  1. Rewrite readme (#294)

    This mainly reorganizes the readme based on questions and feedback from
    users on GitHub over the years:
    
    - Getting Started: Short section which covers the main use case and
      doesn't go into details.
      - Pip command at the very beginning so that users are less likely to
        mistakenly install another package.
      - Basic application code to load the .env file into the environment.
      - Introduction to the syntax of .env files with a short example.
    - Other common use cases:
      - Load configuration without altering the environment
      - Parse configuration as a stream
      - Load .env files in IPython
    - Command-line Interface
    - File format: Details about the syntax of .env files, previously
      scattered around.
    - Related Projects: I'm not sure we really need that one but I guess we can keep
      it for now.
    - Acknowledgements
    
    Minor changes:
    
    - I removed the "saythanks" link since it is dead.
    - I removed the banner made in ASCII art since it read ".env" and not
      "python-dotenv", which I found distracting.  We could make another one
      but I don't have time right now.  It also saves the user some
      scrolling.
    bbc2 authored Dec 27, 2020
    Configuration menu
    Copy the full SHA
    2e0ea48 View commit details
    Browse the repository at this point in the history
  2. doc: add table of content

    theskumar committed Dec 27, 2020
    Configuration menu
    Copy the full SHA
    1927225 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2021

  1. Fix misspelling

    sergeyklay authored and bbc2 committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    ac670cf View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2021

  1. Add GitHub actions to replace Travis CI

    theskumar authored and bbc2 committed Feb 21, 2021
    Configuration menu
    Copy the full SHA
    a7fe93f View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2021

  1. Use UTF-8 as default encoding

    The default value for the `encoding` paramter of `load_dotenv` and
    `dotenv_values` is now `"utf-8"` instead of `None` (which selected the
    encoding based on the user's locale).  It is passed directly to
    `io.open`.
    
    The rationale for this change is that the encoding of a project file
    like `.env` should not depend on the user's locale by default.  UTF-8
    makes sense as the default encoding since it is also used for Python
    source files.  The main drawback is that it departs from `open`'s
    default value of `None` for the `encoding` parameter.
    
    The default value of `None` was a source of confusion for some users.
    The Flask and Docker Compose projects already use `encoding="utf-8"` to
    enforce the use of UTF-8 and avoid that sort of confusion.
    
    This is a breaking change but only for users with a non-UTF-8 locale and
    non-UTF-8 characters in their .env files.
    bbc2 committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    b158aa7 View commit details
    Browse the repository at this point in the history
  2. Release version v0.16.0

    bbc2 committed Mar 27, 2021
    Configuration menu
    Copy the full SHA
    b96db46 View commit details
    Browse the repository at this point in the history
Loading