| 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 |
-[](https://pypi.python.org/pypi/Brian2) |
| 34 |
-[](https://anaconda.org/conda-forge/brian2) |
| 35 |
-[](https://packages.debian.org/testing/python3-brian) |
| 36 |
-[](https://packages.fedoraproject.org/pkgs/python-brian2/python3-brian2/) |
| 37 |
-[](https://packages.spack.io/package.html?name=py-brian2) |
| 38 |
-[](https://aur.archlinux.org/packages/python-brian2) |
| 39 |
- |
| 40 |
- |
| 41 |
-[](https://hub.docker.com/r/briansimulator/brian) |
| 42 |
-[](https://zenodo.org/doi/10.5281/zenodo.17819110) |
| 43 |
-[](https://archive.softwareheritage.org/browse/origin/?origin_url=https://github.com/brian-team/brian2) |
| 44 |
-[](https://archive.softwareheritage.org/swh:1:rel:ff0b5fbadc5e8fd60fedf9caed3cc8b5bcff7a40;origin=https://github.com/brian-team/brian2;visit=swh:1:snp:01aeb724a5cab78b5f9dda344ea77d7a39ef56dd) |
| 45 |
- |
| 46 |
-[](CODE_OF_CONDUCT.md) |
| 47 |
-[](https://brian.discourse.group) |
| 48 |
-[](https://brian.discourse.group/chat) |
| 49 |
-[](https://open-neuromorphic.org/neuromorphic-computing/) |
| 50 |
- |
| 51 |
- |
| 52 |
-[](https://github.com/astral-sh/ruff) |
| 53 |
-[](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 |
-[](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 |
-[](https://github.com/brian-team/brian2/actions/workflows/testsuite.yml) |
| 87 |
-[](https://github.com/brian-team/brian2/actions/workflows/publish.yml) |
| 88 |
-[](https://coveralls.io/r/brian-team/brian2?branch=master) |
| 89 |
-[](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:: |