Skip to content

Update vendored Versioneer from 0.14 to 0.28 - #8771

Merged
sklam merged 2 commits into
numba:mainfrom
gmarkall:versioneer-028
Mar 9, 2023
Merged

sklam merged 2 commits into
numba:mainfrom
gmarkall:versioneer-028

Conversation

@gmarkall

@gmarkall gmarkall commented Feb 20, 2023 •

Copy link
Copy Markdown
Member

This is primarily done to remove its distutils dependency.

Per the upgrade notes (see https://github.com/python-versioneer/python-versioneer/blob/master/UPGRADING.md), the configuration of Versioneer is moved into setup.cfg from setup.py.

The other notes on upgrading between Versions 0.14 and 0.28 don't apply to our particular configuration as we're not presently using pyproject.toml.

versioneer.py is also added to the Flake8 ignore list, as its format no longer conforms to our rules.

Note that there are other options we could consider, including:

  • Not vendoring Versioneer
  • Not using Versioneer anymore

However, as I'm not aware of any issues with our current setup / approach, I think this PR is the simplest way forward with minimum effort to help get us away from having a distutils dependency.

Changes to numba/_version.py and versioneer.py were made by Versioneer, when I ran the versioneer install command as per Updating Versioneer.

This also includes @oscargus's fix from #7765 that updates inspector._get_commit() for recent versions of Versioneer. Note that this PR updates to version 0.28, whereas #7765 updates to 0.22 (which I believe was current at the time).

This is primarily done to remove its distutils dependency.

Per the upgrade notes (see
https://github.com/python-versioneer/python-versioneer/blob/master/UPGRADING.md),
the configuration of Versioneer is moved into `setup.cfg` from `setup.py`.

The other notes on upgrading between Versions 0.14 and 0.28 don't apply
to our particular configuration as we're not presently using
pyproject.toml.

`versioneer.py` is also added to the Flake8 ignore list, as its format
no longer conforms to our rules.
@gmarkall

Copy link
Copy Markdown
Member Author

gpuci run tests

@sklam sklam added this to the Numba 0.57 RC milestone Feb 21, 2023
@sklam sklam self-assigned this Feb 21, 2023

@sklam sklam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch. I have also tested this on py3.11 branch

@sklam sklam added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review labels Mar 9, 2023
@sklam
sklam merged commit f2008e1 into numba:main Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants