File: privacy.patch

package info (click to toggle)
brian 2.8.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,872 kB
  • sloc: python: 51,548; cpp: 2,011; makefile: 116; sh: 64
file content (90 lines) | stat: -rw-r--r-- 5,568 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 02 Oct 2019 09:37:28 +0200
Description: Prevent privacy breach in docs
Forwarded: not-needed

--- brian.orig/dev/tools/docs/build_tutorials.py
+++ brian/dev/tools/docs/build_tutorials.py
@@ -53,7 +53,7 @@
     note = deindent('''
     .. only:: html
 
-        .. |launchbinder| image:: http://mybinder.org/badge.svg
+        .. |launchbinder| image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
         .. _launchbinder: https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=tutorials/{tutorial}.ipynb
     
         .. note::
@@ -120,7 +120,7 @@
 '''
 for tutorial, _ in tutorials:
     text += indent(deindent('''
-    .. |launchbinder{tutid}| image:: http://mybinder.org/badge.svg
+    .. |launchbinder{tutid}| image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
     .. _launchbinder{tutid}: https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=tutorials/{tutorial}.ipynb
     '''.format(tutorial=tutorial, tutid=tutorial.replace('-', ''))))
 
--- brian.orig/README.md
+++ brian/README.md
@@ -14,28 +14,9 @@
 
 > Stimberg, M, Brette, R, Goodman, DFM. “Brian 2, an Intuitive and Efficient Neural Simulator.” eLife 8 (2019): e47314. doi: [10.7554/eLife.47314](https://doi.org/10.7554/eLife.47314).
 
-
-[![PyPI version](https://img.shields.io/pypi/v/Brian2.svg)](https://pypi.python.org/pypi/Brian2)
-[![Conda version](https://img.shields.io/conda/vn/conda-forge/brian2.svg)](https://anaconda.org/conda-forge/brian2)
-[![Debian package](https://img.shields.io/debian/v/python3-brian/testing)](https://packages.debian.org/testing/python3-brian)
-[![Fedora package](https://img.shields.io/fedora/v/python3-brian2)](https://packages.fedoraproject.org/pkgs/python-brian2/python3-brian2/)
-[![Spack](https://img.shields.io/spack/v/py-brian2)](https://packages.spack.io/package.html?name=py-brian2)
-[![AUR version](https://img.shields.io/aur/version/python-brian2)](https://aur.archlinux.org/packages/python-brian2)
-
-[![Docker Pulls](https://img.shields.io/docker/pulls/briansimulator/brian)](https://hub.docker.com/r/briansimulator/brian)
-[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14717489.svg)](https://zenodo.org/doi/10.5281/zenodo.14717489)
-[![Software Heritage (repository)](https://archive.softwareheritage.org/badge/origin/https://github.com/brian-team/brian2/)](https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/brian-team/brian2)
-[![Software Heritage (release)](https://archive.softwareheritage.org/badge/swh:1:rel:ebe093b900f2e7bca5f790820549353d569ad6b1/)](https://archive.softwareheritage.org/swh:1:rel:ebe093b900f2e7bca5f790820549353d569ad6b1;origin=https://github.com/brian-team/brian2;visit=swh:1:snp:9fe208825df28a39f95474965cd171d690744327)
-
-[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
-[![Discourse topics](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fbrian.discourse.group)](https://brian.discourse.group)
-[![Discourse chat](https://img.shields.io/badge/discourse-chat-4EC820?logo=discourse&link=https%3A%2F%2Fbrian.discourse.group%2Fchat)](https://brian.discourse.group/chat)
-[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
-
 ## Quickstart
-Try out Brian on the [mybinder](https://mybinder.org/) service:
 
-[![mybinder](https://static.mybinder.org/badge.svg)](https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=index.ipynb)
+[Try out Brian on the mybinder service.](https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=index.ipynb)
 
 ## Dependencies
 The following packages need to be installed to use Brian 2 (cf. [`pyproject.toml`](pyproject.toml)):
@@ -63,10 +44,3 @@
 
 * pytest
 * pytest-xdist (optional)
-
-## Testing status for master branch
-
-[![Test status on GitHub Actions](https://github.com/brian-team/brian2/actions/workflows/testsuite.yml/badge.svg)](https://github.com/brian-team/brian2/actions/workflows/testsuite.yml)
-[![Publish status on GitHub Actions](https://github.com/brian-team/brian2/actions/workflows/publish.yml/badge.svg)](https://github.com/brian-team/brian2/actions/workflows/publish.yml)
-[![Test coverage](https://img.shields.io/coveralls/brian-team/brian2/master.svg)](https://coveralls.io/r/brian-team/brian2?branch=master)
-[![Documentation Status](https://readthedocs.org/projects/brian2/badge/?version=stable)](https://brian2.readthedocs.io/en/stable/?badge=stable)
--- brian.orig/brian2/sphinxext/generate_examples.py
+++ brian/brian2/sphinxext/generate_examples.py
@@ -143,7 +143,7 @@
         note = f"""
         .. only:: html
 
-            .. |launchbinder| image:: http://mybinder.org/badge.svg
+            .. |launchbinder| image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
             .. _launchbinder: https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=examples/{exname.replace('.', '/')}.ipynb
 
             .. note::
--- brian.orig/docs_sphinx/index.rst
+++ brian/docs_sphinx/index.rst
@@ -17,7 +17,7 @@
     install Brian, using the Binder service (note: sometimes this service is down
     or running slowly):
 
-    .. image:: http://mybinder.org/badge.svg
+    .. image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
         :target: http://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=demo.ipynb
 
 Once you have a feel for what is involved in using Brian, we recommend you