From 5b8d83edccb259a9f27f51097c340faec68c0e77 Mon Sep 17 00:00:00 2001 From: jpaillard Date: Tue, 17 Dec 2024 18:31:57 +0100 Subject: [PATCH] switch from setup.py to pyproject.toml --- pyproject.toml | 27 +++++++++++++++++++++++++++ requirements.txt | 7 ------- setup.cfg | 10 ---------- setup.py | 6 ------ 4 files changed, 27 insertions(+), 23 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt delete mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..5b30512 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,27 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "green" +version = "0.1" +readme = "README.md" +license = {file = "LICENSE"} +requires-python = ">=3.6" + +dependencies = [ + "torch>=1.9", + "geotorch==0.3.0", + "mne==1.8.0", + "lightning==2.4.0", + "scikit-learn", + "pandas" +] +authors = [ + {name = "Joseph Paillard", email = "joseph.paillard@roche.com"}, +] + +[project.optional-dependencies] +test = [ + "pytest" +] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5fe142f..0000000 --- a/requirements.txt +++ /dev/null @@ -1,7 +0,0 @@ -torch -geotorch -mne -lightning -scikit-learn -pandas -pytest \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index f99feaa..0000000 --- a/setup.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[metadata] -name = green -version = 0.0 - -[options] -packages = green - -[options.extras_require] -test = - pytest diff --git a/setup.py b/setup.py deleted file mode 100644 index 3ba8515..0000000 --- a/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -from setuptools import find_packages -from setuptools import setup - -setup( - packages=find_packages(exclude=['tests']), -)