Skip to main content

fenicsx-compat

Cross-version compatibility helpers for DOLFINx.

Centralizes workarounds for breaking API changes across dolfinx versions (nightly/main, stable, and back to release 0.10), previously duplicated across dolfinx-adjoint, io4dolfinx, and scifem.

Pure Python, no compiled extensions. Supports dolfinx >= 0.10.0.

Installation

fenicsx-compat requires Python 3.12 or newer and DOLFINx 0.10 or newer.

conda-forge

conda install conda-forge::fenicsx-compat

This also installs DOLFINx from conda-forge if it is not already in the environment.

pip

python3 -m pip install fenicsx-compat

Install DOLFINx first, for instance with conda, spack or one of the FEniCS Docker images. pip cannot build DOLFINx itself.

To install the development version from GitHub, run

python3 -m pip install git+https://github.com/scientificcomputing/fenicsx-compat.git

From source

To build without build isolation, first install the build requirements from the build dependency group (requires pip >= 25.1), then install from a clone of the repository:

python3 -m pip install --group build
python3 -m pip install --check-build-dependencies --no-build-isolation .

Documentation

The documentation lists every function in the package: what it does, what DOLFINx 0.10, 0.11 and main do natively, and how to call it.

Releasing

Versions are managed with bump-my-version, configured in pyproject.toml and installed with the dev extra. Between releases the version is a development version, X.Y.Z.devN; a release drops the suffix. Each bump commits the version change, so start from a clean working tree.

To release the current development version, e.g. 0.6.0.dev0, and start the next one:

bump-my-version bump release --no-tag  # 0.6.0.dev0 -> 0.6.0
bump-my-version bump minor --no-tag    # 0.6.0 -> 0.7.0.dev0

For a patch release of 0.6, bump patch instead of minor (0.6.0 -> 0.6.1.dev0), then release (0.6.1.dev0 -> 0.6.1). bump-my-version show-bump previews what each bump gives.

The bumps do not tag. A v* tag publishes to PyPI, so tag the release commit (Bump version: 0.6.0.dev0 → 0.6.0) as v0.6.0, for instance by creating a GitHub release from it.

Releasing also updates .github/docs-versions.yml, which lists the versions on the documentation website. A new minor version gets its own entry, built in the DOLFINx image of the previous one; edit dolfinx_image there afterwards if a newer DOLFINx release should be used. A patch release replaces its minor version's documentation.

Metadata

Release files for fenicsx-compat 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fenicsx-compat 0.7.0
File Size Uploaded Provenance Actions
fenicsx_compat-0.7.0.tar.gz 58.8 kB With provenance Details for fenicsx_compat-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fenicsx-compat 0.7.0
File Interpreter ABI Platform Actions
fenicsx_compat-0.7.0-py3-none-any.whl Python 3 none any Details for fenicsx_compat-0.7.0-py3-none-any.whl

Total release size: 80.7 kB

Release files / fenicsx_compat-0.7.0.tar.gz

Download URL fenicsx_compat-0.7.0.tar.gz
Size 58.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c3c8d0120d1d4e8d3e54976f871d2e192b9f612079b3f7e77c8dbbca48dc6b1
BLAKE2b-256 checksum
How to use checksums
e49db638f309dda6fab8819d897b0f9b5e784d46f1a5535be0b1813d439d74fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / fenicsx_compat-0.7.0-py3-none-any.whl

Download URL fenicsx_compat-0.7.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d1dcbcb37bc0d4c81536153bad7f9c8dda1b10fbe6aa9189a7e5194d2c2c8f8
BLAKE2b-256 checksum
How to use checksums
24aacdf6adb67bc4c00b2b21c2543ef62c96fa2d9c235c64c6a84b66b2f5158a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for fenicsx-compat 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fenicsx_compat-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page