Debian Codegraph @

pyproject.toml

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