Skip to content

Stop using versioneer to manage versions#3298

Merged
rapids-bot[bot] merged 17 commits intorapidsai:branch-23.04from
vyasr:feat/remove_versioneer
Mar 1, 2023
Merged

Stop using versioneer to manage versions#3298
rapids-bot[bot] merged 17 commits intorapidsai:branch-23.04from
vyasr:feat/remove_versioneer

Conversation

@vyasr
Copy link
Contributor

@vyasr vyasr commented Feb 23, 2023

This PR replaces usage of versioneer with hard-coded version numbers in setup.py and init.py. Since cugraph needs to manage versions across a wide range of file types (CMake, C++, Sphinx and doxygen docs, etc), versioneer cannot be relied on as a single source of truth and therefore does not allow us to single-source our versioning to the Git repo as is intended. Additionally, since the primary means of installing raft is via conda packages (or now, pip packages), information from the package manager tends to be far more informative than the version strings for troubleshooting and debugging purposes. Conversely, the nonstandard version strings that it produces tend to be problematic for other tools, which at best will ignore such versions but at worst will simply fail.

This PR also replaces usage of an environment variable to set the package name for wheels in setup.py, instead moving the renaming logic into the same sed script used to update package versions. This change makes setup.py essentially static, paving the way for migration to pyproject.toml.

@vyasr vyasr added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 23, 2023
@vyasr vyasr self-assigned this Feb 23, 2023
@vyasr vyasr requested review from a team as code owners February 23, 2023 23:42
@vyasr vyasr requested a review from ajschmidt8 February 27, 2023 18:21
@rlratzel
Copy link
Contributor

rlratzel commented Mar 1, 2023

/merge

@rapids-bot rapids-bot bot merged commit 047bca6 into rapidsai:branch-23.04 Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants