Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using versioneer to manage versions #1190

Merged
merged 23 commits into from
Feb 16, 2023

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Jan 13, 2023

Description

This PR replaces usage of versioneer with hard-coded version numbers in setup.py and init.py. Since rmm 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 rmm 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.

Relies on rapidsai/shared-workflows#38

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@vyasr vyasr added 2 - In Progress Currently a work in progress tech debt debt Internal clean up and improvements to reduce maintenance and technical debt in general non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Jan 13, 2023
@vyasr vyasr self-assigned this Jan 13, 2023
@github-actions github-actions bot added ci Python Related to RMM Python API labels Jan 13, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 14, 2023

Codecov Report

Base: 0.00% // Head: 0.00% // No change to project coverage 👍

Coverage data is based on head (e6fc0cb) compared to base (2075541).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##           branch-23.02   #1190    +/-   ##
=============================================
  Coverage          0.00%   0.00%            
=============================================
  Files                 6       5     -1     
  Lines               421     140   -281     
=============================================
+ Misses              421     140   -281     
Impacted Files Coverage Δ
python/rmm/__init__.py 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

python/rmm/_version.py Show resolved Hide resolved
ci/release/modify_wheel_build_version.sh Outdated Show resolved Hide resolved
@github-actions github-actions bot added CMake conda cpp Pertains to C++ code labels Feb 9, 2023
@vyasr vyasr changed the base branch from branch-23.02 to branch-23.04 February 9, 2023 01:38
@github-actions github-actions bot removed conda CMake cpp Pertains to C++ code labels Feb 9, 2023
@vyasr vyasr marked this pull request as ready for review February 16, 2023 18:13
@vyasr vyasr requested review from a team as code owners February 16, 2023 18:13
@vyasr vyasr added 3 - Ready for review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Feb 16, 2023
@rapids-bot
Copy link

rapids-bot bot commented Feb 16, 2023

@vyasr, the @gpucibot merge command has been replaced with /merge.

Please re-comment this PR with /merge and use this new command in the future.

@vyasr
Copy link
Contributor Author

vyasr commented Feb 16, 2023

/merge

@rapids-bot rapids-bot bot merged commit 82e184f into rapidsai:branch-23.04 Feb 16, 2023
@vyasr vyasr deleted the feat/remove_versioneer branch February 16, 2023 20:10
rapids-bot bot pushed a commit that referenced this pull request Feb 17, 2023
…1212)

The package name defined in setup.py needs to be modified for wheels to reflect the CUDA version that the wheel was built for. Currently that modification is done via an environment variable that is pulled in setup.py code. This changeset replaces that approach with a direct modification using a script (similar to what is done for versions in #1190) to facilitate moving towards static project metadata specification via pyproject.toml.

This PR depends on rapidsai/shared-workflows#45.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Sevag H (https://github.com/sevagh)
  - Ashwin Srinath (https://github.com/shwina)

URL: #1212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for review Ready for review by team ci improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Related to RMM Python API tech debt debt Internal clean up and improvements to reduce maintenance and technical debt in general
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants