NiklasRosenstein / slap

Slap is a CLI to assist in the process for developing and releasing Python packages.
https://niklasrosenstein.github.io/slap/
Other
18 stars 11 forks source link

`ERROR: Double requirement given: `pytest>=6.0.0` (already in pytest, name='pytest') #71

Open NiklasRosenstein opened 1 year ago

NiklasRosenstein commented 1 year ago

This occurs when creating a Python 3.8 virtual environment and using slap install to install kraken-core. It has an optional runtime-dependency on pytest and a non-optional development dependency on it.

[tool.poetry.dependencies]
pytest = { version = ">=6.0.0", optional = true }  # For the testing fixture provided by kraken.core

[tool.poetry.dev-dependencies]
pytest = "*"

Upgrading Pip in the virtual environment makes it work.

.venvs/3.8/bin/pip install --upgrade pip