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 and setup.cfg references in docs, update rapids-dependency-file-generator #1509

Open
wants to merge 1 commit into
base: branch-25.02
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repos:
- id: verify-copyright
- id: verify-alpha-spec
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.16.0
rev: v1.17.0
hooks:
- id: rapids-dependency-file-generator
args: ["--clean"]
Expand Down
20 changes: 10 additions & 10 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ files:
- develop
- docs
- py_version
- depends_on_rmm
- depends_on_cudf
- depends_on_cuml
- depends_on_cupy
- depends_on_libcudf
- depends_on_librmm
- depends_on_rmm
- notebooks
- rapids_build_skbuild
- run_python_cuspatial
- test_notebooks
- test_python_cuspatial
- test_python_cuproj
- notebooks
- test_python_cuspatial
test_cpp:
output: none
includes:
Expand All @@ -38,18 +38,18 @@ files:
- depends_on_cuproj
- depends_on_cuspatial
- py_version
- test_python_cuspatial
- test_python_cuproj
- test_python_cuspatial
test_notebooks:
output: none
includes:
- cuda_version
- depends_on_cuml
- depends_on_cuproj
- depends_on_cuspatial
- test_notebooks
- notebooks
- py_version
- test_notebooks
checks:
output: none
includes:
Expand All @@ -59,8 +59,8 @@ files:
output: none
includes:
- cuda_version
- depends_on_cuspatial
- depends_on_cuproj
- depends_on_cuspatial
- docs
- py_version
py_build_libcuspatial:
Expand Down Expand Up @@ -102,11 +102,11 @@ files:
table: tool.rapids-build-backend
key: requires
includes:
- depends_on_rmm
- depends_on_cudf
- build_cpp
- build_python
- build_wheels
- depends_on_rmm
- depends_on_cudf
- depends_on_libcudf
- depends_on_libcuspatial
- depends_on_librmm
Expand Down Expand Up @@ -161,8 +161,8 @@ files:
table: project.optional-dependencies
key: test
includes:
- test_python_cuproj
- depends_on_cuspatial
- test_python_cuproj

channels:
- rapidsai
Expand Down Expand Up @@ -279,7 +279,7 @@ dependencies:
common:
- output_types: [conda, requirements, pyproject]
packages:
- &rapids_build_backend rapids-build-backend>=0.3.0,<0.4.0.dev0
- rapids-build-backend>=0.3.0,<0.4.0.dev0
- output_types: conda
packages:
- scikit-build-core>=0.10.0
Expand Down
10 changes: 3 additions & 7 deletions docs/source/developer_guide/contributing_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,12 @@ Specifically, cuSpatial uses the following tools:
- [`isort`](https://pycqa.github.io/isort/) ensures imports are sorted consistently.

Linter config data is stored in a number of files. cuSpatial generally uses `pyproject.toml` over
`setup.cfg` and avoids project-specific files (e.g. `setup.cfg` > `python/cudf/setup.cfg`). However,
differences between tools and the different packages in the repo result in the following caveats:
`setup.cfg` and prefers root-level files to project-specific files.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would be fine with removing the reference to setup.cfg altogether.

Also we need to do a pass through RAPIDS repos and get rid of flake8/black/isort in favor of ruff. There is no technical reason why we are still using flake8, we just haven't switched over to ruff in several RAPIDS repos. (The only minor caveat I am aware of is that isort supports Cython files while ruff's isort does not, but we decided not to worry about that.)

However, differences between tools and the different packages in the repo result in the following caveats:

- `flake8` has no plans to support `pyproject.toml`, so it must live in `setup.cfg`.
- `flake8` has no plans to support `pyproject.toml`, so it must live in `.flake8`.
- `isort` must be configured per project to set which project is the "first party" project.

Additionally, cuSpatial's use of `versioneer` means that each project must have a `setup.cfg`.
As a result, cuSpatial currently maintains both root and project-level `pyproject.toml` and
`setup.cfg` files.

## Writing tests

Every new feature contributed to cuspatial should include unit tests. The unit test file should be
Expand Down
Loading