-
Notifications
You must be signed in to change notification settings - Fork 168
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
2.4: Themes are not installed, leading to failing tests #500
Comments
Hi,
One thing I changed since 2.3 is I removed the MANIFEST, since it's not needed when using setuptools-scm. However when building from the .tar.gz there is not git information, and I get a message in the build stage (above): |
I'm building with I think the issue is with the setuptools configuration (specifically https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#finding-simple-packages), which only finds simple packages. All the themes are not packages or namespaced packages though (they lack It seems the more straight-forward way would be to use https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data though (as it doesn't require MANIFEST.in). |
Use setuptools' `package-data` [1] to unconditionally add all files below sigal's `themes` dir to a wheel. This works without any SCM integration and without `MANIFEST.in`. Fixes saimn#500 [1] https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data Signed-off-by: David Runge <dave@sleepmap.de>
I believe #503 to fix this issue |
Hm, that appears to not yet fix it entirely. There also seems to be at least one |
Use setuptools' `package-data` [1] to unconditionally add all files below sigal's `themes/` dir and all data files below the `plugins/encrypt/static/` dir to a wheel. This works without any SCM integration and without `MANIFEST.in`. Fixes saimn#500 [1] https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data Signed-off-by: David Runge <dave@sleepmap.de>
Okay, with #503 applied I can now build from the auto-generated tarball and all tests pass! |
Hi! I'm packaging this project for Arch Linux. This is the build script we are using for 2.3 can be found here: https://gitlab.archlinux.org/archlinux/packaging/packages/sigal/-/blob/1f8a26e7b63f488b70085c6e23e73933cb9162a3/PKGBUILD
The current one does not apply the now irrelevant patch any longer and builds from a github provided source tarball.
Additionally, for the tests I am now installing sigal to a temporary location to test against (more below).
When trying to build 2.4 I noticed that themes directories are no longer installed, which has the tests fail:
Full build and test logs:
sigal-2.4-1-x86_64-build.log
sigal-2.4-1-x86_64-check.log
The directory structure created by installing sigal is:
The text was updated successfully, but these errors were encountered: