File: remove-notebooks-non-free-files-ref-from-doc-conf.py.patch

package info (click to toggle)
python-contextily 1.5.2%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 944 kB
  • sloc: python: 1,092; makefile: 41
file content (37 lines) | stat: -rw-r--r-- 1,150 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
27
28
29
30
31
32
33
34
35
36
37
Description: Remove notebooks/* non-free files reference from conf.py
 These files are non-free and were removed from upstream orig tarball.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-04-22

--- python-contextily-1.5.2+dfsg1.orig/docs/conf.py
+++ python-contextily-1.5.2+dfsg1/docs/conf.py
@@ -80,28 +80,6 @@ intersphinx_mapping = {
 
 # ---------------------------------------------------------------------------
 
-# Copy notebooks into the docs/ directory so sphinx sees them
-
-HERE = pathlib.Path(os.path.abspath(os.path.dirname(__file__)))
-
-
-files_to_copy = [
-    "notebooks/add_basemap_deepdive.ipynb",
-    "notebooks/intro_guide.ipynb",
-    "notebooks/places_guide.ipynb",
-    "notebooks/providers_deepdive.ipynb",
-    "notebooks/warping_guide.ipynb",
-    "notebooks/working_with_local_files.ipynb",
-    "notebooks/friends_gee.ipynb",
-    "notebooks/friends_cenpy_osmnx.ipynb",
-    "tiles.png",
-]
-
-
-for filename in files_to_copy:
-    shutil.copy(HERE / ".." / filename, HERE)
-
-
 # convert README to rst
 
 subprocess.check_output(["pandoc", "--to", "rst", "-o", "README.rst", "../README.md"])