mireq / pip-compile-universal

Compile requirements.in using pip-tools for multiple python versions to single requirements.txt file
2 stars 0 forks source link

format of appending to txt #2

Open belm0 opened 1 week ago

belm0 commented 1 week ago

It's minor, but pip-compile-universal appends immediately to the end of the txt file, which often has a comment generated by pip-compile and causes a little confusion:

# The following packages are considered to be unsafe in a requirements file:
# setuptools
numpy==2.0.0 ; python_version >= "3.12"
...

It would help a little to either add an extra newline (to separate appended requirements from the pip-compile comment), or perhaps insert the new requirements before the comment.

# The following packages are considered to be unsafe in a requirements file:
# setuptools

# Appended by pip-compile-universal:
numpy==2.0.0 ; python_version >= "3.12"
...