Skip to content

[upstream candidate] uv/pip install support (pyproject.toml + uv.lock) - #1

Open
mark-hammond wants to merge 1 commit into
masterfrom
feat/uv-support
Open

[upstream candidate] uv/pip install support (pyproject.toml + uv.lock)#1
mark-hammond wants to merge 1 commit into
masterfrom
feat/uv-support

Conversation

@mark-hammond

Copy link
Copy Markdown

Staging PR on our fork (NOT yet sent to andrewlyden/PyPSA-GB).

Adds a non-conda install path: PEP 621 pyproject.toml mirroring envs/pypsa-gb.yaml (minimal HiGHS runtime default; solvers/viz/hpc/docs/dev as extras) + committed uv.lock + an 'Install with uv' docs section. Validated: uv sync + imports OK; lock resolves to the same versions the conda env uses (pypsa 1.2.2, pandas 2.3.3).

To promote upstream when ready: retarget base to andrewlyden/PyPSA-GB:master.

Provide a non-conda install path: a PEP 621 pyproject.toml mirroring envs/pypsa-gb.yaml
with a minimal HiGHS runtime as the default and other solvers/plotting/HPC/docs/dev as
extras, plus a committed uv.lock for reproducibility. Geospatial deps resolve from binary
wheels, so no conda or system GDAL/PROJ is required. Docs gain an 'Install with uv' section.

pandas is pinned <3 (arrow-backed strings break solve_network); the lock resolves to the
same versions the conda environment uses (pypsa 1.2.2, pandas 2.3.3, linopy 0.7.0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant