Debian Codegraph @

debian/patches/privacy.patch

raw
1 Author: Andreas Tille <[email protected]>
2 Last-Update: 2026-01-06
3 Description: Prevent privacy breach in docs
4 Forwarded: not-needed
5
6 --- brian.orig/dev/tools/docs/build_tutorials.py
7 +++ brian/dev/tools/docs/build_tutorials.py
8 @@ -53,7 +53,7 @@
9 note = deindent('''
10 .. only:: html
11
12 - .. |launchbinder| image:: http://mybinder.org/badge.svg
13 + .. |launchbinder| image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
14 .. _launchbinder: https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=tutorials/{tutorial}.ipynb
15
16 .. note::
17 @@ -120,7 +120,7 @@
18 '''
19 for tutorial, _ in tutorials:
20 text += indent(deindent('''
21 - .. |launchbinder{tutid}| image:: http://mybinder.org/badge.svg
22 + .. |launchbinder{tutid}| image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
23 .. _launchbinder{tutid}: https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=tutorials/{tutorial}.ipynb
24 '''.format(tutorial=tutorial, tutid=tutorial.replace('-', ''))))
25
26 --- brian.orig/README.md
27 +++ brian/README.md
28 @@ -14,33 +14,25 @@
29
30 > 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).
31
32 -
33 -[![PyPI version](https://img.shields.io/pypi/v/Brian2.svg)](https://pypi.python.org/pypi/Brian2)
34 -[![Conda version](https://img.shields.io/conda/vn/conda-forge/brian2.svg)](https://anaconda.org/conda-forge/brian2)
35 -[![Debian package](https://img.shields.io/debian/v/python3-brian/testing)](https://packages.debian.org/testing/python3-brian)
36 -[![Fedora package](https://img.shields.io/fedora/v/python3-brian2/f43)](https://packages.fedoraproject.org/pkgs/python-brian2/python3-brian2/)
37 -[![Spack](https://img.shields.io/spack/v/py-brian2)](https://packages.spack.io/package.html?name=py-brian2)
38 -[![AUR version](https://img.shields.io/aur/version/python-brian2)](https://aur.archlinux.org/packages/python-brian2)
39 -![Docker Image Version](https://img.shields.io/docker/v/briansimulator/brian?label=docker%20image)
40 -
41 -[![Docker Pulls](https://img.shields.io/docker/pulls/briansimulator/brian)](https://hub.docker.com/r/briansimulator/brian)
42 -[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17819110.svg)](https://zenodo.org/doi/10.5281/zenodo.17819110)
43 -[![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)
44 -[![Software Heritage (release)](https://archive.softwareheritage.org/badge/swh:1:rel:ff0b5fbadc5e8fd60fedf9caed3cc8b5bcff7a40/)](https://archive.softwareheritage.org/swh:1:rel:ff0b5fbadc5e8fd60fedf9caed3cc8b5bcff7a40;origin=https://github.com/brian-team/brian2;visit=swh:1:snp:01aeb724a5cab78b5f9dda344ea77d7a39ef56dd)
45 -
46 -[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
47 -[![Discourse topics](https://img.shields.io/discourse/topics?server=https%3A%2F%2Fbrian.discourse.group)](https://brian.discourse.group)
48 -[![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)
49 -[![Neuromorphic Computing](https://img.shields.io/badge/Collaboration_Network-Open_Neuromorphic-blue)](https://open-neuromorphic.org/neuromorphic-computing/)
50 -
51 -
52 -[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
53 -[![SPEC 0 — Minimum Supported Dependencies](https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811&color=%235CA038)](https://scientific-python.org/specs/spec-0000/)
54 +PyPI version: <https://pypi.python.org/pypi/Brian2>
55 +Conda version: <https://anaconda.org/conda-forge/brian2>
56 +Debian package: <https://packages.debian.org/testing/python3-brian>
57 +Fedora package: <https://packages.fedoraproject.org/pkgs/python-brian2/python3-brian2/>
58 +Spack: <https://packages.spack.io/package.html?name=py-brian2>
59 +AUR version: <https://aur.archlinux.org/packages/python-brian2>
60 +
61 +Docker Pulls: <https://hub.docker.com/r/briansimulator/brian>
62 +DOI: <https://doi.org/10.5281/zenodo.14736290>
63 +Software Heritage (repository): <https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/brian-team/brian2>
64 +Software Heritage (release): <https://archive.softwareheritage.org/swh:1:rel:fcbc6ab6be25a548a0f04923e6e02573826b2723;origin=https://github.com/brian-team/brian2;visit=swh:1:snp:2b089b3871f9a248db80d55a45bff37fb3fb4c23>
65 +
66 +Contributor Covenant: <CODE_OF_CONDUCT.md>
67 +Discourse topics: <https://brian.discourse.group>
68 +Discourse chat: <https://brian.discourse.group/chat>
69 +code style: black: <https://github.com/psf/black>
70
71 ## Quickstart
72 -Try out Brian on the [mybinder](https://mybinder.org/) service:
73 -
74 -[![mybinder](https://static.mybinder.org/badge.svg)](https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=index.ipynb)
75 +Try out Brian on the [mybinder](https://mybinder.org/) service: <https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=index.ipynb>
76
77 ## Dependencies
78 The following packages need to be installed to use Brian 2 (cf. [`pyproject.toml`](pyproject.toml)):
79 @@ -71,10 +63,3 @@
80
81 * pytest >= 8
82 * pytest-xdist (optional)
83 -
84 -## Testing status for master branch
85 -
86 -[![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)
87 -[![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)
88 -[![Test coverage](https://img.shields.io/coveralls/brian-team/brian2/master.svg)](https://coveralls.io/r/brian-team/brian2?branch=master)
89 -[![Documentation Status](https://readthedocs.org/projects/brian2/badge/?version=stable)](https://brian2.readthedocs.io/en/stable/?badge=stable)
90 --- brian.orig/docs_sphinx/index.rst
91 +++ brian/docs_sphinx/index.rst
92 @@ -17,7 +17,7 @@
93 install Brian, using the Binder service (note: sometimes this service is down
94 or running slowly):
95
96 - .. image:: http://mybinder.org/badge.svg
97 + .. image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
98 :target: http://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=demo.ipynb
99
100 Once you have a feel for what is involved in using Brian, we recommend you
101 --- brian.orig/brian2/sphinxext/generate_examples.py
102 +++ brian/brian2/sphinxext/generate_examples.py
103 @@ -144,7 +144,7 @@
104 note = f"""
105 .. only:: html
106
107 - .. |launchbinder| image:: http://mybinder.org/badge.svg
108 + .. |launchbinder| image:: file:///usr/share/doc/python-brian-doc/docs/badge.svg
109 .. _launchbinder: https://mybinder.org/v2/gh/brian-team/brian2-binder/master?filepath=examples/{exname.replace(".", "/")}.ipynb
110
111 .. note::