← All tasks
pythoncoveragepy/coveragepy #1020Not a task: already works

`python_requires="<4"` creates issues with dependency solvers

envgap__coveragepy__coveragepy-1020

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
c7052bb24da03b5112c6d7fd1386936e211223f0
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

coveragepy/coveragepy #1020 · read the original issue
- `python_requires="<4"` is defined in https://github.com/nedbat/coveragepy/blob/aa6cb95e366f479cddd8cd30aee940393ead6296/setup.py#L122 

- This requirement causes problems with dependency solvers, such as `poetry`:



```bash

>>> poetry add --allow-prereleases --dev coverage          

Using version ^5.2.1 for coverage



Updating dependencies

Resolving dependencies... (0.0s)



[SolverProblemError]

The current project's Python requirement (>=3.6) is not compatible with some of the required packages Python requirement:

  - coverage requires Python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4

```
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]