Support include/exclude also for wheels #669
Replies: 4 comments 1 reply
-
Thanks for the idea! To be honest, the support for pointing to a different file is a random leftover from the early days of Flit - that's why it's If you want several packages made from the same repo, nowadays I'd do this with subdirectories, each one containing its own Maybe there's an opportunity for a tool that lets you carve up a repo into several packages without structuring it as a set of smaller projects in one repo. Feel free to experiment - and to use Flit as a base for experiments - if you want that. But it sounds pretty niche, and at the moment, I don't see it as a likely direction for Flit itself (as in the description "a simple packaging tool for simple packages"). One note if you do want to do something based on Flit: the only part I consider 'public API' is the PEP 517 & PEP 660 build backend interface in |
Beta Was this translation helpful? Give feedback.
-
@takluyver Thanks Thomas! I will try to hack a proof of concept derived from flit and will report back here. |
Beta Was this translation helpful? Give feedback.
-
@takluyver here is a hack derived from flit, that I called flot!
|
Beta Was this translation helpful? Give feedback.
-
At this stage I started using flot in production, and I am pretty happy with its simplicity and feature set. @takluyver Thank you ++ for flit! |
Beta Was this translation helpful? Give feedback.
-
Hi @takluyver :
Flit is unique ❤️ because it can build multiple packages from the same tree. Just thrown in another pyproject toml file and you can point filt to it with
-f/--ini-file
; and you can then build multiple packages easily including small ones, without much ceremony.It helps when you have larger repos to create smaller reusable libraries and it avoid copy/paste because it is so easy to create and publish a new package.
No other packaging tools does this so far. In this context, I would like to select which file goes in a wheel the same way I can select which files goes in an sdist. I reckon that you may not accept this as a feature based on past issues and your comments on these such as in #636 ... but I am asking just in case you may have changed your mind:
Would you consider a patch that does just this: support a new include/exclude glob in pyproject.toml to build wheels with a bit more control, without having to make major artificial reorganization of the code being built.
One alternative would be to create my own package as a wrapper and using either subclass or monkey patching, but I am not sure you have any minimally API of sorts. A last resort would be a fork.
Thank you for your kind consideration!
Beta Was this translation helpful? Give feedback.
All reactions