-
Notifications
You must be signed in to change notification settings - Fork 190
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
Packaging for 3.14.0 doesnt include sub-packages #268
Comments
Also it looks like the template isnt being installed. |
I have updated How do you importing |
The contents of the 3.14.0 wheel looks ok. Installing from the sdist using c.f. https://build.opensuse.org/request/show/835160 openSUSE workaround to get it working on rolling release which uses latest versions of all build related packages. I haven't investigated if it works on some older versions of setuptools - there is a narrow window of versions that support setup.cfg fully (the .cfg syntax seems to be evolving even now), so it is possible that some versions work, and others dont. For the record, the build env this occurred on was
more complete logs can be found at https://build.opensuse.org/package/show/devel:languages:python:django/python-django-health-check and logging in, after which you can "branch" (fork) that package to edit the .spec file to remove the hacks which will let you see it fail. But I was able to reproduce the problem locally, so that shouldn't be necessary. |
Hi @jayvdb, I checked, both the source and binary release include all packages and templates. Best, |
Please forgive that I removed your comment form the other issue. It was unrelated and could be misleading to others. |
It has nothing to do with me. This is a openSUSE distribution package, and the problem exists for any other distro and any other user of the sdist. The problem is not that the files are not in the sdist. They are in there. The problem is the setup.py doesnt install them. Anyway, as you are deleting feedback, and we have a workaround, I will disengage. Hopefully someone else can explain it better. |
Hi @jayvdb, To be honest, I was not aware there was an OpenSUSE distro of this package. In any case, after reviewing the You could use the official PyPi sdist builds, those will work, see also:
A little person side note: Best, |
@codingjoe , distro packages build from source and run tests in an offline build environment to avoid any chance of pollutants. This package no longer provides tests in the PyPI sdist, so we must fetch the tarball from GitHub as a fallback to get a properly versioned testsuite. I mentioned this problem in my (now deleted) comment on the other issue. In addition, pip has a dotted history with regards to https://reproducible-builds.org/ which is needed by distros, frequently not working, but occasionally it worked in some cases. pypa/pip#7808 suggests it might be working now in some cases, but without adequate tests it would be foolish for distros to switch to using pip only to find it breaks again and they need to revert all of their spec files to the old syntax. |
I see. So, the other issue is about releases missing on PyPi, not files missing in the dists. That being said, we could easily add the tests and docs back into the sdist. Its two lines really, that currently explicitly remove the folders. We could remove those lines, what do you think? |
Re-adding docs and tests to the sdist would certainly help. The suggested change above seems dubious, but I havent checked it carefully. That typically causes a package called |
Hi @jayvdb, Thanks for the hint about Best, |
Re-checked with v3.16.5, and I am using the GitHub tarball. The sub-packages and index.html are still not installing. I have a little hack in my .spec file which "fixes" this
That fixes the installation of sub-packages, but I still need to manually install the index.html And the |
The PyPI packages only include package 'health_check', excluding sub-packages `health_check.contrib', etc
The text was updated successfully, but these errors were encountered: