Skip to content

Commit

Permalink
Move test-only dependencies out of requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
llimeht committed Dec 8, 2024
1 parent 33ff4e0 commit df719e7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ jobs:
### Run tests (if enabled)

- name: Install test dependencies
if: ${{ matrix.tests }}
run: |
python -m pip install -r build_tools/requirements-test.txt
- name: Test with pytest
if: ${{ matrix.tests }}
env:
Expand Down
5 changes: 5 additions & 0 deletions build_tools/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pytest
pytest_qt
pytest-mock
ausaxs @ git+https://github.com/SasView/AUSAXS/
unittest-xml-reporting
6 changes: 1 addition & 5 deletions build_tools/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dominate
h5py
html2text
html5lib
importlib-resources
importlib-resources;python_version<"3.9"
ipython
jsonschema
lxml
Expand All @@ -20,9 +20,6 @@ pylint
pyopengl
pyparsing
PySide6
pytest
pytest_qt
pytest-mock
pytools
qtconsole
scipy
Expand All @@ -32,7 +29,6 @@ superqt
tinycc
twisted
uncertainties
unittest-xml-reporting
xhtml2pdf
zope

Expand Down
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,19 @@ keywords = [
[project.urls]
homepage = "http://sasview.org"


[project.optional-dependencies]
test = [
"pytest",
]


[project.scripts]
sasview = "sas.qtgui.MainWindow.MainWindow:run_sasview"


[tool.hatch.metadata.hooks.requirements_txt]
files = [ "build_tools/requirements.txt" ]

[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
test = [ "build_tools/requirements-test.txt" ]

[tool.hatch.version]
path = "src/sas/system/version.py"


[tool.hatch.build.targets.sdist]
include = [
"build_tools",
Expand Down

0 comments on commit df719e7

Please sign in to comment.