Skip to content

Support dev dependencies #38

@sandorkertesz

Description

@sandorkertesz

Is your feature request related to a problem? Please describe.

The problem occurs in ecmwf/earthkit-regrid#85, which tries to use a dev version of the mir-python dependency. The pyproject.toml contains this:

"mir-python>=1.27.1.dev20250627"

When the CI is running (workflow ci-python) it fails to build the env due to this error:

Using Python 3.13.1 environment at: /Users/cgr/venv/mir_install
  × No solution found when resolving dependencies:
  ╰─▶ Because there is no version of mirlib==1.27.1.dev20250627 and mir-python==1.27.1.dev20250627 depends on mirlib==1.27.1.dev20250627, we can conclude that mir-python==1.27.1.dev20250627 cannot be used.
      And because only mir-python<=1.27.1.dev20250627 is available and earthkit-regrid==0.4.1.dev44+gd78c1b6 depends on mir-python>=1.27.1.dev20250627, we can conclude that earthkit-regrid==0.4.1.dev44+gd78c1b6 cannot be used.
      And because only earthkit-regrid==0.4.1.dev44+gd78c1b6 is available and you require earthkit-regrid, we can conclude that your requirements are unsatisfiable.
 
      hint: `mirlib` was requested with a pre-release marker (e.g., mirlib==1.27.1.dev20250627), but pre-releases weren't enabled (try: `--prerelease=allow`)

The workflow is using this command for the installation:

uv build --sdist --no-sources
uv pip install dist/*

Interestingly, the same command without uv (so pip only) works. The following commands are also working:

pip install -e .
pip install mir-python==1.27.1.dev20250627
pip install mir-python>=1.27.1.dev20250627

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Organisation

ECMWF

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions