Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip # dependency groups require pip >= 25.1
- name: Build and install
run: pip install --verbose .[tests]
run: pip install --verbose . --group tests
- name: Run tests with pytest
run: pytest

Expand Down
12 changes: 5 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ build:
- build-essential
- cmake
- doxygen

python:
install:
- method: pip
path: .
extra_requirements:
- docs
jobs:
# RTD seeds an old pip into the venv; --group needs pip >= 25.1
install:
- python -m pip install --upgrade pip
- python -m pip install . --group docs

sphinx:
configuration: docs/conf.py
2 changes: 1 addition & 1 deletion bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ target_sources(
target_link_libraries(
openae_bindings_python_features
PRIVATE
openae
openae::openae
openae_project_options
)
set_target_properties(
Expand Down
20 changes: 11 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ keywords = [
]
dependencies = ["numpy>=1.20"]

[project.optional-dependencies]
[project.urls]
Homepage = "https://openae.io"
Source = "https://github.com/openae-io/openae-lib"
Issues = "https://github.com/openae-io/openae-lib/issues"
Changelog = "https://github.com/openae-io/openae-lib/blob/main/CHANGELOG.md"

[dependency-groups] # PEP 735, requires pip >= 25.1 or uv
docs = [
"sphinx>=8",
"sphinx-autodoc-typehints",
Expand All @@ -61,15 +67,11 @@ tools = [
"ruff>=0.9",
]
dev = [
"openae[docs,tests,tools]", # recursive dependency since pip 21.2
{ include-group = "docs" },
{ include-group = "tests" },
{ include-group = "tools" },
]

[project.urls]
Homepage = "https://openae.io"
Source = "https://github.com/openae-io/openae-lib"
Issues = "https://github.com/openae-io/openae-lib/issues"
Changelog = "https://github.com/openae-io/openae-lib/blob/main/CHANGELOG.md"

[tool.coverage.run]
branch = true
parallel = true
Expand Down Expand Up @@ -141,7 +143,7 @@ skip = [
]
build-verbosity = 1
test-command = "pytest {project}/bindings/python/tests"
test-requires = ["pytest", "pytest-benchmark"]
test-groups = ["tests"]
# select images with C++ 20 support: https://github.com/pypa/manylinux
# manylinux_2_28 with GCC 14
manylinux-x86_64-image = "manylinux_2_28"
Expand Down
Loading