From a7bc7dcfa44fdc62c65dd9da9c4f4dea656362c9 Mon Sep 17 00:00:00 2001 From: Stuart Prescott Date: Wed, 3 Jun 2026 22:29:47 +1000 Subject: [PATCH] Remove non-runtime dependencies from requirements.txt Closes: #211 --- README.md | 5 +++++ pyproject.toml | 1 + requirements-dev.txt | 8 ++++++++ requirements-test.txt | 3 +++ requirements.txt | 12 ------------ 5 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 requirements-dev.txt diff --git a/README.md b/README.md index 65069fe02..98b4dbc24 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ To run sasdata from the source, create a python environment using python 3.10 or $ conda activate sasdata (sasdata) $ python -m pip install -e . +If you are wanting to work on the development of `sasdata`, then the packages to run +unit tests and build documentation can be installed with:: + + $ python -m pip install -r requirements-dev.txt + ## Data Formats The `Loader()` class is directly callable so a transient call can be made to the class or, for cases where repeated calls diff --git a/pyproject.toml b/pyproject.toml index 71b1b2cff..a9d988bc4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,7 @@ files = [ "requirements.txt" ] [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] test = [ "requirements-test.txt" ] +dev = [ "requirements-dev.txt" ] [tool.hatch.version] diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 000000000..203f58e0f --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,8 @@ +-r requirements-test.txt + +# Documentation (future) +sphinx +html5lib + +# Other stuff +pre-commit diff --git a/requirements-test.txt b/requirements-test.txt index e079f8a60..44b1276b0 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1 +1,4 @@ +# Unit testing pytest +unittest-xml-reporting +matplotlib diff --git a/requirements.txt b/requirements.txt index 463703b10..472cc9d73 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,15 +5,3 @@ lxml # Calculation numpy scipy - -# Unit testing -pytest -unittest-xml-reporting - -# Documentation (future) -sphinx -html5lib - -# Other stuff -matplotlib -pre-commit