From b863180c1b8fa21b556c3d653f6daee536003bd8 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 27 May 2024 17:28:47 +0200 Subject: [PATCH] :sparkles: switch to dynamic versioning based on latest tag - keep track of intermediate versions --- pyproject.toml | 46 +++++++++++++++++++++++++++++++++++++++++++++- setup.cfg | 49 ------------------------------------------------- 2 files changed, 45 insertions(+), 50 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 008c8e4..1b2e9f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,48 @@ +[project] +name = "njab" +authors = [{ name = "Henry Webel", email = "henry.webel@cpr.ku.dk" }] +description = "not Just Another Biomarker" +readme = "README.md" +requires-python = ">=3.8" +keywords = ["bioinformatics", "biomarker"] +license = { file = "LICENSE" } +classifiers = [ + "License :: OSI Approved :: MIT License", + "Intended Audience :: Healthcare Industry", + "Intended Audience :: Science/Research", + "Programming Language :: Python :: 3", + "Topic :: Scientific/Engineering :: Bio-Informatics", +] +dependencies = [ + "omegaconf", + "lifelines", + "numpy", + "pandas", + "scikit-learn", + "statsmodels", + "umap-learn", + "matplotlib", + "mrmr_selection", + "pingouin", + "seaborn", +] +dynamic = ["version"] + +[project.optional-dependencies] +docs = [ + "sphinx", + "sphinx-book-theme", + "myst-nb", + "ipywidgets", + "sphinx-new-tab-link!=0.2.2", +] + +[project.urls] +"Bug Tracker" = "https://github.com/RasmussenLab/njab/issues" +"Homepage" = "https://github.com/RasmussenLab/njab" + [build-system] -requires = ["setuptools>=42", "wheel"] build-backend = "setuptools.build_meta" +requires = ["setuptools>=64", "setuptools_scm>=8"] +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg index 1e8bb9a..412b0d9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,52 +1,3 @@ -[metadata] -name = njab -version = 0.0.6 -description = not Just Another Biomarker -long_description = file: README.md -long_description_content_type = text/markdown -author = Henry Webel -author_email = "Henry Webel" -license = MIT -license_files = LICENSE -classifiers = - License :: OSI Approved :: MIT License - Intended Audience :: Healthcare Industry - Intended Audience :: Science/Research - Programming Language :: Python :: 3 - Topic :: Scientific/Engineering :: Bio-Informatics - -[options] -requires_python = ">=3.8" -package_dir = - =src -packages = find: -include_package_data = False -install_requires = - omegaconf - lifelines - numpy - pandas - scikit-learn - statsmodels - umap-learn - matplotlib - mrmr_selection - pingouin - seaborn - -[options.extras_require] -docs = - sphinx - sphinx-book-theme - myst-nb - ipywidgets - sphinx-new-tab-link!=0.2.2 - -[options.packages.find] -where = src -exclude = - test* - [yapf] based_on_style = pep8