Skip to content

Remove leading ./ in compile_pip_requirements#471

Merged
alexeagle merged 1 commit intobazel-contrib:masterfrom
person142:pip-compile-no-dotslash
May 12, 2021
Merged

Remove leading ./ in compile_pip_requirements#471
alexeagle merged 1 commit intobazel-contrib:masterfrom
person142:pip-compile-no-dotslash

Conversation

@person142
Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Does not include precompiled binaries, eg. .par files. See CONTRIBUTING.md for info
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

The compile_pip_requirements rule will list the requirements as coming from ./requirements.in.

Issue Number: closes #470

What is the new behavior?

It will be attributed to requirements.in, which lets it work out-of-the-box with tools like dependabot.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

None

@person142
Copy link
Copy Markdown
Contributor Author

Ping @alexeagle since I can't request you for review.

@alexeagle alexeagle merged commit 53ba6cb into bazel-contrib:master May 12, 2021
@person142 person142 deleted the pip-compile-no-dotslash branch May 12, 2021 04:38
sys.exit(1)

requirements_in = sys.argv.pop(1)
requirements_in = os.path.relpath(sys.argv.pop(1))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

note normpath is also an option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compile_pip_requirements doesn't work with dependabot out-of-the-box

3 participants