Skip to content

Commit

Permalink
Reorganise project layout
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion committed Jan 4, 2024
1 parent 2bfdc71 commit 4663d47
Show file tree
Hide file tree
Showing 10 changed files with 1,678 additions and 150 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pytest-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ jobs:
- name: Run pytest
run: |
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
pytest --cov openjpeg
- name: Install pydicom release and rerun pytest
run: |
pip install pydicom pylibjpeg
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
pytest --cov openjpeg
osx:
runs-on: macos-latest
Expand Down Expand Up @@ -69,12 +69,12 @@ jobs:
- name: Run pytest
run: |
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
pytest --cov openjpeg
- name: Install pydicom release and rerun pytest
run: |
pip install pydicom pylibjpeg
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
pytest --cov openjpeg
ubuntu:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -103,19 +103,19 @@ jobs:
- name: Run pytest
run: |
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
pytest --cov openjpeg
- name: Install pydicom release and rerun pytest
run: |
pip install pydicom pylibjpeg
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
pytest --cov openjpeg
- name: Switch to pydicom dev and rerun pytest (3.10+)
if: ${{ contains('3.10 3.11 3.12', matrix.python-version) }}
run: |
pip uninstall -y pydicom
pip install git+https://github.com/pydicom/pydicom
pytest --cov openjpeg --ignore=openjpeg/src/openjpeg
pytest --cov openjpeg
- name: Send coverage results
if: ${{ success() && matrix.coverage == 'coverage' }}
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@

[submodule "lib/openjpeg"]
path = lib/openjpeg
url = https://github.com/uclouvain/openjpeg
1 change: 1 addition & 0 deletions lib/openjpeg
Submodule openjpeg added at a58915
250 changes: 125 additions & 125 deletions openjpeg/_openjpeg.c

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions openjpeg/tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Unit tests for pylibjpeg-openjpeg

Dependencies
------------

Required
........
[pytest](https://docs.pytest.org/)
[pylibjpeg-data](https://github.com/pydicom/pylibjpeg-data)

Optional
........
[pylibjpeg](https://github.com/pydicom/pylibjpeg)
[pydicom](https://github.com/pydicom/pydicom)
10 changes: 10 additions & 0 deletions openjpeg/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import sys

# Add the testing data to openjpeg (if available)
try:
import ljdata as _data
globals()['data'] = _data
# Add to cache - needed for pytest
sys.modules['openjpeg.data'] = _data
except ImportError:
pass
Loading

0 comments on commit 4663d47

Please sign in to comment.