Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
239 commits
Select commit Hold shift + click to select a range
f408398
Add environment.yml
kostrykin Apr 17, 2025
0b18a91
Update CMakeLists.txt
kostrykin Apr 17, 2025
7da7935
Clean up build script
kostrykin Apr 17, 2025
575332f
Add `libopengl-devel` dependency
kostrykin Apr 17, 2025
fa4f4cf
Fix build
kostrykin Apr 17, 2025
94b1738
Clean up tests, fix linking
kostrykin Apr 17, 2025
3830bb8
Clean up `egl.Context` binding
kostrykin Apr 17, 2025
d82cafe
Drop `carna.py`
kostrykin Apr 17, 2025
1fbb588
Update settings.json
kostrykin Apr 17, 2025
1931f71
Clean up `base.Spatial` and `base.Node`
kostrykin Apr 17, 2025
a48ac2d
Implement `SpatialView` and add memory tests
kostrykin Apr 18, 2025
9605b64
Add `Node.test__attach_child__circular`
kostrykin Apr 18, 2025
5e801f8
Add `Node.test__attach_child__nonfree`
kostrykin Apr 18, 2025
5ed227d
Add `Node.test__movable`
kostrykin Apr 18, 2025
2bfb8a3
Add `Node.test__tag`
kostrykin Apr 18, 2025
ac1804e
Add `Node.test__localTransform`
kostrykin Apr 18, 2025
153276d
Add `Node.test__detach_from_parent`
kostrykin Apr 18, 2025
232fcc4
Add `CARNA_EXRA_CHECKS` environment variable
kostrykin Apr 18, 2025
255a7e7
Add `Camera` tests
kostrykin Apr 19, 2025
e0a9506
Add `Geometry` tests (incomplete)
kostrykin Apr 19, 2025
f4278ad
Add `Geometry.test__geometry_type` and `Geometry.test__features_count`
kostrykin Apr 19, 2025
96c2690
Clean up code
kostrykin Apr 19, 2025
f74843b
Add `Material` and tests
kostrykin Apr 19, 2025
a9876e0
Fix typo
kostrykin Apr 19, 2025
2e11a93
Add `Geometry.put_feature` and `Geometry.remove_feature`
kostrykin Apr 19, 2025
7ba7b6b
Add `Geometry.clear_features`
kostrykin Apr 19, 2025
221cc53
Add `Geometry.has_feature`
kostrykin Apr 19, 2025
52516b9
Clean up code
kostrykin Apr 19, 2025
07f231c
Add `ContextView`
kostrykin Apr 19, 2025
575c191
Pin `pybind11 <3`
kostrykin Apr 19, 2025
d48ca3e
Refactor structure
kostrykin Apr 19, 2025
008ea54
Add `Surface` (no tests yet)
kostrykin Apr 19, 2025
b6ad343
Add `FrameRenderer` and tests
kostrykin Apr 20, 2025
2b95b0e
Clean up test/test_egl.py
kostrykin Apr 20, 2025
4aa91bf
Add `configure_carna_log`
kostrykin Apr 20, 2025
102f4ac
Add `math`
kostrykin Apr 20, 2025
d0f209e
Add `MeshFactory`
kostrykin Apr 20, 2025
091808e
Add `OpaqueRenderingStage`
kostrykin Apr 20, 2025
db71d58
Add `CarnaRenderingTestCase`
kostrykin Apr 21, 2025
0ccb8dc
Make build directory readonly in VSCode
kostrykin Apr 21, 2025
a84fc09
Fix `Surface::end`
kostrykin Apr 21, 2025
ebe67e9
Fix tests
kostrykin Apr 21, 2025
26c70ae
Add `helpers.FrameRendererHelper`
kostrykin Apr 21, 2025
39d7947
Add `FrameRenderer.append_stage`
kostrykin Apr 21, 2025
f1dc52b
Remove extra checks (not working properly across submodules)
kostrykin Apr 21, 2025
8fbc895
Add convenience layer
kostrykin Apr 21, 2025
3f6dd38
Add `renderer` convenience function
kostrykin Apr 24, 2025
c6a1fc1
Extend spatial convenience functions
kostrykin Apr 24, 2025
a3035b1
Add RTD setup
kostrykin Apr 24, 2025
917e308
Add sphinx build to build script
kostrykin Apr 24, 2025
c2e5edb
Fix doc building
kostrykin Apr 25, 2025
30b2bfb
Update docs
kostrykin Apr 25, 2025
08808d6
Make `carna.renderer` a class instead of a function
kostrykin Apr 25, 2025
40626df
Update docs
kostrykin Apr 26, 2025
08d440e
Update integration test
kostrykin Apr 26, 2025
f07b6c9
Add `frustum` method to convenience renderer
kostrykin Apr 26, 2025
85cbe8f
Update docs
kostrykin Apr 26, 2025
fde1281
Update docs
kostrykin Apr 26, 2025
004b92b
Update docs
kostrykin Apr 26, 2025
b3880a4
Rename `configure_carna_log` to `logging`
kostrykin Apr 26, 2025
587a9a6
Add `VolumeGridHelperBase`
kostrykin Apr 26, 2025
daa797b
Add `VolumeGridHelper_IntensityVolumeUInt16`
kostrykin Apr 26, 2025
88604cf
Add `VolumeGridHelper_IntensityVolumeUInt16.intensities_role`
kostrykin Apr 26, 2025
f7e8dda
Add `VolumeGridHelper_IntensityVolumeUInt16_NormalMap3DInt8`
kostrykin Apr 26, 2025
951b15f
Add `VolumeGridHelper_IntensityVolumeUInt8`
kostrykin Apr 26, 2025
edd4739
Add `VolumeGridHelper_IntensityVolumeUInt8_NormalMap3DInt8`
kostrykin Apr 26, 2025
cdf021b
Add `VolumeGridHelper_*.create_node`
kostrykin Apr 26, 2025
aeb1cf4
Add `MaskRenderingStage` (test fail)
kostrykin Apr 26, 2025
1b00a03
Add failing `EGLContext` test case
kostrykin Apr 27, 2025
9e5916d
Fix bug in `EGLContext` d'tor (tests pass)
kostrykin Apr 27, 2025
e881f01
Add `Color` and tests
kostrykin Apr 27, 2025
9502013
Add `MaskRenderingStage` attributes, methods, and tests
kostrykin Apr 27, 2025
b61f42c
Add docs
kostrykin Apr 27, 2025
3a122f4
Add `volume` convenience function
kostrykin Apr 27, 2025
c53aeaf
Add debug build mode
kostrykin Apr 27, 2025
527d640
Fix bug with lazy data loading behaviour of `VolumeGridHelper`
kostrykin Apr 28, 2025
13010e7
Update docs
kostrykin Apr 28, 2025
10e7cd9
Update docs
kostrykin Apr 28, 2025
081e712
Add logo to docs
kostrykin Apr 28, 2025
ff325c0
Add `renderer.animation`
kostrykin Apr 28, 2025
ec990c4
Use `solid` shaders instead of `unshaded` for example materials
kostrykin Apr 28, 2025
84fe1e7
Fix `animation.render` to produce smooth animations
kostrykin Apr 28, 2025
8d3eb6c
Fix docs
kostrykin Apr 28, 2025
410c65a
Add `MIPStage` and `MIPLayer`
kostrykin Apr 28, 2025
c70983d
Fix bug in `EGLContext` (enable resource sharing)
kostrykin Apr 28, 2025
40fccc3
Add `CuttingPlanesStage`
kostrykin Apr 28, 2025
f1b66cd
Add script to install Carna development version
kostrykin Apr 30, 2025
ee31cf2
Fix install_carna_dev.bash
kostrykin Apr 30, 2025
db6a2f4
Employ `.carna-dev` in CMakeLists.txt
kostrykin May 1, 2025
864a019
Add `ColorMapView`
kostrykin May 1, 2025
45baa0d
Fix install_carna_dev.bash
kostrykin May 1, 2025
732d8c3
Add `MIPStage.color_map`
kostrykin May 1, 2025
ca5e0ab
Update test results
kostrykin May 1, 2025
72d3b0f
Add `color_map_helper` and fix tests
kostrykin May 1, 2025
e4dcad3
Update build instructions
kostrykin May 2, 2025
1b52f75
Add `carna.base.AssertionFailure`
kostrykin May 2, 2025
ba7daa8
Migrate to `Carna::base::MeshRenderingMixin`
kostrykin May 2, 2025
3a430b0
Rename `Dimensions` to `Extent` and `millimeters` to `units`
kostrykin May 2, 2025
168e4aa
Migrate build process from Carna to LibCarna
kostrykin May 5, 2025
320095e
Migrate LICENSE to MIT
kostrykin May 5, 2025
5cf5733
Migrate code from Carna to CarnaLib
kostrykin May 5, 2025
6565dfe
Add logo
kostrykin May 5, 2025
fe9b957
Add example notebook
kostrykin May 5, 2025
ff03cfd
Clean up convenience layer
kostrykin May 5, 2025
7af0b38
Add `_transform` to convenience layer
kostrykin May 5, 2025
1ac8cf3
Replace `np.bool` by `bool`
kostrykin May 5, 2025
94232ad
Add support for h264 rendering in `imshow`
kostrykin May 5, 2025
c4c842d
Always build docs from scratch
kostrykin May 5, 2025
5a0c3e0
Add examples/cthead.ipynb
kostrykin May 5, 2025
9a93bac
Import colormaps from matplotlib
kostrykin May 5, 2025
fc2b729
Add `DVRStage`
kostrykin May 6, 2025
448d2c8
Add DVR to cells.ipynb
kostrykin May 6, 2025
428df46
Update example notebooks
kostrykin May 6, 2025
0bfffbe
Rename `libcarna.animation` to `libcarna.animate`
kostrykin May 6, 2025
c3697a3
Update example notebooks
kostrykin May 6, 2025
2529b99
Simplify `animate` syntax
kostrykin May 6, 2025
100be22
Update example notebooks
kostrykin May 6, 2025
d5462e1
Clean up `_expand_module`
kostrykin May 6, 2025
59dc361
Update example notebooks
kostrykin May 6, 2025
baed31f
Add material scheme validation
kostrykin May 6, 2025
f9296e7
Update example notebooks
kostrykin May 6, 2025
f0f36fb
Add `dvr.replicate`
kostrykin May 6, 2025
dab8050
Add `mip.replicate`
kostrykin May 6, 2025
c8a976b
Update example notebooks
kostrykin May 6, 2025
1c505eb
Add `transform_into_voxels_from` method for volumes
kostrykin May 6, 2025
4ff934d
Update example notebooks
kostrykin May 6, 2025
74466b7
Fix HUV normalization
kostrykin May 6, 2025
d1fc759
Add `drr`
kostrykin May 6, 2025
bf2b6d4
Update example notebooks
kostrykin May 6, 2025
fffdd95
Update docs and example notebooks
kostrykin May 6, 2025
bca0f4c
Add `normalize_hounsfield_units` function
kostrykin May 7, 2025
e2c9870
Add more debugging checks to `EGLContext`
kostrykin May 7, 2025
b885289
Rename `mesh_factory` to `meshes`
kostrykin May 7, 2025
90944ca
Add `camera.proj` and `camera.frustum` methods
kostrykin May 7, 2025
48d58eb
Refactor `_transform` and `_spatial_mixin`
kostrykin May 7, 2025
a98f7eb
Update
kostrykin May 7, 2025
c85b4c5
Update example notebooks
kostrykin May 7, 2025
58b88d8
Add `libcarna.data`
kostrykin May 7, 2025
8bd8793
Add `libcarna.data.toy`
kostrykin May 7, 2025
b6ca834
Add `cutting_planes`
kostrykin May 7, 2025
f720d70
Add `cutting_planes` and `mask_renderer`
kostrykin May 7, 2025
9db0423
Rename `render` to `render_stage`
kostrykin May 7, 2025
e7e20a9
Fix `base.MeshFactory`
kostrykin May 8, 2025
4f8bd87
Clean up API, docs, and examples
kostrykin May 8, 2025
0c49edf
Migrate `cutting_planes` to use color maps instead of windowing
kostrykin May 8, 2025
b999db5
Add `.normalized` and `.raw` convenience methods for `volume` geometries
kostrykin May 8, 2025
c621929
Add fundamental colorbars
kostrykin May 8, 2025
9c09745
Refactor `colormap_helper`
kostrykin May 9, 2025
c96a564
Add colorbar labels, update example notebooks
kostrykin May 9, 2025
04ca1f6
Update example notebooks
kostrykin May 9, 2025
1f64e45
Add spatial annotations example
kostrykin May 9, 2025
c9284c6
Fix bugs, add segmentation example
kostrykin May 9, 2025
36a9abf
Update README.md and example notebooks
kostrykin May 10, 2025
91ffb3a
Add `material.line_width`
kostrykin May 10, 2025
ccd7e77
Add track visualization example
kostrykin May 10, 2025
3584714
Add `mesh` and `material` arguments to `geometry` function
kostrykin May 10, 2025
62dceae
Adapt to newest upstream changes
kostrykin May 10, 2025
4ef49fc
Add keyword aliases
kostrykin May 10, 2025
b6b994f
Add more aliases and update docs
kostrykin May 10, 2025
5e54ecc
Update CI to build wheel
kostrykin May 11, 2025
658855c
Add testing to CI
kostrykin May 11, 2025
b4b5100
Update requirements
kostrykin May 12, 2025
1cce1fe
Update build workflows
kostrykin May 12, 2025
bb97a9b
Fix .github/workflows/build_all.yml
kostrykin May 12, 2025
f850603
Fix .github/workflows/build_all.yml
kostrykin May 12, 2025
e87ac64
Fix .github/workflows/build_all.yml
kostrykin May 12, 2025
7ba0b3d
Fix .github/workflows/build.yml
kostrykin May 12, 2025
7506631
Add example notebooks to test CI, fix triggers
kostrykin May 12, 2025
10894bc
Update README.md
kostrykin May 12, 2025
685028d
Update environment.yml
kostrykin May 12, 2025
7d87abd
Add `workflow_dispatch` trigger
kostrykin May 12, 2025
714e261
Update build.yml
kostrykin May 12, 2025
011a88a
Update build.yml
kostrykin May 12, 2025
eeb0024
Update build.yml
kostrykin May 12, 2025
35e830d
Update build.yml
kostrykin May 12, 2025
adcf3ce
Update build.yml
kostrykin May 12, 2025
3b0c114
Update build.yml
kostrykin May 12, 2025
7005e52
Update build_all.yml
kostrykin May 12, 2025
2cd2925
Update CI
kostrykin May 12, 2025
6695ae4
Update CI
kostrykin May 12, 2025
84ed6f6
Update CI
kostrykin May 12, 2025
773de25
Update CI
kostrykin May 12, 2025
7f3288c
Update CI
kostrykin May 12, 2025
4d6a063
Update CI
kostrykin May 12, 2025
9666b29
Update CI, update environment.yml
kostrykin May 12, 2025
203489d
Update CI
kostrykin May 12, 2025
209fd89
Fix setup.py
kostrykin May 12, 2025
72967e9
Remove dangling files
kostrykin May 12, 2025
4ca3088
Add dependencies to setup.py
kostrykin May 12, 2025
e754e8c
Update CI
kostrykin May 12, 2025
f24f741
Update CI
kostrykin May 12, 2025
c858fe1
Migrate to unity build
kostrykin May 12, 2025
5c69503
Update CI
kostrykin May 12, 2025
3f358e2
Update CI
kostrykin May 12, 2025
0468d41
Update CI
kostrykin May 12, 2025
e74ebdc
Update CI
kostrykin May 12, 2025
efc2493
Update CI
kostrykin May 12, 2025
9433328
Update CI
kostrykin May 12, 2025
ca6fbcf
Remove libcarna from setup.py dependencies (not a Python dependency)
kostrykin May 12, 2025
5f31cbb
Fix dependencies
kostrykin May 12, 2025
db46910
Update CI
kostrykin May 12, 2025
77688d2
Add test/__init__.py
kostrykin May 12, 2025
ba21b5f
Fix Python<3.12 compatibility
kostrykin May 12, 2025
580b5b9
Update CI
kostrykin May 12, 2025
21bf6e7
Update CI
kostrykin May 12, 2025
6c5c6b4
Update CI
kostrykin May 12, 2025
c35a5e2
Update CI
kostrykin May 12, 2025
84f2505
Fix compatibility with Python<3.11
kostrykin May 12, 2025
345d80f
Debug
kostrykin May 12, 2025
9f67352
Add `LibCarna::egl::EGLContext::Details::selectDisplay`
kostrykin May 12, 2025
bd19dae
Debug
kostrykin May 12, 2025
ba6b1ca
Debug
kostrykin May 12, 2025
669a9e8
Add `LIBCARNA_PYTHON_LOGGING` environment variable
kostrykin May 12, 2025
6739a22
Debug
kostrykin May 12, 2025
5a5d259
Update CI
kostrykin May 12, 2025
f9701a7
Install `libegl` via conda instead of apt
kostrykin May 12, 2025
5a07abc
Add `typing_extensions` as dependency in setup.py
kostrykin May 12, 2025
ec00708
Update CI
kostrykin May 12, 2025
35342e8
Update CI
kostrykin May 12, 2025
99919ab
Update CI
kostrykin May 12, 2025
221385c
Update CI
kostrykin May 12, 2025
5083aa2
Remove support for Python 3.9
kostrykin May 12, 2025
5e59a51
Debug
kostrykin May 12, 2025
789e2fd
Debug
kostrykin May 13, 2025
dc40669
Debug
kostrykin May 13, 2025
38c6bc1
Debug, add `EGLContext.vendor` and `EGLContext.renderer`
kostrykin May 13, 2025
ae2922e
Update image comparison methods
kostrykin May 13, 2025
a99a1de
Update image comparison methods
kostrykin May 13, 2025
dd4ad77
Update image comparison methods
kostrykin May 13, 2025
ffe8b7e
Add vendor-specific expected test outputs
kostrykin May 13, 2025
677e778
Employ vendor-specific expected test outputs
kostrykin May 13, 2025
8d62a5d
Remove debug output
kostrykin May 13, 2025
bef9d2e
Install missing dependencies
kostrykin May 13, 2025
18c0f84
Add summary of notebook changes
kostrykin May 13, 2025
884e738
Fix CI
kostrykin May 13, 2025
741140d
Install ffmpeg
kostrykin May 13, 2025
0b309ab
Remove notebooks from CI (taking too long)
kostrykin May 13, 2025
98a2d98
Add more keyword aliases
kostrykin May 13, 2025
ccbd850
Refactor `_spatial_mixin` rotation/translation/scaling methods
kostrykin May 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/Dockerfile

This file was deleted.

187 changes: 115 additions & 72 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,90 +1,133 @@
name: Build CarnaPy and Docker image
name: Build and Test

on:
push:
branches:
- 'master'
- 'dev**'
tags:
- '**'
workflow_call:
inputs:
python-version:
required: true
type: string

jobs:
build_carnapy:
name: Build CarnaPy
build:
name: Build
runs-on: ubuntu-latest
steps:
-
name: Git checkout
uses: actions/checkout@v2
-
name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
- name: Git checkout
uses: actions/checkout@v4

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: 'latest'
python-version: '3.10'
channels: conda-forge, defaults
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
miniconda-version: latest
auto-update-conda: true
auto-activate-base: true
-
name: Set environment variables
run: echo "CONDA_PREFIX=$CONDA" >> $GITHUB_ENV
-
name: Build dist
run: sh linux_build.sh
-
name: Collect artifact data

- name: Patch required Python version
run: |
sed -i "s|python .\+|python ==${{ inputs.python-version }}|g" environment.yml
cat environment.yml

- name: Create and validate conda environment
shell: bash
run: |
mkdir /tmp/dist
cp /usr/local/lib/libCarna-*.so /tmp/dist
rm /tmp/dist/libCarna-*d.so
cp $(find /home/runner/work -name '*.whl') /tmp/dist/
-
name: Build and upload artifact
uses: actions/upload-artifact@v3
conda env create -f environment.yml --prefix ./.env
eval "$(conda shell.bash hook)"
conda activate ./.env
python -V
python -c "import sys; v = sys.version_info; assert f'{v.major}.{v.minor}' == '${{ inputs.python-version }}'"

- name: Extract libcarna version
id: meta
shell: bash
run: |
eval "$(conda shell.bash hook)"
conda activate ./.env
export libcarna_version=$(conda list --json |jq -rj '[ .[] | select( .name == "libcarna" ) ][0].version')
echo "libcarna_version=$libcarna_version" >> "$GITHUB_OUTPUT"

- name: Build dist
shell: bash
run: ./linux_build.bash

- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{ inputs.python-version }}
path: |
/tmp/dist
dist

outputs:
libcarna_version: ${{ steps.meta.outputs.libcarna_version }}

build_docker:
name: Build Docker image
needs: build_carnapy
test:
needs: build
name: Test
runs-on: ubuntu-latest
steps:
-
name: Git checkout
uses: actions/checkout@v2
-
name: Download artifact
uses: actions/download-artifact@v3
- name: Git checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y -qq libegl1

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: dist
-
name: Inspect working directory
run: tree .
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
name: dist-${{ inputs.python-version }}

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Setup repository name
id: setup_repository_name
miniconda-version: latest
auto-update-conda: true

- name: Create and validate conda environment
shell: bash
run: |
conda create --prefix ./.env -c conda-forge -c bioconda \
python==${{ inputs.python-version }} \
libcarna==${{ needs.build.outputs.libcarna_version }} \
pip
eval "$(conda shell.bash hook)"
conda activate ./.env
python -V
python -c "import sys; v = sys.version_info; assert f'{v.major}.{v.minor}' == '${{ inputs.python-version }}'"

- name: Install wheel
run: |
eval "$(conda shell.bash hook)"
conda activate ./.env
pip install libcarna_python-*.whl

- name: Test installation
run: |
echo "docker_repository=${GITHUB_REPOSITORY,,}" >> $GITHUB_OUTPUT
-
name: Build and push
uses: docker/build-push-action@v5
eval "$(conda shell.bash hook)"
conda activate ./.env
python -c "import libcarna; assert libcarna.libcarna_version == '${{ needs.build.outputs.libcarna_version }}'"

- name: Install dependencies for tests and examples
run: |
eval "$(conda shell.bash hook)"
conda activate ./.env
pip install -r test/requirements.txt
pip install -r docs/requirements.txt

- name: Run tests
run: |
eval "$(conda shell.bash hook)"
conda activate ./.env
cd test
mkdir test
mv results test/results
python -m unittest -vv
env:
LIBCARNA_PYTHON_LOGGING: true

- name: Upload failed test output
uses: actions/upload-artifact@v4
if: failure()
with:
file: .github/Dockerfile
context: .
push: true
tags: ${{ steps.setup_repository_name.outputs.docker_repository }}:${{ github.ref_name }}
name: test-output-${{ inputs.python-version }}
path: |
test/test/results/actual
28 changes: 28 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Test

on:
workflow_dispatch:

push:
branches: [ 'master', 'develop' ]
paths-ignore:
- 'docs/**'
- '.git*'
- 'LICENSE'
- 'LICENSE-*'
- 'README.md'

pull_request:
branches-ignore: [ 'master' ]

jobs:
build_and_test:
name: Build and Test ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
uses: ./.github/workflows/build.yml
secrets: inherit
with:
python-version: ${{ matrix.python-version }}
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/.env
/condaenv.*
/build
/docs/build
/dist
/CarnaPy.egg-info
/misc/conda-recipe/carnapy
/LibCarna_Python.egg-info
/.libcarna-dev
.ipynb_checkpoints
*.swp
*.pyc
*.DS_Store
27 changes: 27 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version, and other tools you might need
build:
os: ubuntu-24.04
tools:
python: "3.12"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
fail_on_warning: true
configuration: docs/conf.py

# Install dependencies
conda:
environment: environment.yml

# Install our python package and other dependencies
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
Loading
Loading