summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-12-26 17:11:37 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-12-26 18:28:21 +0100
commitd592880c4bc4c581d8847d96ff73bc319ca1fac2 (patch)
treeac4996aa4d81ef55e68b209d4c541c206f1efe61 /debian
parent794292740c30bfea48dc23eb62fb6aa531bfdca7 (diff)
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 <olivier.gayot@sigexec.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/control3
-rw-r--r--debian/copyright2
2 files changed, 3 insertions, 2 deletions
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