| 1 |
[project] |
| 2 |
name = "Brian2" |
| 3 |
authors = [ |
| 4 |
{name = 'Marcel Stimberg'}, |
| 5 |
{name = 'Dan Goodman'}, |
| 6 |
{name = 'Benjamin Evans'}, |
| 7 |
{name = 'Romain Brette'} |
| 8 |
] |
| 9 |
requires-python = ">=3.12" |
| 10 |
dependencies = [ |
| 11 |
"numpy>=2.0.0", |
| 12 |
'sympy>=1.2', |
| 13 |
'pyparsing>=3,!=3.2.4', |
| 14 |
'jinja2>=2.7', |
| 15 |
'py-cpuinfo;platform_system=="Windows"', |
| 16 |
'setuptools>=61', |
| 17 |
'packaging', |
| 18 |
] |
| 19 |
dynamic = ["version", "readme"] |
| 20 |
description = 'A clock-driven simulator for spiking neural networks' |
| 21 |
keywords = ['computational neuroscience', 'simulation', 'neural networks', 'spiking neurons', 'biological neural networks', 'research'] |
| 22 |
classifiers = [ |
| 23 |
'Development Status :: 5 - Production/Stable', |
| 24 |
'Intended Audience :: Science/Research', |
| 25 |
'Natural Language :: English', |
| 26 |
'Operating System :: OS Independent', |
| 27 |
'Programming Language :: Python', |
| 28 |
'Programming Language :: Python :: 3', |
| 29 |
'Topic :: Scientific/Engineering :: Bio-Informatics' |
| 30 |
] |
| 31 |
license = 'CECILL-2.1' |
| 32 |
license-files = ["LICENSE", "AUTHORS", "CONTRIBUTORS"] |
| 33 |
|
| 34 |
[project.optional-dependencies] |
| 35 |
test = ['pytest>=8', 'pytest-xdist>=1.22.3', 'pytest-cov>=2.0', 'pytest-timeout'] |
| 36 |
docs = ['sphinx>=7', 'ipython>=5', 'sphinx-tabs'] |
| 37 |
|
| 38 |
[project.urls] |
| 39 |
Homepage = 'https://briansimulator.org' |
| 40 |
Documentation ='https://brian2.readthedocs.io/' |
| 41 |
Source = 'https://github.com/brian-team/brian2' |
| 42 |
Tracker = 'https://github.com/brian-team/brian2/issues' |
| 43 |
|
| 44 |
[tool.setuptools] |
| 45 |
zip-safe = false |
| 46 |
include-package-data = true |
| 47 |
|
| 48 |
[tool.setuptools.packages.find] |
| 49 |
include = ["brian2*"] |
| 50 |
|
| 51 |
[tool.setuptools.dynamic] |
| 52 |
readme = {file = 'README.md', content-type = "text/markdown"} |
| 53 |
|
| 54 |
[tool.setuptools_scm] |
| 55 |
version_scheme = 'post-release' |
| 56 |
local_scheme = 'no-local-version' |
| 57 |
write_to = 'brian2/_version.py' |
| 58 |
tag_regex = '^(?P<version>\d+(?:\.\d+){0,2}[^\+]*(?:\+.*)?)$' |
| 59 |
fallback_version = 'unknown' |
| 60 |
|
| 61 |
[build-system] |
| 62 |
requires = [ |
| 63 |
"setuptools>=61", |
| 64 |
# By building against numpy 2.0, we make sure that the wheel is compatible with |
| 65 |
# both numpy 2.0 and numpy>=1.23 |
| 66 |
"numpy>=2.0.0rc1", |
| 67 |
"wheel", |
| 68 |
"Cython", |
| 69 |
"setuptools_scm[toml]>=6.2" |
| 70 |
] |
| 71 |
build-backend = "setuptools.build_meta" |
| 72 |
|
| 73 |
[tool.ruff.lint] |
| 74 |
select = [ |
| 75 |
# pycodestyle |
| 76 |
"E", |
| 77 |
# Pyflakes |
| 78 |
"F", |
| 79 |
# pyupgrade |
| 80 |
"UP", |
| 81 |
# flake8-bugbear |
| 82 |
"B", |
| 83 |
# isort |
| 84 |
"I", |
| 85 |
] |
| 86 |
# Lambda functions are ok (E731), |
| 87 |
# long lines are already handled by the formatter (E501) |
| 88 |
# For LaTeX code, percent format or `.format` is often the most readable (UP031, UP032) |
| 89 |
# TODO: Would be good practice to set stacklevel for warnings (B028) |
| 90 |
# False positives when using a name to test for its existence (B018) |
| 91 |
extend-ignore = ["E731", "E501", "UP031", "UP032", "B028", "B018"] |
| 92 |
|
| 93 |
[tool.ruff.lint.pydocstyle] |
| 94 |
convention = "numpy" |