Print

Print


To avoid errors in modern versions of `pip`, ensure that the version name created for the Python bindings is sanitized to be compliant with [PEP 440](https://www.python.org/dev/peps/pep-0440/)

c.f.:
* https://www.python.org/dev/peps/pep-0440/
* https://github.com/pypa/pip/issues/8368

This essentially means that the version number needs to pass `pip._vendor.packaging.version.Version()`

Example:

```python
from pip._vendor.packaging.version import Version

Version("v20220128-34c8a39")  # pip._vendor.packaging.version.InvalidVersion: Invalid version: 'v20220128-34c8a39'
Version("2022.128")  # <Version('2022.128')>
Version("2022.128+a28a91c")  # <Version('2022.128+a28a91c')>
Version("6.0.0")  # <Version('6.0.0')>
You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/1605

-- Commit Summary --

  * [pip] Sanitize version to be PEP 440 compliant
  * [Python] Use context manager for opening files
  * [CI] Move xrootd.egg-info off PYTHONPATH

-- File Changes --

    M .github/workflows/build.yml (6)
    M bindings/python/setup.py.in (31)
    M packaging/wheel/setup.py (32)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/1605.patch
https://github.com/xrootd/xrootd/pull/1605.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/1605
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1