From d592880c4bc4c581d8847d96ff73bc319ca1fac2 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 26 Dec 2021 17:11:37 +0100 Subject: Make cards be part of the Python package data We now load the cards using pkg_resources. This is way better in many aspects: * we can install the package using pip without having issues loading cards * we don't need to chdir to / before running swiftstoryd * we don't need to rely on data_files which is deprecated. Signed-off-by: Olivier Gayot --- debian/copyright | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/copyright') diff --git a/debian/copyright b/debian/copyright index a9f62d4..c9331ff 100644 --- a/debian/copyright +++ b/debian/copyright @@ -7,6 +7,6 @@ Files: * Copyright: Copyright (c) 2021 Olivier Gayot License: BSD-3-clause -Files: usr/share/swiftstory/lang/*/cards +Files: swiftstory/data/lang/*/cards/*.json Copyright: Copyright (c) Cards Against Humanity (https://cardsagainsthumanity.com) License: CC-BY-SA-2.0 -- cgit v1.2.3