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

Fix use of pip-compile #1075

Merged
merged 5 commits into from
May 9, 2023
Merged

Fix use of pip-compile #1075

merged 5 commits into from
May 9, 2023

Conversation

kylewillmon
Copy link
Contributor

This patch updates our usage of pip-compile to:

  • Specify the manifest file to compile
  • Handles requirements.in, setup.cfg, setup.py, and pyproject.toml

Copy link
Contributor

@maxrake maxrake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggested changes are requested. More testing is needed on the newly added Python manifest files. It may be that pip-compile has an issue with the instances of manifests used during my testing...but I will check on that next week when I get back into this.

lockfile_generator/src/pip.rs Outdated Show resolved Hide resolved
lockfile_generator/src/python_requirements.rs Outdated Show resolved Hide resolved
lockfile_generator/src/cargo.rs Show resolved Hide resolved
lockfile_generator/src/yarn.rs Outdated Show resolved Hide resolved
lockfile/src/python.rs Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
lockfile_generator/src/lib.rs Show resolved Hide resolved
lockfile/src/python.rs Outdated Show resolved Hide resolved
lockfile/src/python.rs Outdated Show resolved Hide resolved
lockfile/src/python.rs Outdated Show resolved Hide resolved
lockfile_generator/src/cargo.rs Show resolved Hide resolved
lockfile_generator/src/yarn.rs Outdated Show resolved Hide resolved
maxrake
maxrake previously approved these changes May 9, 2023
Copy link
Contributor

@maxrake maxrake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears things are working now, albeit with some idiosyncrasies that may be helped with better documentation or error messages.

cd-work
cd-work previously approved these changes May 9, 2023
Keep `poetry` as the default generator for `pyproject.toml` files
because it is very common. But allow the user to use `-t pip` for other
backends (requires `pip-compile`)
The command is not run from the same working directory, so using
relative paths was causing failures.
maxrake
maxrake previously approved these changes May 9, 2023
Copy link
Contributor

@maxrake maxrake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the new issues created to address the findings here, this LGTM.

lockfile_generator/src/lib.rs Show resolved Hide resolved
@kylewillmon kylewillmon enabled auto-merge (squash) May 9, 2023 22:11
@kylewillmon kylewillmon merged commit 295d30a into main May 9, 2023
@kylewillmon kylewillmon deleted the pip-tools branch May 9, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants