From f7ecbff5b4ce68e5b396a74db11f3180d34abd0f Mon Sep 17 00:00:00 2001 From: Blaise deB Frederick Date: Mon, 5 Aug 2024 17:41:06 -0400 Subject: [PATCH] Update to new install standard --- pyproject.toml | 63 ++++++++++++++++++++++++++++++++++++++++++++++++-- refresh | 4 ++-- 2 files changed, 63 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3c2d975..0689eec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,66 @@ classifiers = [ 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', +] +requires-python = '>=3.8' +dependencies = [ + 'numpy', + 'scipy', + 'scikit-learn', + 'matplotlib', + 'statsmodels', + 'nibabel', + 'versioneer', +] +dynamic = ['version'] + +[project.urls] +'Homepage' = 'https://github.com/bbfrederick/capcalc' +'Bug Tracker' = 'https://github.com/bbfrederick/capcalc/issues' +'Repository' = 'https://github.com/bbfrederick/capcalc.git' +'Documentation' = 'https://capcalc.readthedocs.io' +'Changelog' = 'https://github.com/bbfrederick/capcalc/blob/main/CHANGELOG.md' + +[project.optional-dependencies] +test = [ + 'codecov', + 'coverage', + 'coveralls', + 'flake8-black', + 'pytest', + 'pytest-cov', +] +doc = [ + 'sphinx', + 'sphinx_rtd_theme', + 'sphinx-argparse', + 'sphinx-gallery', + 'm2r', + 'numpydoc', + 'recommonmark', + 'mistune', +] + +[tool.setuptools] +include-package-data = true + +[tool.setuptools.packages.find] +include = ['capcalc'] + +[tool.setuptools.package-data] +capcalc = ['capcalc/*.py', 'capcalc/scripts/*'] + +[tool.setuptools.dynamic] +version = {attr = "capcalc.__version__"} + +[tool.setuptools.exclude-package-data] +capcalc = ['.eggs', '.git', '.github', '.pytest_cache'] + +# Aliases +docs = ['capcalc[doc]'] +tests = ['capcalc[test]'] +all = ['capcalc[docs,tests]'] + [tool.black] line-length = 99 @@ -46,7 +106,7 @@ exclude = ''' ''' [tool.isort] -profile = "black" +profile = 'black' multi_line_output = 3 [tool.versioneer] @@ -56,4 +116,3 @@ versionfile_source = "capcalc/_version.py" versionfile_build = "capcalc/_version.py" tag_prefix = "" parentdir_prefix = "capcalc-" - diff --git a/refresh b/refresh index 36701bf..3e66979 100755 --- a/refresh +++ b/refresh @@ -2,5 +2,5 @@ git pull cleandirs -pip install . -rm -rf build dist capcalc.egg-info +pip install -e . +rm -rf capcalc.egg-info