diff --git a/.codespellrc b/.codespellrc deleted file mode 100644 index f898a0f3..00000000 --- a/.codespellrc +++ /dev/null @@ -1,4 +0,0 @@ -[codespell] -skip = .git,*.pdf,*.svg,analysis_pipelines_full_descriptions.tsv -# softwares - key in data structures etc -ignore-words-list = te,fpr,fwe,softwares diff --git a/setup.cfg b/.flake8 similarity index 100% rename from setup.cfg rename to .flake8 diff --git a/.github/workflows/pipeline_status.yml b/.github/workflows/pipeline_status.yml index 195dac35..e8c4ad60 100644 --- a/.github/workflows/pipeline_status.yml +++ b/.github/workflows/pipeline_status.yml @@ -56,7 +56,7 @@ jobs: git config user.name github-actions git config user.email github-actions@github.com - # Test if there are changes in the repository before commiting + # Test if there are changes in the repository before committing if [[ $(git diff --name-only) ]]; then git add . git commit -m "Pipeline status updated" diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 00000000..c4fd6230 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include narps_open/utils/configuration/*.toml +include narps_open/data/description/*.tsv \ No newline at end of file diff --git a/environment.yml b/environment.yml index e2fa4b95..2a9393fa 100644 --- a/environment.yml +++ b/environment.yml @@ -4,12 +4,7 @@ channels: - defaults dependencies: - python=3.8.0 - - pip - - traits - - jupyter - - nilearn - - graphviz - - nipype - - scikit-image + - pip==23.2.1 - pip: - - matplotlib + - . + diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..641c2dbf --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,59 @@ +[build-system] +build-backend = "hatchling.build" +requires = ["hatchling"] + + +[project] +name = 'narps_open' +version = '0.1.0' +description = 'The NARPS open pipelines project: a codebase reproducing the 70 pipelines of the NARPS study (Botvinik-Nezer et al., 2020).' +readme = "README.md" +classifiers = [ + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.8' +] +requires-python = '>=3.8,<3.12' +dependencies = [ + 'importlib_resources>=5.10.2,<5.11', + 'tomli>=2.0.1,<2.1', + 'nilearn==0.10.1', + 'jupyterlab', + 'graphviz', + 'traits==6.3.0', + 'nipype==1.8.6', + 'scikit-image==0.21.0', + 'matplotlib==3.7.3', +] + + +[project.urls] +Homepage = 'https://github.com/Inria-Empenn/narps_open_pipelines' +"Bug trakcer" = 'https://github.com/Inria-Empenn/narps_open_pipelines/issues' +Source = 'https://github.com/Inria-Empenn/narps_open_pipelines' + + +[project.optional-dependencies] +tests= [ + 'pylint', + 'pytest', + 'pytest-cov', + 'pytest-helpers-namespace', + 'pytest-mock', + 'checksumdir' +] + + +[tool.pytest.ini_options] +addopts = "--strict-markers" +testpaths =["tests"] +markers = [ + "pipeline_test: marks tests that execute complete pipelines", + "unit_test: marks unit tests" +] + + +[tool.codespell] +skip = ".git,*.pdf,*.svg,analysis_pipelines_full_descriptions.tsv,data,env,run" +# softwares - key in data structures etc +ignore-words-list = "te,fpr,fwe,softwares" \ No newline at end of file diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 14522dc7..00000000 --- a/pytest.ini +++ /dev/null @@ -1,7 +0,0 @@ -[pytest] -addopts = --strict-markers -testpaths = - tests -markers = - pipeline_test: marks tests that execute complete pipelines - unit_test: marks unit tests diff --git a/setup.py b/setup.py deleted file mode 100644 index 7d961c60..00000000 --- a/setup.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/python -# coding: utf-8 - -""" -Allow the project to be installed as a local package, using : - python -m pip install . - or - python -m pip install -e . -The -e option stands for editable, which allows to change the -source code of the package without having to reinstall it. Using this option -will add the current directory (.) to the system path. -""" - -from setuptools import setup, find_packages - -requires = [ - 'importlib_resources>=5.10.2,<5.11', - 'tomli>=2.0.1,<2.1', - 'networkx>=2.0,<3.0', # a workaround to nipype's bug (issue 3530) - 'nilearn>=0.10.0,<0.11', - 'nipype', - 'pandas' -] -extras_require = { - 'tests': [ - 'pylint', - 'pytest', - 'pytest-cov', - 'pytest-helpers-namespace', - 'pytest-mock', - 'checksumdir' - ] -} - -setup( - name = 'narps_open', - version = '0.1.0', - description = 'The NARPS open pipelines project :\ - a codebase reproducing the 70 pipelines of the NARPS study (Botvinik-Nezer et al., 2020).', - long_description = 'file: README.md', - long_description_content_type = 'text/markdown', - author = '', - author_email = '', - url = 'https://github.com/Inria-Empenn/narps_open_pipelines', - - include_package_data = True, - python_requires = '>=3.8,<3.12', - install_requires = requires, - extras_require = extras_require, - classifiers = [ - 'Programming Language :: Python', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8' - ], - project_urls = { - 'Bug Tracker': 'https://github.com/Inria-Empenn/narps_open_pipelines/issues', - 'Source': 'https://github.com/Inria-Empenn/narps_open_pipelines', - }, - packages = find_packages(exclude=('tests', 'examples')), - data_files = [ - ('narps_open/utils/configuration', ['narps_open/utils/configuration/default_config.toml']), - ('narps_open/utils/configuration', ['narps_open/utils/configuration/testing_config.toml']), - ('narps_open/data/description', ['narps_open/data/description/analysis_pipelines_derived_descriptions.tsv']), - ('narps_open/data/description', ['narps_open/data/description/analysis_pipelines_full_descriptions.tsv']) - ] -) diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b