-
Notifications
You must be signed in to change notification settings - Fork 60
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
remove versioneer #615
remove versioneer #615
Conversation
__version__ = get_versions()['version'] | ||
del get_versions | ||
del _version | ||
__version__ = "23.12.00" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be better if we could setup a mechanism to update this hard-corded value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The update-version.sh
is used to do this. Though we may need to update the logic in that script to perform replacement in the right files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example rmm
's update-version.sh
has this line, which we might want to borrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, added this in commit cd1f8fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
/merge |
…ect.toml (#616) The first commit here is from #615 This MR makes multiple linting-related changes to cuCIM - moves existing `isort` config from `setup.cfg` to a new `pyproject.toml` file - update `isort` conventions to match other RAPIDS projects - add `black` and apply it (use `fmt::off`/`fmt::on` as needed to preserve formatting of look-up tables and test cases) - replace use of `flake8` with `ruff` - add config for `codespell` and apply recommended fixes across both C++ and Python code - update CONTRIBUTING.md instructions to reflect these changes - Pre-commit hooks for `black`, `ruff` and `codespell` were added. The pre-commit hook for `flake8` was removed. The only non-linting change is - move pytest configuration from `setup.cfg` to `pyproject.toml` I plan to leave any build-system related changes to `pyproject.toml` to a follow-up MR. This MR focuses only on linting/testing. It will probably be easiest to review the individual commits. Some, like applying `black` are quite large. Fixes #23 Authors: - Gregory Lee (https://github.com/grlee77) Approvers: - Bradley Dice (https://github.com/bdice) - Ray Douglass (https://github.com/raydouglass) - Gigon Bae (https://github.com/gigony) - https://github.com/jakirkham URL: #616
This MR is on top of #615 and #616 so those should be reviewed and merged first. Currently `run build_python_package` will be in a broken state. Authors: - Gregory Lee (https://github.com/grlee77) Approvers: - Gigon Bae (https://github.com/gigony) - Ray Douglass (https://github.com/raydouglass) - https://github.com/jakirkham URL: #617
Contributes to rapidsai/build-planning#31 Removes `.gitattributes` files. These have been here since the beginning of the project (048d53e), for use with `versioneer`. Per the `git` docs ([link](https://git-scm.com/docs/gitattributes#_export_subst)), setting the attribute `export-subst` on a file via a `.gitattributes` tell `git` to replace placeholders in the file with some `git` information. This is no longer done in `_version.py` files in this project, and this project no longer uses `versioneer` (#615). `rapids-build-backend` handles storing git commit information in the published packages. ## Notes for Reviewers For more details, see rapidsai/build-planning#31 (comment) Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Mike Sarahan (https://github.com/msarahan) - Gregory Lee (https://github.com/grlee77) URL: #740
remove versioneer to more closely follow RAPIDS conventions