-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't install from sdist: poetry.core.masonry.utils.module.ModuleOrPackageNotFound: No file/folder found for package nonecorn #24
Comments
It might be something like this that is needed:
|
Sorry for the late reply. Anyway, thanks for reporting it. The issue seems to related to poetry which I do not familiar with. Try install from pypi? |
By the way, this branch is intended to be the test branch of hypercorn, so its version number is always dev. I have already used some additional features, such as gunicorn process management, zerocopy, etc., but the upstream may not fully accept my features, so I released them separately in pypi. |
Since it is a dev branch, this repo is specially prepared for those who are particularly interested in asgi, because it implements every asgi extension, although the documentation is not yet complete, but I believe those people are looking at the code directly. |
For users who want to try new features, you can take a look at my usage first, at there. The easiest way to start is to read hypercorn's document because it's 100% compatible with hypercorn, the only difference would be the support for asgi extensions, gunicorn and some extra code. |
I was trying to package my application (which was depending on nonecorn because I needed some of your ASGI extensions) in a situation where I have to install from the sdist. When you run I'm not that familiar with poetry either but I wonder if
would work under I find it confusing that there's both a |
Upstream has changed from setuptools to poetry, but I prefer setuptools, so I keep setup.py remain. Actually I have already used And I wonder if this package is able to build on your system with |
This is because it's using the wheel, which isn't affected by this problem. However, the sdists (source distributions) don't work. To reproduce, you can also try My system here today is Ubuntu 22.04 with Python 3.10.6, but I was trying to package on NixOS 22.05 with Python 3.9 I think — I don't think the system seems to affect the fact that the sdists don't work.
Somewhat fair enough, the world of Python packaging is a mess in my opinion and it can be very confusing. However, instead of keeping setuptools, you seem to have ended up with some frankensteinian hybrid of the two :P. The sdist seems to be relying on Poetry to build, which strikes me as unusual if you built the project with This section is in [build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" That tells pip to use poetry to install the project, when it's installed bare. This is essentially a bug if installing via Poetry doesn't work. Maybe the easiest solution is to just remove pyproject.toml if you don't want to touch Poetry? When you build packages (e.g. However: just now I added packages = [
{ include = "src/hypercorn" }
] to the |
So it seems that poetry conflicts with setuptools. I'll have a try later. |
To reproduce:
In a fresh venv,
I can't see any option in
pyproject.toml
that tells it the module is actually called 'hypercorn' not 'nonecorn'; suspect there's something missing but not sureThe text was updated successfully, but these errors were encountered: