[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "dsiunits"  # Ensure this is correctly specified
version = "2.5.2"
description = "This is a Python module for handling the SI units as objects in Python, parsing them from strings and converting them to Latex and Unicode, as well as performing math operations and calculating scale factors."
authors = [
    { name="Benedikt Seeger", email="benedikt.seeger@ptb.de" },
    { name="Vanessa Stehr", email="vanessa.stehr@ptb.de" }
]
license = { file="LICENSE" }
readme = "README.md"
requires-python = ">=3.7"
classifiers=[
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
    "Operating System :: OS Independent",
]


[project.optional-dependencies]
testing = [
    "pytest>=8.0",
    "requests>=2.0",
    # For Python 3.9 and up, use pytest-cov>=6.0
    'pytest-cov>=6.0; python_version >= "3.9"',
    # For older versions, use an older version of pytest-cov or omit it:
    'pytest-cov; python_version < "3.9"' # we take any we get 
]