jazzband / pip-tools

A set of tools to keep your pinned Python dependencies fresh.
https://pip-tools.rtfd.io
BSD 3-Clause "New" or "Revised" License
7.71k stars 611 forks source link

flag in COMPILE_EXCLUDE_OPTIONS showing up in header #2065

Closed mjsir911 closed 6 months ago

mjsir911 commented 7 months ago

Environment Versions

  1. OS Type Windows mingw
  2. Python version: $ python -V Python 3.11.8
  3. pip version: $ pip --version pip 24.0
  4. pip-tools version: $ pip-compile --version pip-compile, version 7.4.1.dev14 (main as of 03/04/2024)

Steps to replicate

  1. pip-compile --no-reuse-hashes -o requirements.txt

Expected result

--no-reuse-hashes doesn't show up in the generated header comment.

Actual result

#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
#    pip-compile --generate-hashes --index-url=.. --no-reuse-hashes --output-file=requirements.txt --strip-extras --trusted-host=..
#
chrysle commented 7 months ago

I think we should allow users to customise COMPILE_EXCLUDE_OPTIONS by exposing it as an environment variable. Could I have your opinion on that, @webknjaz?