Skip to content
Snippets Groups Projects
Commit 5e322d13 authored by Vincent Texier's avatar Vincent Texier
Browse files

[fix] fix septup tools licence-files warning

add extra files check on wheel after build in Makefile
parent 280f1511
Branches
Tags
No related merge requests found
Pipeline #40534 waiting for manual action
......@@ -59,6 +59,16 @@ build:
msgfmt tikka/locales/fr_FR/LC_MESSAGES/application.po --output-file=tikka/locales/fr_FR/LC_MESSAGES/application.mo
msgfmt tikka/locales/en_US/LC_MESSAGES/application.po --output-file=tikka/locales/en_US/LC_MESSAGES/application.mo
uv build
@WHEEL_PATH=$$(ls -t dist/*.whl | head -n1); \
echo "Checking wheel: $$WHEEL_PATH"; \
unzip -l $$WHEEL_PATH | awk '{print $$NF}' | grep -q "tikka/locales/en_US/licence_g1.md" || (echo "❌ Missing licence_g1.md EN" && exit 1); \
unzip -l $$WHEEL_PATH | awk '{print $$NF}' | grep -q "tikka/locales/fr_FR/licence_g1.md" || (echo "❌ Missing licence_g1.md FR" && exit 1); \
unzip -l $$WHEEL_PATH | awk '{print $$NF}' | grep -q "tikka/locales/en_US/LC_MESSAGES/application.mo" || (echo "❌ Missing application.mo EN" && exit 1); \
unzip -l $$WHEEL_PATH | awk '{print $$NF}' | grep -q "tikka/locales/fr_FR/LC_MESSAGES/application.mo" || (echo "❌ Missing application.mo FR" && exit 1); \
unzip -l $$WHEEL_PATH | awk '{print $$NF}' | grep -q "tikka/adapters/repository/assets/config.json" || (echo "❌ Missing config.json" && exit 1); \
unzip -l $$WHEEL_PATH | awk '{print $$NF}' | grep -q "tikka/adapters/repository/assets/currencies.yaml" || (echo "❌ Missing currencies.yaml" && exit 1); \
unzip -l $$WHEEL_PATH | awk '{print $$NF}' | grep -q "tikka/adapters/repository/database/assets/migrations/00001.init_tables.sql" || (echo "❌ Missing migration sql" && exit 1); \
echo "Wheel OK: $$WHEEL_PATH"
pyinstaller:
./bin/pyinstaller.sh
......@@ -4,6 +4,7 @@ version = "0.14.3"
description = "Tikka is a fast and light Python/Tk client to manage your Ğ1 accounts"
authors = [{name = "Vincent Texier", email = "vit@free.fr"}]
requires-python = ">=3.9"
license-files = ["LICENSE"]
dependencies = [
"mnemonic>=0.19",
......@@ -25,16 +26,16 @@ dependencies = [
"pyaes>=1.6.1",
]
[tool.setuptools]
# fix bug license files version https://github.com/astral-sh/uv/issues/9513
license-files = []
#[tool.setuptools]
## fix bug license files version https://github.com/astral-sh/uv/issues/9513
#license-files = []
[tool.setuptools.packages.find]
where = ["./."]
include = ["tikka", "tikka.*"]
[tool.setuptools.package-data]
tikka = ["locales/*/*.md", "locales/*/LC_MESSAGES/*.mo", "adapters/repository/assets/*.json","adapters/repository/assets/*.yaml", "adapters/repository/database/assets/migrations/*.sql"]
tikka = ["locales/*/*.md", "locales/*/LC_MESSAGES/*.mo", "adapters/repository/assets/config.json","adapters/repository/assets/currencies.yaml", "adapters/repository/database/assets/migrations/*.sql"]
[project.scripts]
tikka = "tikka.__main__:main"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment