[ 
https://issues.apache.org/jira/browse/DISPATCH-2369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17912475#comment-17912475
 ] 

ASF subversion and git services commented on DISPATCH-2369:
-----------------------------------------------------------

Commit a1986076553b1f4b54822fcde1a9a43ce9760440 in qpid-dispatch's branch 
refs/heads/main from Jiri Daněk
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=a1986076 ]

DISPATCH-2369: chore(build): set a PEP-440 compliant version to avoid a fail 
when building Python package (#1740)

```
  File 
"/usr/lib/python3.12/site-packages/setuptools/_vendor/packaging/version.py", 
line 198, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
setuptools.extern.packaging.version.InvalidVersion: Invalid version: 
'1.20.0-SNAPSHOT
```

> Python is unhappy with a -SNAPSHOT version string nowadays
> ----------------------------------------------------------
>
>                 Key: DISPATCH-2369
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2369
>             Project: Qpid Dispatch
>          Issue Type: Bug
>    Affects Versions: 1.19.0
>            Reporter: Jiri Daněk
>            Assignee: Jiri Daněk
>            Priority: Major
>
> {noformat}
>   File 
> "/usr/lib/python3.12/site-packages/setuptools/_vendor/packaging/version.py", 
> line 198, in __init__
>     raise InvalidVersion(f"Invalid version: '{version}'")
> setuptools.extern.packaging.version.InvalidVersion: Invalid version: 
> '1.20.0-SNAPSHOT
> {noformat}
> This has been already looked into in skupper-router
> * https://github.com/skupperproject/skupper-router/issues/1251
> * https://github.com/skupperproject/skupper-router/issues/973
> The problem is that version number with -SNAPSHOT in it is not PEP-440 
> compliant.
> As a related issue, we are now supposed not to call setup.py directly
> * https://github.com/skupperproject/skupper-router/issues/1258
> {noformat}
> /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: 
> SetuptoolsDeprecationWarning: setup.py install is deprecated.
> !!
>         
> ********************************************************************************
>         Please avoid running ``setup.py`` directly.
>         Instead, use pypa/build, pypa/installer or other
>         standards-based tools.
>         Follow the current Python packaging guidelines when building
>         Python RPM packages.
>         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
>         and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ 
> for details.
>         
> ********************************************************************************
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to