Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump IP Fabric SDK to 7.0 #709

Open
cordeezy2 opened this issue Feb 24, 2025 · 2 comments
Open

Bump IP Fabric SDK to 7.0 #709

cordeezy2 opened this issue Feb 24, 2025 · 2 comments
Labels
dependencies Pull requests that update a dependency file integration: ipfabric Issues/PRs for IPFabric integration type: technical debt

Comments

@cordeezy2
Copy link

Environment

  • Nautobot version: 2.4
  • nautobot-ssot version: "3.5.1a0"

Proposed Functionality

Bump IP Fabric SDK to 7.0

Use Case

When attempting to Bump IP Fabric Python SDK

First constraint is Python 3.8 support.

❯ poetry lock --no-update
Resolving dependencies... (1.7s)

The current project's supported Python range (>=3.8,<3.13) is not compatible with some of the required packages Python requirement:
  - ipfabric requires Python <4.0,>=3.9, so it will not be satisfied for Python >=3.8,<3.9
  - ipfabric requires Python <4.0,>=3.9, so it will not be satisfied for Python >=3.8,<3.9

Because no versions of ipfabric match >=7.0.0,<7.0.1 || >7.0.1,<7.0.2 || >7.0.2,<7.1.0b0 || >7.1.0b0,<7.2.0b0 || >7.2.0b0,<8.0.0
 and ipfabric (7.1.0b0) requires Python <4.0,>=3.9, ipfabric is forbidden.
And because ipfabric (7.2.0b0) requires Python <4.0,>=3.9, ipfabric is forbidden.
And because ipfabric (7.0.1) depends on packaging (>=24.2,<25.0)
 and ipfabric (7.0.2) depends on packaging (>=24.2,<25.0), ipfabric (>=7.0.0,<8.0.0) requires packaging (>=24.2,<25.0).
So, because nautobot-ssot depends on both packaging (>=21.3, <24) and ipfabric (^7.0.0), version solving failed.

  • Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties

    For ipfabric, a possible solution would be to set the `python` property to ">=3.9,<3.13"
    For ipfabric, a possible solution would be to set the `python` property to ">=3.9,<3.13"

    https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
    https://python-poetry.org/docs/dependency-specification/#using-environment-markers

After attempting to bump the python version, There are additional packages that have constraints.

❯ poetry lock --no-update
Resolving dependencies... (3.1s)

Because no versions of ipfabric match >=7.0.0,<7.0.1 || >7.0.1,<7.0.2 || >7.0.2,<7.1.0b0 || >7.1.0b0,<7.2.0b0 || >7.2.0b0,<8.0.0
 and ipfabric (7.1.0b0) depends on packaging (>=24.2,<25.0), ipfabric (>=7.0.0,<7.0.1 || >7.0.1,<7.0.2 || >7.0.2,<7.2.0b0 || >7.2.0b0,<8.0.0) requires packaging (>=24.2,<25.0).
And because ipfabric (7.2.0b0) depends on packaging (>=24.2,<25.0), ipfabric (>=7.0.0,<7.0.1 || >7.0.1,<7.0.2 || >7.0.2,<8.0.0) requires packaging (>=24.2,<25.0).
And because ipfabric (7.0.1) depends on packaging (>=24.2,<25.0)
 and ipfabric (7.0.2) depends on packaging (>=24.2,<25.0), ipfabric (>=7.0.0,<8.0.0) requires packaging (>=24.2,<25.0).
So, because nautobot-ssot depends on both packaging (>=21.3, <24) and ipfabric (^7.0.0), version solving failed.
@rubenjimenezit
Copy link

Same problem here.

Solved by manually upgrading the ipfabric package with all its dependencies. Dependencies upgrading gave a bit of problems but I managed to get it done.

I would be great that the IP Fabric SDK were v7 without manual upgrading

@jdrew82 jdrew82 added type: technical debt dependencies Pull requests that update a dependency file integration: ipfabric Issues/PRs for IPFabric integration labels Feb 25, 2025
@rubenjimenezit
Copy link

Currently working fine with the following package versions:
ipfabric 7.0.2
nautobot 2.4.3
nautobot-ssot 3.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file integration: ipfabric Issues/PRs for IPFabric integration type: technical debt
Projects
None yet
Development

No branches or pull requests

3 participants