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

Include copy of https://github.com/uktrade/iterable-subprocess #538

Merged
merged 14 commits into from
Nov 23, 2023

Commits on Nov 15, 2023

  1. Squashed 'datalad_next/iterable_subprocess/' content from commit 46343c0

    git-subtree-dir: datalad_next/iterable_subprocess
    git-subtree-split: 46343c074d2c062dd0822e60a86665b2cce2d93b
    mih committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    3495a12 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3286679 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7280e85 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    36f7382 View commit details
    Browse the repository at this point in the history
  5. Fix typos

    mih committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    d091ee9 View commit details
    Browse the repository at this point in the history
  6. Record test dependency

    mih committed Nov 15, 2023
    Configuration menu
    Copy the full SHA
    015dd5b View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2023

  1. Robustify test for Windows

    mih committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    5882b70 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85a47a9 View commit details
    Browse the repository at this point in the history
  3. Adjust for error behavior on Windows

    It is not 100% clear to me whether this is correct, but
    `OSError(errno22)` can and does occur when interacting with
    file descriptors of dead processes.
    mih committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    ba8f7af View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2023

  1. Move constants out of datalad_next.utils

    That module imports too many components with too many dependency that
    also needs (these) constants. This creates import loops.
    
    The change established a toplevel `consts` module with minimal
    dependencies. The legacy location is kept and a comment
    warns against further use.
    mih committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    254b68b View commit details
    Browse the repository at this point in the history
  2. New datalad_next.runners.iter_subproc

    This is a convenience wrapper around `datalad_next.iterable_subprocess`.
    The main purpose is to have a place for documentation and feature
    additions -- without adding needless diff to the original implementation
    that was merged in from an external source.
    
    The wrapper uses `COPY_BUFSIZE` as default chunk size (which is
    numerically identical to the hardcoded default on POSIX systems).
    This should be better than a separate literal.
    
    A second different is the option to run a subprocess without any
    explicit input.
    mih committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    3ca0a6a View commit details
    Browse the repository at this point in the history
  3. Use a more recent Python version for the type checker

    There is not really a point to compatibility with versions that
    are nearing EOL
    mih committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    0680120 View commit details
    Browse the repository at this point in the history
  4. New module itertools

    For now containers processors for byte-string iterables and
    functionality related to subprocess output.
    christian-monch authored and mih committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    1050400 View commit details
    Browse the repository at this point in the history
  5. Use iter_subproc in iter_gitworktree

    christian-monch authored and mih committed Nov 22, 2023
    Configuration menu
    Copy the full SHA
    f880cc4 View commit details
    Browse the repository at this point in the history