Include Ğ1 monetary license into the wheel
When running a pip installation, the license tab would crash due to missing license files
Merge request reports
Activity
added Bug label
requested review from @vtexier
assigned to @moul
Good catch !
But we should not include
.po
files fromlocales
directory in the wheel. Only.mo
and.md
files.Edited by Vincent TexierI don’t know what’s wrong with the CI/CD build. When I try to build it locally with no change, as on
main
branch, I get everything included (po, mo, md) with an empty configuration:[tool.setuptools.packages.find] where = ["."]
I tried different stuff, but nothing successful. I also tried to excludes the
po
, but they remain included.[tool.setuptools.packages.find] where = ["."] [tool.setuptools.package-data] tikka = ["*.mo", "*.json", "*.yaml", "*.sql"] [tool.setuptools.exclude-package-data] tikka = ["application.po"] # tikka.locales.fr_FR.LC_MESSAGES = ["application.po"] # tikka.locales.en_EN.LC_MESSAGES = ["application.po"]
The fact that
uv
implements different back-ends,setuptools
in this case, does not make things clear. Isuv
correctly implementing the other back-ends (poetry, hatch, setuptools)?
When running
uv build
, I get:adding 'tikka/locales/en_US/licence_g1.md' adding 'tikka/locales/en_US/LC_MESSAGES/application.mo' adding 'tikka/locales/en_US/LC_MESSAGES/application.po' adding 'tikka/locales/fr_FR/licence_g1.md' adding 'tikka/locales/fr_FR/LC_MESSAGES/application.mo' adding 'tikka/locales/fr_FR/LC_MESSAGES/application.po'
While in the CI:
adding 'tikka/locales/en_US/LC_MESSAGES/application.mo' adding 'tikka/locales/fr_FR/LC_MESSAGES/application.mo'
May be a different
setuptools
version? I run v74.1.3, whilepython:3.9-slim-bullseye
image runs v58.1.0.unassigned @moul
removed review request for @vtexier
mentioned in issue #12 (closed)
Follow-up in #12 (closed).