File: 0003-Include-package-data.patch

package info (click to toggle)
pystac 1.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,232 kB
  • sloc: python: 24,489; makefile: 124; sh: 7
file content (26 lines) | stat: -rw-r--r-- 699 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 2 Jul 2023 10:53:24 +0000
Subject: Include package data

Forwarded: https://github.com/stac-utils/pystac/pull/1183
---
 pyproject.toml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pyproject.toml b/pyproject.toml
index 4a56841..951c93f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -114,6 +114,12 @@ lint.select = ["E", "F", "I"]
 filterwarnings = ["error"]
 addopts = "--block-network --record-mode=none"
 
+[tool.setuptools]
+include-package-data = true
+
+[tool.setuptools.package-data]
+"pystac.static" = ["*.json"]
+
 [tool.setuptools.packages.find]
 include = ["pystac*"]
 exclude = ["tests*", "benchmarks*"]