From 609b312611d678454f50ae0e4699f5e3bfe73bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Arturo=20Garci=CC=81a?= Date: Mon, 10 Aug 2026 22:07:30 -0400 Subject: [PATCH] Make the 8.0 package build reproducible --- CHANGELOG | 2 ++ pyproject.toml | 6 +++++- tests/test_module.py | 10 ++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3c84206..67dc2b8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ Version 8.0.1 - 2026-08-09 -------------------------- * Initial release. +* Include project metadata and review documentation in the wheel so the + installed package and its test suite are reproducible. * Document tax requirements and official source provenance. * Correct asset, real-estate transfer, legal-tip, vehicle and bovine tax data. * Remove unsupported or unsafe ITBIS templates and their dependent records. diff --git a/pyproject.toml b/pyproject.toml index 45e9ab7..df1832a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,16 +36,20 @@ funding = "https://www.tryton.org/donate" [tool.hatch.build] include = [ + 'README.rst', + 'CHANGELOG', + 'pyproject.toml', '**/tryton.cfg', '**/*.py', '**/*.xml', + 'doc/**/*.rst', + 'doc/**/*.py', 'view/**/*.xml', '**/*.fodt', 'icons/**/*.svg', 'tests/**/*.rst', 'tests/**/*.json', ] -exclude = ['doc'] [tool.hatch.build.targets.wheel.sources] "" = "trytond/modules/account_do" diff --git a/tests/test_module.py b/tests/test_module.py index ee34bd6..3754e3c 100644 --- a/tests/test_module.py +++ b/tests/test_module.py @@ -597,8 +597,14 @@ class AccountDoUnitTestCase(unittest.TestCase): self.assertIn( ('repository = "https://code.unpaismejor.org.do/' 'tryton-do/account_do"'), pyproject) - self.assertIn("exclude = ['doc']", pyproject) - for package_file in ['**/*.xml', 'tests/**/*.rst']: + for package_file in [ + "'README.rst'", + "'CHANGELOG'", + "'pyproject.toml'", + "'**/*.xml'", + "'doc/**/*.rst'", + "'tests/**/*.rst'", + ]: self.assertIn(package_file, pyproject) for filename in [ '__init__.py',