Skip to content

Commit

Permalink
Switched to toml and setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenwacker committed Jul 12, 2024
1 parent 84e9a8d commit 4a56679
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ms_mint/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from setuptools_scm import get_version

__version__ = get_version(root='..', relative_to=__file__)
61 changes: 61 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"

[project]
name = "ms-mint"
description = "Metabolomics Integrator (Mint)"
readme = "README.md"
requires-python = ">=3.8"
authors = [
{name = "Soren Wacker", email = "[email protected]"}
]
urls = { "Homepage" = "https://github.com/LewisResearchGroup/ms-mint" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
dependencies = [
"six",
"jsonschema",
"entrypoints",
"pygments",
"pexpect",
"decorator",
"pillow",
"lxml",
"pandas",
"matplotlib",
"seaborn",
"pyteomics",
"scikit-learn",
"molmass",
"pymzml",
"plotly",
"colorlover",
"tqdm",
"ipywidgets",
"ipyfilechooser",
"openpyxl",
"pyarrow",
"tables",
"h5py",
"hdf5plugin"
]
dynamic = ["version"]

[project.scripts]
ms-mint-convert = "scripts.ms_mint_convert:main"

[tool.setuptools]
packages = { find = { where = ["ms_mint"] } }
include-package-data = true

[tool.setuptools_scm]
version_scheme = "guess-next-dev"
local_scheme = "dirty-tag"

[tool.pytest]
addopts = "--maxfail=1 --disable-warnings"
testpaths = ["tests"]
4 changes: 4 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
setuptools_scm
pytest
pytest-cov
coverage-badge

0 comments on commit 4a56679

Please sign in to comment.