0x48piraj / rqmts

rqmts - Generate pip requirements.txt file for any project
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Doesn't work on non-win32 os #23

Open arturloewen opened 1 year ago

arturloewen commented 1 year ago

Required change: class style(): BLACK = "" RED = "" GREEN = "" YELLOW = "" BLUE = "" MAGENTA = "" CYAN = "" WHITE = "" UNDERLINE = "" RESET = "" to class style(): BLACK = lambda x: str(x) RED = lambda x: str(x) GREEN = lambda x: str(x) YELLOW = lambda x: str(x) BLUE = lambda x: str(x) MAGENTA = lambda x: str(x) CYAN = lambda x: str(x) WHITE = lambda x: str(x) UNDERLINE = lambda x: str(x) RESET = lambda x: str(x)

0x48piraj commented 1 year ago

https://github.com/0x48piraj/rqmts/blob/51b27bfd7863b166963e35f3ae1c41e3d3f798ed/rqmts/__main__.py#L8

Also, here's the hot fix for all the OSX and Linux users,

if any(x in sys.platform.lower() for x in ['linux', 'linux2', 'win32', 'darwin']):

For installing from the source,

$ python3 setup.py install