Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dotenv run resolve path #507

Closed
wants to merge 20 commits into from
Closed

Commits on Nov 13, 2023

  1. Support default, required and alternative expansions

    Default expansion is more strict now (undefined vs. empty).
    The supported set is closer to what is available in docker-compose
    See: https://docs.docker.com/compose/environment-variables/env-file/
    Bajron committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    a8e26be View commit details
    Browse the repository at this point in the history
  2. Add temporary manual test

    Bajron committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    749b0b7 View commit details
    Browse the repository at this point in the history
  3. Add an option not to expand single quote strings

    Single quoted strings do not expand variables in bash.
    I think the libary was missing a simple way
    to selectively disable variable expansion.
    Bajron committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    646aaa7 View commit details
    Browse the repository at this point in the history
  4. Update manual test

    Bajron committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    b7e6904 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c56fe6c View commit details
    Browse the repository at this point in the history
  6. Correct a quote test

    Error results in no quote.
    Bajron committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    c169dc2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3ad7e3c View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. Refactor tests

    I corrected flake8 errors in this commit.
    test_parser.py had a lot of long lines, formatted it with black.
    
    Importing sh is done in try/except. Although the package
    is available for Windows, it is failing on import.
    
    Moved previous manual tests into proper pytest.
    
    Utility for simulating Windows os.environment behavior
    moved to a separate file.
    Bajron committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    561e179 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b5eeb4b View commit details
    Browse the repository at this point in the history
  3. Divide test in two

    Bajron committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    65c9a44 View commit details
    Browse the repository at this point in the history
  4. Fix for type linter

    Bajron committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    9d76fe3 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Formalize resolve_variables interface

    This commit brings back the old interface for `resolve_variables`.
    I realized it might be actually used by the clients.
    
    I made _resolve_bindings private.
    Created resolve_variable as a result of refactoring.
    It be as useful as resolve_variables for the clients.
    Bajron committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    76d8eef View commit details
    Browse the repository at this point in the history
  2. Correct a docstring

    Bajron committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    7cdee89 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Support concatenated strings

    With an option to have a different behavior for single quoted
    strings it would be nice to use mixed string (e.g. "ffo"'${bar}'
    to produce "foo${bar}".
    
    Intruduced it by reading multiple strings on the value side.
    Unquoted strings are tricky because of the whitespace and comments.
    All the rest should come for free, as it is a change from
    handling a single value to handling a list of values and concatenation.
    Bajron committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    486486a View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2023

  1. Correct typing errors

    There was actually one bug detected by the typing check.
    Value without '=' did not work properly. Added a test for that.
    Bajron committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    a5c83bc View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2024

  1. Configuration menu
    Copy the full SHA
    c7505c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a29ea95 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    16fb097 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #1 from Bajron/windows-ci

    Add windows to tested operating systems
    Bajron authored Jan 27, 2024
    Configuration menu
    Copy the full SHA
    a3212ff View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Resolve application path with shutil.which

    Addresses non-intuitive behavior of `dotenv run python ...` on Windows
    Bajron committed Mar 15, 2024
    Configuration menu
    Copy the full SHA
    2ab9bd7 View commit details
    Browse the repository at this point in the history