dh-virtualenv icon indicating copy to clipboard operation
dh-virtualenv copied to clipboard

Add passing options via individual binary package headers

Open wodny opened this issue 2 years ago • 1 comments

Allow to specify dh-virtualenv options per binary package like so (debian/control):

Package: foo
Conflicts: foo-http
[...]
Package: foo-http
Conflicts: foo
X-Dh-Virtualenv-Extras: http
X-Dh-Virtualenv-Install-Suffix: foo

With the following in setup.cfg:

[options.extras_require]
http = aiohttp ~= 3.8

I wanted to build two debian packages with different extras and did not find an easier way. If this method seems reasonable and gets accepted, I will write and push documentation and some tests.

(cherry picked from commit a43d163901aeeb70940755867056ff6a2a4d0eab)

wodny avatar Oct 22 '22 10:10 wodny

Hey,

sorry for a late reply here but definitely something that could be included in the package if you provide tests and documentation on it!

nailor avatar Jan 03 '23 15:01 nailor