Thanks to visit codestin.com
Credit goes to github.com

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: v1.0.1
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: v1.1.0
Choose a head ref
  • 16 commits
  • 14 files changed
  • 9 contributors

Commits on Apr 7, 2024

  1. Add a security policy

    This is a basic security policy, mostly to provide an email address. I
    took inspiration from the example provided by GitHub and the policy from
    the Pallets project.
    bbc2 committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    6d6070c View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Configuration menu
    Copy the full SHA
    bf20c80 View commit details
    Browse the repository at this point in the history
  2. ci: fix multiline string in test.yml & use fail-fast strategy (#514)

    * Fix multiline string in test.yml
    
    * strategy: fail-fast: false
    
    * Update test.yml
    cclauss authored Apr 8, 2024
    Configuration menu
    Copy the full SHA
    8c9381e View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Configuration menu
    Copy the full SHA
    08937a1 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Enhance dotenv run: Switch to execvpe for better resource management …

    …and signal handling (#523)
    
    The current implementation of `dotenv run` CLI uses `subprocess.Popen`, which spawns a child process to execute the specified command. 
    
    ```
    p = Popen(command,
                  universal_newlines=True,
                  bufsize=0,
                  shell=False,
                  env=cmd_env)
    ```
    
    After spawning the child process, it exits with the same exit code returned by the child process.
    
    ```
    ret = run_command(commandline, dotenv_as_dict)
    exit(ret)
    ```
    
    ### We can enhance `dotenv run` usage dramatically while preserving exactly the same behaviour
    
    By switching to `os.execvpe` instead of `subprocess.Popen`, we can replace the parent dotenv process with the new process specified by the user. This results in only one active process—the program the user intended to run.
    
    **Benefits:**
    
    1. No hanging parent process
        `dotenv run` acts as a launcher, so after executing `dotenv run redis-server`, only the Redis server process remains. The dotenv process, along with its Python interpreter, is completely replaced. This prevents the dotenv process from consuming RAM and other resources, which would otherwise persist until the Redis server exits.
    
    2. Proper signal handling
        When using `subprocess.Popen`, the parent process (e.g., `dotenv`) remains responsible for handling and forwarding signals, which can lead to issues if the command doesn’t receive them directly. For instance, in Docker, if Redis was started without `exec`, it may not get important signals like `SIGTERM` when the container stops, potentially resulting in improper shutdowns or zombie processes. Using `os.execvpe` ensures that the command receives signals directly, improving reliability and making `dotenv` more suitable for production environments and improving reliability for DevOps engineers managing containerized applications.
        
    All current logic will be preserved because dotenv run does not do anything special except propagate the child process exit code.
    
    Thanks / @eekstunt
    eekstunt authored Jul 18, 2024
    Configuration menu
    Copy the full SHA
    4543837 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. ci: add py3.13 to test.yml (#527)

    * ci: add py3.13 to test.yml
    
    * Improve type hints
    
    * fix typo
    waketzheng authored Jul 23, 2024
    Configuration menu
    Copy the full SHA
    4d505f2 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2024

  1. Configuration menu
    Copy the full SHA
    533f8ac View commit details
    Browse the repository at this point in the history
  2. Bump the github-actions group with 2 updates (#529)

    Bumps the github-actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/setup-python](https://github.com/actions/setup-python).
    
    
    Updates `actions/checkout` from 2 to 4
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v2...v4)
    
    Updates `actions/setup-python` from 2 to 5
    - [Release notes](https://github.com/actions/setup-python/releases)
    - [Commits](actions/setup-python@v2...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
      dependency-group: github-actions
    - dependency-name: actions/setup-python
      dependency-type: direct:production
      update-type: version-update:semver-major
      dependency-group: github-actions
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 1, 2024
    Configuration menu
    Copy the full SHA
    2b8635b View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2025

  1. Configuration menu
    Copy the full SHA
    4159388 View commit details
    Browse the repository at this point in the history
  2. s/Python-dotenv/python-dotenv/ (#516)

    This commit uses the name `python-dotenv` instead of `Python-dotenv` in the README.md file
    chapeupreto authored Mar 9, 2025
    Configuration menu
    Copy the full SHA
    3c19c03 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9acba4a View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2025

  1. Configuration menu
    Copy the full SHA
    8dd413e View commit details
    Browse the repository at this point in the history
  2. Update changelog

    theskumar committed Mar 25, 2025
    Configuration menu
    Copy the full SHA
    c89fb6d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2198b69 View commit details
    Browse the repository at this point in the history
  4. Update changelog

    theskumar committed Mar 25, 2025
    Configuration menu
    Copy the full SHA
    36c6270 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a02ef5 View commit details
    Browse the repository at this point in the history
Loading