From 229947ff07290592d3582d0eba187ce545faf424 Mon Sep 17 00:00:00 2001 From: jorenham Date: Fri, 18 Oct 2024 02:01:18 +0200 Subject: [PATCH] loosen scipy and numpy version restrictions, and make scipy optional --- poetry.lock | 5 ++++- pyproject.toml | 35 +++++++++++++++++++---------------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/poetry.lock b/poetry.lock index 67039dc3..0faac023 100644 --- a/poetry.lock +++ b/poetry.lock @@ -638,7 +638,10 @@ platformdirs = ">=3.9.1,<5" docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] +[extras] +scipy = ["scipy"] + [metadata] lock-version = "2.0" python-versions = "^3.10.1" -content-hash = "6a41af8dca93fb2ffaa3511b9e3c5189ff96bc56f2bfea1d9e8f4b4310d1c522" +content-hash = "fcf4af8eac27f6e99e3974d9cc440d31a844bf7b650e527860e7e77e19831651" diff --git a/pyproject.toml b/pyproject.toml index 59859072..c0349524 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,42 +3,45 @@ build-backend = "poetry.core.masonry.api" requires = ["poetry-core"] [tool.poetry] +name = "scipy-stubs" +description = "Typing Stubs for SciPy" +version = "1.14.1.1.dev0" authors = ["Joren Hammudoglu "] +license = "BSD-3-Clause" +readme = "README.md" +packages = [{include = "scipy-stubs"}] classifiers = [ "Development Status :: 4 - Beta", "Operating System :: OS Independent", "Typing :: Stubs Only", "Typing :: Typed", ] -description = "Typing Stubs for SciPy" -documentation = "https://github.com/jorenham/scipy-stubs?tab=readme-ov-file#scipy-stubs" -license = "BSD-3-Clause" -name = "scipy-stubs" -packages = [{include = "scipy-stubs"}] -readme = "README.md" repository = "https://github.com/jorenham/scipy-stubs/" -version = "1.14.1.1.dev0" +documentation = "https://github.com/jorenham/scipy-stubs?tab=readme-ov-file#scipy-stubs" [tool.poetry.urls] -"Bug Tracker" = "https://github.com/jorenham/scipy-stubs/issues" -"Changelog" = "https://github.com/jorenham/scipy-stubs/releases" +Issues = "https://github.com/jorenham/scipy-stubs/issues" +Changelog = "https://github.com/jorenham/scipy-stubs/releases" +Funding = "https://github.com/sponsors/jorenham" + +[tool.poetry.extras] +scipy = ["scipy"] [tool.poetry.dependencies] python = "^3.10.1" -numpy = ">=1.25" -scipy = ">=1.14.1" optype = "^0.6.1" - -[tool.poetry.group.lint.dependencies] -basedmypy = "^2.6.0" -basedpyright = "^1.19.0" -ruff = "^0.7.0" +scipy = {version = ">=1.10", optional = true} [tool.poetry.group.dev.dependencies] +scipy = "1.14.1" poethepoet = "^0.29.0" pre-commit = "^4.0.1" tox = "^4.23.0" +[tool.poetry.group.lint.dependencies] +basedmypy = "^2.6.0" +basedpyright = "^1.19.0" +ruff = "^0.7.0" [tool.poetry.group.codegen] optional = true