Skip to content

Commit

Permalink
TVB-3109 created pyproject.toml for tvb packages
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianciu committed Nov 15, 2024
1 parent 493328c commit 2adb861
Show file tree
Hide file tree
Showing 15 changed files with 783 additions and 434 deletions.
30 changes: 20 additions & 10 deletions tvb_bin/setup.py → tvb_bin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,25 @@
# https://www.thevirtualbrain.org/tvb/zwei/neuroscience-publications
#
#
import shutil
from setuptools import setup, find_packages

setup(
name='tvb_bin',
packages=find_packages(),
version="2.0",
license="GPL-3.0-or-later",
author="TVB Team"
)

shutil.rmtree('tvb_bin.egg-info', True)

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "tvb-bin"
version = "2.0"
license = "GPL-3.0-or-later"
authors = [
{ name = "TVB Team" },
]

[tool.hatch.version]
path = "tvb_bin/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/tvb_bin",
]
36 changes: 24 additions & 12 deletions tvb_build/setup.py → tvb_build/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
#
# TheVirtualBrain-Framework Package. This package holds all Data Management, and
# TheVirtualBrain-Framework Package. This package holds all Data Management, and
# Web-UI helpful to run brain-simulations. To use it, you also need to download
# TheVirtualBrain-Scientific Package (for simulators). See content of the
# documentation-folder for more details. See also http://www.thevirtualbrain.org
Expand All @@ -24,17 +24,29 @@
#
#

import shutil
from setuptools import setup, find_packages


setup(
name='tvb_build',
packages=find_packages(),
version="2.0",
license="GPL-3.0-or-later",
author="TVB Team",
install_requires=['tvb-library', 'tvb-framework', 'tvb-data']
)
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

shutil.rmtree('tvb_build.egg-info', True)
[project]
name = "tvb-build"
version = "2.0"
license = "GPL-3.0-or-later"
authors = [
{ name = "TVB Team" },
]
dependencies = [
"tvb-data",
"tvb-framework",
"tvb-library",
]

[tool.hatch.version]
path = "tvb_build/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/tvb_build",
]
75 changes: 75 additions & 0 deletions tvb_contrib/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# -*- coding: utf-8 -*-
#
#
# TheVirtualBrain-Contributors Package. This package holds simulator extensions.
# See also http://www.thevirtualbrain.org
#
# (c) 2012-2024, Baycrest Centre for Geriatric Care ("Baycrest") and others
#
# This program is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with this
# program. If not, see <http://www.gnu.org/licenses/>.
#
#
# CITATION:
# When using The Virtual Brain for scientific publications, please cite it as explained here:
# https://www.thevirtualbrain.org/tvb/zwei/neuroscience-publications
#
#


[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "tvb-contrib"
version = "2.9.2"
description = "A package with TVB contributed additions to the simulator, useful for scripting."
readme = "README.rst"
license = { file = "LICENSE" }
authors = [
{ name = "Stuart Knock" },
{ name = "Dionysios Perdikis" },
{ name = "Paula Sanz Leon" },
{ name = "Bogdan Valean" },
{ name = "Marmaduke Woodman" },
{ name = "Michiel van der Vlag" },
]
maintainers = [
{ name = "TVB Admin", email = "[email protected]" }
]
keywords = [
"brain",
"contrib",
"neuroscience",
"simulator",
"tvb",
]
dependencies = [
"lxml",
"pylems",
"scikit-learn",
"tvb-library",
"xarray",
]

[project.urls]
Download = "https://github.com/the-virtual-brain/tvb-root"
Homepage = "https://www.thevirtualbrain.org"

[tool.hatch.version]
path = "tvb/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/tvb",
]

[tool.hatch.build.targets.wheel]
packages = ["tvb"]
51 changes: 0 additions & 51 deletions tvb_contrib/setup.py

This file was deleted.

138 changes: 138 additions & 0 deletions tvb_framework/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# -*- coding: utf-8 -*-
#
#
# TheVirtualBrain-Framework Package. This package holds all Data Management, and
# Web-UI helpful to run brain-simulations. To use it, you also need to download
# TheVirtualBrain-Scientific Package (for simulators). See content of the
# documentation-folder for more details. See also http://www.thevirtualbrain.org
#
# (c) 2012-2024, Baycrest Centre for Geriatric Care ("Baycrest") and others
#
# This program is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software Foundation,
# either version 3 of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
# You should have received a copy of the GNU General Public License along with this
# program. If not, see <http://www.gnu.org/licenses/>.
#
#
# CITATION:
# When using The Virtual Brain for scientific publications, please cite it as explained here:
# https://www.thevirtualbrain.org/tvb/zwei/neuroscience-publications
#
#


[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "tvb-framework"
version = "2.9.2"
description = "A package for performing whole brain simulations"
readme = "README.rst"
license = { file = "LICENSE" }
requires-python = ">=3.8"
authors = [
{ name = "Mihai Andrei" },
{ name = "Lia Domide" },
{ name = "Stuart Knock" },
{ name = "Bogdan Neacsa" },
{ name = "Paula Prodan" },
{ name = "Paula Sansz Leon" },
{ name = "Marmaduke Woodman" },
]
maintainers = [
{ name = "TVB Admin", email = "[email protected]" }
]
keywords = [
"animal",
"brain",
"delay",
"dynamics",
"human",
"models",
"neuronal",
"neuroscience",
"simulator",
"tvb",
]
classifiers = [
"Development Status :: 6 - Mature",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"alembic",
"bctpy",
"cherrypy",
"docutils",
"flask",
"flask-restx",
"formencode",
"gevent",
"h5py",
"Jinja2",
"matplotlib",
"nibabel",
"numpy<2.0",
"pandas",
"Pillow",
"psutil",
"python-keycloak",
"requests",
"requests-toolbelt>=0.10",
"scikit-learn",
"scipy",
"siibra",
"simplejson",
"six",
"sqlalchemy",
"tvb-data",
"tvb-gdist",
"tvb-library",
"tvb-storage",
"werkzeug",
]

[project.optional-dependencies]
extra = [
"allensdk",
]
hpc = [
"elasticsearch",
"pyunicore",
]
postgres = [
"psycopg2",
]
test = [
"BeautifulSoup4",
"pytest",
"pytest-benchmark",
"pytest-mock",
]

[project.urls]
Download = "https://github.com/the-virtual-brain/tvb-root"
Homepage = "https://www.thevirtualbrain.org"

[tool.hatch.build.targets.sdist]
include = [
"/tvb",
]
exclude = [
'tvb.interfaces.rest.bids_monitor', 'tvb.interfaces.rest.bids_monitor.*',
'tvb.interfaces.rest.client', 'tvb.interfaces.rest.client.*']


[tool.hatch.build.targets.wheel]
packages = ["tvb"]
Loading

0 comments on commit 2adb861

Please sign in to comment.