From 17ca7f896222b40df0e1fac3b68b570fb09aa002 Mon Sep 17 00:00:00 2001 From: Pete R Jemian Date: Mon, 3 Feb 2025 18:07:11 -0600 Subject: [PATCH] PKG move requirements into pyproject.toml --- .github/workflows/docs.yml | 2 +- docs/requirements.txt | 9 --------- docs/source/testing.rst | 2 +- pyproject.toml | 24 ++++++++++++++++++++++++ requirements-dev.txt | 6 ------ 5 files changed, 26 insertions(+), 17 deletions(-) delete mode 100644 docs/requirements.txt delete mode 100644 requirements-dev.txt diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e48c4cf..8e536e4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -49,7 +49,7 @@ jobs: python-version: "3.11" - name: Install Sphinx build requirements - run: pip install -r ./docs/requirements.txt + run: pip install .[doc] - name: Install our package run: pip install --no-deps -e . -vv diff --git a/docs/requirements.txt b/docs/requirements.txt deleted file mode 100644 index 06702f3..0000000 --- a/docs/requirements.txt +++ /dev/null @@ -1,9 +0,0 @@ -coverage -coveralls -pydata-sphinx-theme -pytz -setuptools-scm -sphinx -sphinx-design -sphinx-tabs -tzdata diff --git a/docs/source/testing.rst b/docs/source/testing.rst index 9e04aa1..8a48ef3 100644 --- a/docs/source/testing.rst +++ b/docs/source/testing.rst @@ -24,4 +24,4 @@ or .. code:: bash - pip install -r ./requirements-dev.txt + pip install -.[all] diff --git a/pyproject.toml b/pyproject.toml index 01e0038..537914e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,30 @@ dependencies = [ "tiled", ] +[project.optional-dependencies] +dev = [ + "pydata-sphinx-theme", + "pytest", + "pytest-cov", + "pytest-qt", + "sphinx", + "sphinx-tabs", +] + +doc = [ + "coverage", + "coveralls", + "pydata-sphinx-theme", + "pytz", + "setuptools-scm", + "sphinx", + "sphinx-design", + "sphinx-tabs", + "tzdata", +] + +all = ["gemviz[dev]"] + [project.urls] "Homepage" = "https://github.com/BCDA-APS/gemviz" "Bug Tracker" = "https://github.com/BCDA-APS/gemviz/issues" diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index ecf5987..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,6 +0,0 @@ -pydata-sphinx-theme -pytest -pytest-cov -pytest-qt -sphinx -sphinx-tabs