Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, but it's not a good practice to specify full git url in setup.py, where I would expect to have sheer module name and version constraints if necessary. There is a convention about overriding requirements from setup.py via requirements.txt file, but here the author just decided to note it in a readme file instead to avoid the need to clone his repository manually.


    the author just decided to note it in a readme file
    instead to avoid the need to clone his repository
    manually
Isn't it the other way round? Because the dependency is noted in the readme, one has to clone his repo manually?

If it was in the setup.py, one could just run setup.py and everything would be set up.


So I don't do too much with Python but is it accepted practice now to use Pipfile or do most folks still use requirements.txt and/or setup.py?


Like for all languages there are a bunch of dependency managers. And everyone you ask will praise the one they use.

In my opinion, setup.py is best approach. I don't want to be forced to use some specific dependency manager. I just want to run setup.py and expect it to take care of dependencies.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: