Parquery / swagger-to

Generate server and client code from Swagger (OpenAPI 2.0) specification.
MIT License
57 stars 14 forks source link

fixed can not execute bin scripts under unix-like envs #101

Closed yacchi closed 4 years ago

yacchi commented 4 years ago

Shebang line (1st line of scripts. ex. '#!/usr/bin/env python3') required "LF line separator" in many Unix-like environments. But, the 4.01 package included CRLF separated scripts.

'setuptools.setup' has console_scripts entry_point. The directive provides create corresponded to the platform command in install time.

https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-console-scripts-entry-point

mristin commented 4 years ago

Hi @yacchi , Thanks a ton for this change! I tested on my Windows laptop and it works as well.