Azure / azure-iot-hub-python

Azure IoT Hub Data Plane Python SDK
MIT License
15 stars 11 forks source link

Installation with poetry fails #6

Closed chibacchie closed 1 year ago

chibacchie commented 1 year ago

Installation of azure-iot-hub with poetry fails due to possibly malformed version specifier.

$ poetry --version
Poetry (version 1.2.2)
$ poetry -v add azure-iot-hub
Using virtualenv: /path/to/home/.venv
Using version ^2.6.0 for azure-iot-hub

Updating dependencies
Resolving dependencies... (0.0s)

  ParseConstraintError

  Could not parse version constraint: !=3.3*

  at ~/.local/lib/python3.8/site-packages/poetry/core/constraints/version/parser.py:147 in parse_single_constraint
      143│         return version
      144│
      145│     from poetry.core.constraints.version.exceptions import ParseConstraintError
      146│
    → 147│     raise ParseConstraintError(f"Could not parse version constraint: {constraint}")
      148│

According to PEP 440, 3.3* should be 3.3.*.

cf. https://github.com/Azure/azure-iot-hub-python/blob/e08d1bb60be2955dffc78f055a22448903fea0bd/setup.py#L83