ChristianTremblay / pyhaystack

Pyhaystack is a module that allow python programs to connect to a haystack server project-haystack.org. Connection can be established with Niagara Platform running the nhaystack, Skyspark and Widesky. For this to work with Anaconda IPython Notebook in Windows, be sure to use "python setup.py install" using the Anaconda Command Prompt in Windows. If not, module will be installed for System path python but won't work in the environment of Anaconda IPython Notebook. You will need hszinc 1.3+ for this to work.
Apache License 2.0
74 stars 32 forks source link

upcoming deprecation for pyhaystack involving semantic versioning comparison #119

Open sjlongland opened 1 month ago

sjlongland commented 1 month ago

We noticed this in one of our internal tools' test suites that uses pyhaystack. @ozacas-widesky was dusting off this tool and happened to notice the issue. (Internal JIRA ticket: CORE-3151.)

I'll try and get to fixing this as soon as I can, but just filing this bug here so I remember to upstream the fix. :-)

  /usr/lib/python3/dist-packages/pyhaystack/client/ops/vendor/widesky.py:241: DeprecationWarning: Function 'semver.match' is deprecated. Deprecated since version 2.10.0.  This function will be removed in semver 3. Use the respective 'semver.Version.match' instead.
    res[feature] = semver.match(ver, ">=0.8.0")