rossant / pipo

CLI helper for setuptools
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Support zip and bztar sdist formats in addition to tar.gz #2

Open pombredanne opened 8 years ago

pombredanne commented 8 years ago

It would be great to support (possibly optionally) bztar and zip sdist formats. The rationale is that I prefer bztar for getting smaller tarballs and windows user can only deal with zip natively in most cases. I usually do that with a setup.cfg entry:

[aliases]
release = clean --all bdist_wheel sdist --formats=bztar,zip
rossant commented 8 years ago

+1 to support more formats (bztar and zip) by default, PR welcome :D

pombredanne commented 8 years ago

@rossant you wrote:

PR welcome :D

Naively I was hoping you would code it for me as a thank you for the name handover :D ;)

rossant commented 8 years ago

You just have to ask ;) We can already add bztar and zip to the default build command. A further enhancement might be to detect the format specified in setup.cfg and use that somehow?

pombredanne commented 8 years ago

We can already add bztar and zip to the default build command. A further enhancement might be to detect the format specified in setup.cfg and use that somehow?

Well I am not sure if you can specify these as defaults in setup.cfg. What I mentioned above is a setuptools command alias for python setup.py release. Not sure you have a section that would be supporting a more structured set of parameters. But that said, that brings an interesting approach: have some optional custom setup.cfg sections such that

  1. things work with no config by default
  2. if you want to tinker you can set things in the setup.cfg ?
rossant commented 8 years ago

But that said, that brings an interesting approach: have some optional custom setup.cfg sections such that

  1. things work with no config by default
  2. if you want to tinker you can set things in the setup.cfg

+1 I guess just a list of sdist bdist formats in setup.cfg would be good enough