Pip: Is it possible to append comment in requirements.txt file ?

Created on 5 Jun 2012  路  1Comment  路  Source: pypa/pip

Hi,

Is it possible to append comment in requirements.txt file ?

Example :

Pillow # replace PIL

If comment feature is not available, what do you think about this comment syntax ? "#" is a good character ?

Can I implement this feature ? Is it a good idea ?

Regards,
Stephane

auto-locked

Most helpful comment

A line beginning with # is treated as a comment and ignored, so you can just place your comment on the line above instead of on the same line.

One issue with allowing comments on the same line is that it's common to use url fragments (#egg=...) with editable requirements, and I think that could easily get visually confusing. I'm not sure it's worth it.

>All comments

A line beginning with # is treated as a comment and ignored, so you can just place your comment on the line above instead of on the same line.

One issue with allowing comments on the same line is that it's common to use url fragments (#egg=...) with editable requirements, and I think that could easily get visually confusing. I'm not sure it's worth it.

Was this page helpful?
0 / 5 - 0 ratings