Author: Andreas Tille Last-Update: 2026-01-06 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,33 +14,25 @@ > 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/f43)](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 Image Version](https://img.shields.io/docker/v/briansimulator/brian?label=docker%20image) - -[![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.17819110.svg)](https://zenodo.org/doi/10.5281/zenodo.17819110) -[![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:ff0b5fbadc5e8fd60fedf9caed3cc8b5bcff7a40/)](https://archive.softwareheritage.org/swh:1:rel:ff0b5fbadc5e8fd60fedf9caed3cc8b5bcff7a40;origin=https://github.com/brian-team/brian2;visit=swh:1:snp:01aeb724a5cab78b5f9dda344ea77d7a39ef56dd) - -[![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) -[![Neuromorphic Computing](https://img.shields.io/badge/Collaboration_Network-Open_Neuromorphic-blue)](https://open-neuromorphic.org/neuromorphic-computing/) - - -[![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) -[![SPEC 0 — Minimum Supported Dependencies](https://img.shields.io/badge/SPEC-0-green?labelColor=%23004811&color=%235CA038)](https://scientific-python.org/specs/spec-0000/) +PyPI version: +Conda version: +Debian package: +Fedora package: +Spack: +AUR version: + +Docker Pulls: +DOI: +Software Heritage (repository): +Software Heritage (release): + +Contributor Covenant: +Discourse topics: +Discourse chat: +code style: 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](https://mybinder.org/) service: ## Dependencies The following packages need to be installed to use Brian 2 (cf. [`pyproject.toml`](pyproject.toml)): @@ -71,10 +63,3 @@ * pytest >= 8 * 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/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 --- brian.orig/brian2/sphinxext/generate_examples.py +++ brian/brian2/sphinxext/generate_examples.py @@ -144,7 +144,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::