-
-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider vendoring python-mimeparse #1420
Comments
I'd rather have the option to use the regular mimeparse dependency, for packaging purposes (GNU Guix). As it stands, we unbundled it already but it recently started failing like so:
Probably because of changes in mimeparse upstream. |
Hi @Apteryks! FWIW, And I can indeed reproduce the issue, probably we haven't really payed attention to the possibility of unbundling (although I know Fedora Linux (and possibly Debian too) does unbundle, but I haven't looked how exactly they do that). NB that you will need a patch to replace the vendored imports with the global ones in either case. I'll file an issue so that make a decision going forward. |
Hello @vytas7 and thank you for the prompt reply. You are correct that mimeparse hasn't changed upstream in recent years, it seems. The problem would have rather been introduced with f19039a; which accesses the |
As brought up on #1383 and discussions on Gitter, we may consider vendoring
python-mimeparse
dependency.Normally, vendoring Python dependencies is just an unnecessary burden:
However, in this particular case of
python-mimeparse
it might be a compelling choice:six
, this would make Falcon completely dependency-free, which, while not being much of a benefit in the virtualenv + Pip workflow, might ease distributing Falcon in other ways, such as packaging for Linux distributions (see for instance: mimeparse vs python-mimeparse python-mimeparse#20 ⬅️ note by @kgriffs )python-mimeparse
is a mature package with a concise codebase (cone 190-line file), the pace of recent developments is rather moderate (at the time of writing, Jan 2019, the latest stable release on PyPi is from 2016)If we decide to do it, we need to keep an eye on upstream developments. We could introduce a Tox or Travis check that we have not fallen behind its stable PyPi version.
The text was updated successfully, but these errors were encountered: