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/control | 3 ++- debian/copyright | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'debian') diff --git a/debian/control b/debian/control index 33b1e60..bdb5941 100644 --- a/debian/control +++ b/debian/control @@ -9,12 +9,13 @@ Build-Depends: python3-setuptools, debhelper-compat (= 13), python3-pytest, python3-websockets, + python3-pkg-resources, python3 Standards-Version: 3.9.1 Package: swiftstory Architecture: all Pre-Depends: ${misc:Pre-Depends} -Depends: ${misc:Depends}, ${python3:Depends}, python3-websockets +Depends: ${misc:Depends}, ${python3:Depends}, python3-websockets, python3-pkg-resources Description: SwiftStory game: We're not out of the woods yet. 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