Debian Codegraph @

debian/patches/0001-Use-packaged-js-and-css-instead-of-xstatic-ones.patch

raw symbols SCIP
1 Fromscip-debian debian bepasty 1.2.2-3 bepasty/patches/`0001-Use-packaged-js-and-css-instead-of-xstatic-ones.patch`#From.: Elena Grandi <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian bepasty 1.2.2-3 bepasty/patches/`0001-Use-packaged-js-and-css-instead-of-xstatic-ones.patch`#Date.: Thu, 6 Feb 2020 11:22:04 +0100
3 Subjectscip-debian debian bepasty 1.2.2-3 bepasty/patches/`0001-Use-packaged-js-and-css-instead-of-xstatic-ones.patch`#Subject.: Use packaged js and css instead of xstatic ones.
4
5 Forwarded: not-needed
6 ---
7 pyproject.toml | 9 ---------
8 src/bepasty.egg-info/requires.txt | 9 ---------
9 src/bepasty/bepasty_xstatic.py | 30 ++++++++++--------------------
10 3 files changed, 10 insertions(+), 38 deletions(-)
11
12 diff --git a/pyproject.tomlscip-debian debian bepasty 1.2.2-3 bepasty/upstream/`pyproject.toml`: b/pyproject.tomlscip-debian debian bepasty 1.2.2-3 bepasty/upstream/`pyproject.toml`:
13 index bf3b9ff..7badb44 100644
14 --- a/pyproject.toml
15 +++ b/pyproject.toml
16 @@ -35,15 +35,6 @@ dependencies = [
17 "Flask",
18 "markupsafe",
19 "Pygments >= 2.12.0",
20 - "xstatic < 2.0.0",
21 - "XStatic-asciinema-player <= 2.6.1.1",
22 - "xstatic-bootbox >= 5.4.0, <= 5.5.1.1",
23 - "xstatic-bootstrap >=4.0.0.0, <= 4.5.3.1",
24 - "xstatic-font-awesome <= 4.7.0.0",
25 - "xstatic-jquery <= 3.5.1.1",
26 - "xstatic-jquery-ui <= 1.13.0.1",
27 - "xstatic-jquery-file-upload <= 10.31.0.1",
28 - "xstatic-pygments <= 2.9.0.1",
29 ]
30
31 [project.scripts]
32 diff --git a/src/bepasty.egg-info/requires.txtscip-debian debian bepasty 1.2.2-3 bepasty/upstream/`src/bepasty.egg-info/requires.txt`: b/src/bepasty.egg-info/requires.txtscip-debian debian bepasty 1.2.2-3 bepasty/upstream/`src/bepasty.egg-info/requires.txt`:
33 index 2bc15b9..3ed619a 100644
34 --- a/src/bepasty.egg-info/requires.txt
35 +++ b/src/bepasty.egg-info/requires.txt
36 @@ -2,15 +2,6 @@ werkzeug
37 Flask
38 markupsafe
39 Pygments>=2.12.0
40 -xstatic<2.0.0
41 -XStatic-asciinema-player<=2.6.1.1
42 -xstatic-bootbox<=5.5.1.1,>=5.4.0
43 -xstatic-bootstrap<=4.5.3.1,>=4.0.0.0
44 -xstatic-font-awesome<=4.7.0.0
45 -xstatic-jquery<=3.5.1.1
46 -xstatic-jquery-ui<=1.13.0.1
47 -xstatic-jquery-file-upload<=10.31.0.1
48 -xstatic-pygments<=2.9.0.1
49
50 [magic]
51 python-magic
52 diff --git a/src/bepasty/bepasty_xstatic.pyscip-debian debian bepasty 1.2.2-3 bepasty/upstream/`src/bepasty/bepasty_xstatic.py`: b/src/bepasty/bepasty_xstatic.pyscip-debian debian bepasty 1.2.2-3 bepasty/upstream/`src/bepasty/bepasty_xstatic.py`:
53 index 6bcb3bd..6f114e7 100644
54 --- a/src/bepasty/bepasty_xstatic.py
55 +++ b/src/bepasty/bepasty_xstatic.py
56 @@ -1,20 +1,10 @@
57 -from xstatic.main import XStatic
58 -
59 -# names below must be package names
60 -mod_names = [
61 - 'asciinema_player',
62 - 'bootbox',
63 - 'bootstrap',
64 - 'font_awesome',
65 - 'jquery',
66 - 'jquery_ui',
67 - 'jquery_file_upload',
68 - 'pygments',
69 -]
70 -
71 -pkg = __import__('xstatic.pkg', fromlist=mod_names)
72 -serve_files = {}
73 -for mod_name in mod_names:
74 - mod = getattr(pkg, mod_name)
75 - xs = XStatic(mod, root_url='/static', provider='local', protocol='http')
76 - serve_files[xs.name] = xs.base_dir
77 +serve_files = {
78 + 'asciinema_player': '',
79 + 'bootbox': '/usr/share/javascript/bootbox/',
80 + 'bootstrap': '/usr/share/javascript/bootstrap4/',
81 + 'font_awesome': '/usr/share/fonts-font-awesome/',
82 + 'jquery': '/usr/share/javascript/jquery/',
83 + 'jquery_ui': '/usr/share/javascript/jquery-ui/',
84 + 'jquery_file_upload': '/usr/share/javascript/jquery-file-upload/',
85 + 'pygments': '/usr/share/javascript/bepasty-pygments/',
86 + }