python-hyper / h11

A pure-Python, bring-your-own-I/O implementation of HTTP/1.1
https://h11.readthedocs.io/
MIT License
490 stars 62 forks source link

sdist is missing tox.ini #164

Open mtelka opened 1 year ago

mtelka commented 1 year ago

The sdist package at PyPI is missing tox.ini. Please add the missing tox.ini file to sdist to make downstream testing easier. Thank you.

zanieb commented 1 year ago

Hey @mtelka — I don't think it's common to include testing utilities in sdists. Can you point to other packages that do this? Why aren't you cloning from git if you're doing development on this project?

mtelka commented 1 year ago

I'm packaging h11 (and hundreds of other Python projects) for OpenIndiana and tests included in sdist are common. Yes, there are some people that do not want tests in sdist but they are minority only.

An recent example: https://github.com/pypa/distlib/issues/206

I have plenty of similar cases when some files needed for tests were missing and after a bug report such files were added. There is also (much longer) list of projects that include full tests properly since day zero.

Thank you.

zanieb commented 1 year ago

Makes sense. The tests are already in the main module here so it seems reasonable. Perhaps you want to open a pull request? It's trivial to add e.g. https://github.com/pypa/distlib/commit/ff48e09e9b5f8588145e22f5b7c51b361eb1fcfe

I'm not a maintainer here though — just a contributor.

Related https://github.com/python-hyper/h11/issues/158