JeanChristopheMorinPerso / rez-pip

PyPI/python package ingester/converter for the rez package manager
https://rez-pip.readthedocs.io/en/latest/
Apache License 2.0
23 stars 4 forks source link

`rez_pip_version` metadata missing from produced package.py files #76

Closed brycegbrazen closed 11 months ago

brycegbrazen commented 11 months ago

When running rez-pip2 on any package, the rez_pip_version metadata is missing from the produced package.py file.

This metadata is shown to be present in the docs but does not appear in produced package.py files.

Environment

To Reproduce

  1. Install new rez-pip
  2. rez-pip2 semver==3.0.2 (can also try requests==2.31.0 or any other package at all)

Expected Behavior rez_pip_version metadata present in pip attribute of package.py.

Actual Behavior rez_pip_version is missing from pip attribute of package.py

brycegbrazen commented 11 months ago

Looks like we need to add a tiny bit of new code here.

@JeanChristopheMorinPerso mentioned we could just get the current version with importlib_metadata.version('rez-pip')

JeanChristopheMorinPerso commented 11 months ago

This is fixed in the latest version.