Tags: ddelange/pipgrip
Tags
✨ Add --skip-invalid-input flag (#154) * feat: add support for ignoring invalid requirements in pipgrip - Introduced `--ignore-invalid` option in the CLI to allow processing of invalid requirements without halting. - Updated `read_requirements` to handle invalid requirements based on the new option. - Enhanced `discover_and_add` and `root_dep` methods in `PackageSource` to log warnings for invalid packages when `ignore_invalid` is enabled. - Adjusted dependency handling to incorporate the new validation logic. This improves user experience by allowing the continuation of processing even when some requirements are invalid. * feat: implement --skip-invalid-input option for improved dependency handling - Implement PR suggestions * feat: add tests for --skip-invalid-input with requirements files - Implemented tests to verify behavior of the --skip-invalid-input flag when used with requirements files containing mixed valid and invalid entries. - Added assertions to ensure valid requirements are processed and appropriate warnings are logged for invalid entries. * fix(formatting): run automated formatting via make install && make lint * fix(tests): ensure tests pass with python 2.7 * fix(cli): update exception handling for invalid requirements - Replaced direct usage of pkg_resources.RequirementParseError with the imported RequirementParseError for improved clarity and consistency in exception handling. - Enhanced test documentation to clarify behavior of --skip-invalid-input across 2.x and 3.x, with regard to InvalidRequirement and RequirementParseError errors.
⬆️ Bump softprops/action-gh-release from 2.2.1 to 2.3.2 in the github… …-actions group across 1 directory (#153) ⬆️ Bump softprops/action-gh-release Bumps the github-actions group with 1 update in the / directory: [softprops/action-gh-release](https://github.com/softprops/action-gh-release). Updates `softprops/action-gh-release` from 2.2.1 to 2.3.2 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](softprops/action-gh-release@v2.2.1...v2.3.2) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.3.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
🚸 Improve support for Windows (#128) * Resolve encoding crashes that occur on Windows Windows doesn't consistently use UTF-8 as the default system encoding. Enabling universal newlines causes Python to decode STDOUT using the default system encoding, which may not be UTF-8 compatible. In addition, when pip is executed via `subprocess`, it may crash when attempting to write output. To resolve these issues, Python's UTF-8 mode (available in 3.7+) is enabled via an environment variable, universal newlines are disabled, and STDOUT is read and explicitly decoded as UTF-8. * 👷 Add windows-smoketest job in CI * 👷 Add verbosity to windows-smoketest * 🐛 Disable unicode on Windows for --tree * ✅ Add `pragma: no cover` * ♻️ Use encoding check instead of platform check Allows unicode `--tree` on utf-8 windows boxes: "Changed in version 3.7: Return 'utf-8' if the Python UTF-8 Mode is enabled." https://docs.python.org/3/library/sys.html#sys.getfilesystemencoding * 🚨 Run black * 🐛 Disable unicode --tree for Windows again * 🚨 Remove unused import * 🚨 Run black --------- Co-authored-by: ddelange <14880945+ddelange@users.noreply.github.com>
PreviousNext