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

remove versioneer #615

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Oct 24, 2023

remove versioneer to more closely follow RAPIDS conventions

@grlee77 grlee77 added non-breaking Introduces a non-breaking change maintenance labels Oct 24, 2023
@grlee77 grlee77 added this to the v23.12.00 milestone Oct 24, 2023
@grlee77 grlee77 self-assigned this Oct 24, 2023
@grlee77 grlee77 requested a review from a team as a code owner October 24, 2023 16:34
@grlee77 grlee77 added the improvement Improves an existing functionality label Oct 24, 2023
__version__ = get_versions()['version']
del get_versions
del _version
__version__ = "23.12.00"
Copy link
Contributor

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.

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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

@grlee77 grlee77 requested a review from a team as a code owner October 25, 2023 20:08
Copy link
Contributor

@gigony gigony left a 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!

@grlee77
Copy link
Contributor Author

grlee77 commented Oct 26, 2023

/merge

@rapids-bot rapids-bot bot merged commit 2492a48 into rapidsai:branch-23.12 Oct 26, 2023
26 checks passed
rapids-bot bot pushed a commit that referenced this pull request Oct 27, 2023
…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
rapids-bot bot pushed a commit that referenced this pull request Oct 27, 2023
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
@jameslamb jameslamb mentioned this pull request Jun 18, 2024
rapids-bot bot pushed a commit that referenced this pull request Jun 24, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality maintenance non-breaking Introduces a non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants