anancarv / python-artifactory

Typed interactions with the Jfrog Artifactory REST API
MIT License
55 stars 50 forks source link

Dependency error: typing-extensions>=4.1.0 and typing_extensions<4.0.0 #118

Closed lavinia8 closed 2 years ago

lavinia8 commented 2 years ago

Describe the bug pip-compile throws dependency errors for pyartifactory 1.8.0

To Reproduce Steps to reproduce the behavior:

  1. Define requirements.in which contains pyartifactory==1.8.0
  2. Run pip-compile requirements.in
    
    Could not find a version that matches typing-extensions<4.0.0,>=3.7.4,>=4.1.0 (from pyartifactory==1.8.0->-r requirements.in (line 1))
    Tried: 3.6.2, 3.6.2, 3.6.2.1, 3.6.2.1, 3.6.5, 3.6.5, 3.6.6, 3.6.6, 3.7.2, 3.7.2, 3.7.4, 3.7.4, 3.7.4.1, 3.7.4.1, 3.7.4.2, 3.7.4.2, 3.7.4.3, 3.7.4.3, 3.10.0.0, 3.10.0.0, 3.10.0.1, 3.10.0.1, 3.10.0.2, 3.10.0.2, 4.0.0, 4.0.0, 4.0.1, 4.0.1, 4.1.0, 4.1.0, 4.1.1, 4.1.1, 4.2.0, 4.2.0, 4.3.0, 4.3.0
    There are incompatible versions in the resolved dependencies:
    typing-extensions>=4.1.0 (from pydantic==1.10.1->pyartifactory==1.8.0->-r requirements.in (line 1))
    typing_extensions<4.0.0,>=3.7.4 (from pyartifactory==1.8.0->-r requirements.in (line 1))


**Expected behavior**
Dependency graph is built without errors. 

**Environment:**
 - OS: Windows
 - pyartifactory version: 1.8.0 not yet installed, but specified in `requirements.in`
 - Python version: 3.8.5
lavinia8 commented 2 years ago

Hi @fbrodrigorezino 👋🏼 Any hints on this issue? It looks like you've updated the typing_extensions version: https://github.com/fbrodrigorezino/python-artifactory/commit/35f11c14b6e99d5c771bcd1abf1920e050f5364f

lavinia8 commented 2 years ago

Specifying a fixed pydantic version solves the issue (pydantic==1.9.2).