envy icon indicating copy to clipboard operation
envy copied to clipboard

distutils2

Open kennethreitz opened this issue 13 years ago • 6 comments
trafficstars

Explore using setup.cfg instead of a new file.

kennethreitz avatar Apr 18 '12 12:04 kennethreitz

:clap:

jezdez avatar Apr 18 '12 12:04 jezdez

that is a really intriguing idea! do you plan on using the setup.py for the requirements or would you still define them in the setup.cfg. I'm not quite familiar with setup.cfg so I'm not sure if install_requires can be specified in it. Would it be able to handle conditional requirements? Btw, I've made quite a bit of headway on my own very similar project which you are more than welcome to cannibalize for your needs :-D! The project is called virtstrap

ravenac95 avatar Apr 20 '12 06:04 ravenac95

Thanks! I think so too.

My idea would be to define the "range" of requirements and in setup.cfg. Envy could then generate a requirements.txt file from it, with all pinned versions.

kennethreitz avatar Apr 20 '12 16:04 kennethreitz

https://github.com/iguananaut/d2to1

Not sure if you've seen this before, but this project seems semi-relevant to the whole idea of using setup.cfg. I did some research on the idea last night. Definitely seems doable. I was thinking of implementing a branch on virtstrap that would use it :-D. Sorry to steal the idea. I think it's wonderful!

ravenac95 avatar Apr 20 '12 18:04 ravenac95

Turns out there's already a requires-python in setup.cfg.

kennethreitz avatar Apr 23 '12 15:04 kennethreitz

And requires-external for other uses. http://www.python.org/dev/peps/pep-0345/#requires-python

jezdez avatar Apr 25 '12 09:04 jezdez