Skip to content

Conversation

@niklasmohrin
Copy link
Member

@niklasmohrin niklasmohrin commented May 20, 2025

This should prevent situations like #2446. I also enabled source map generation for ./manage.py scss --production.

Note that I used the pathspec library instead of the builtin fnmatch module, because that is what hatch uses: https://github.com/pypa/hatch/blob/4ebce0e1fe8bf0fcdef587a704c207a063d72575/backend/src/hatchling/builders/config.py#L185

@niklasmohrin
Copy link
Member Author

niklasmohrin commented May 20, 2025

Ah, this just found another packaging bug: Even though we listed them for inclusion in the wheel, tt turns out we don't generate CSS source maps in ./manage.py scss --production:

command += ["--style", "compressed", "--no-source-map"]

This has been the behavior from #1529 onwards, but I don't really see why. @richardebeling @janno42 any idea?

@niklasmohrin
Copy link
Member Author

I guess there should be a small test for the script

richardebeling
richardebeling previously approved these changes May 24, 2025
@niklasmohrin niklasmohrin changed the title Add nix/check-dist.py to ensure all specified artifacts are used Add tools/check-dist.py to ensure all specified artifacts are used May 26, 2025
@niklasmohrin niklasmohrin changed the title Add tools/check-dist.py to ensure all specified artifacts are used Add tools/check_dist.py to ensure all specified artifacts are used May 26, 2025
@niklasmohrin niklasmohrin changed the title Add tools/check_dist.py to ensure all specified artifacts are used Add tools/check_dist.py to ensure all specified artifacts are used May 26, 2025
@niklasmohrin niklasmohrin merged commit 1893913 into e-valuation:main May 29, 2025
15 checks passed
@niklasmohrin niklasmohrin deleted the check-dist branch May 29, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants