Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Dec 10, 2024
1 parent eab0335 commit f589943
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
15 changes: 9 additions & 6 deletions ops/patch/cpu_only_pypkg.patch
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ index 1fc0bb5a0..f1c68470b 100644
+Note. ``xgboost-cpu`` does not provide an sdist (source distribution). You may install sdist
+from https://pypi.org/project/xgboost/.
diff --git python-package/pyproject.toml python-package/pyproject.toml
index 46c1451c2..c5dc908d9 100644
index 32abff1c6..5206f2e31 100644
--- python-package/pyproject.toml
+++ python-package/pyproject.toml
@@ -6,7 +6,7 @@ backend-path = ["."]
@@ -7,7 +7,7 @@ backend-path = ["."]
build-backend = "packager.pep517"

[project]
Expand All @@ -46,10 +46,13 @@ index 46c1451c2..c5dc908d9 100644
description = "XGBoost Python Package"
readme = { file = "README.rst", content-type = "text/x-rst" }
authors = [
@@ -82,3 +82,6 @@ class-attribute-naming-style = "snake_case"
@@ -71,6 +71,9 @@ disable = [
dummy-variables-rgx = "(unused|)_.*"
reports = false

# Allow single-letter variables
variable-rgx = "[a-zA-Z_][a-z0-9_]{0,30}$"
+
+[tool.hatch.build.targets.wheel]
+packages = ["xgboost/"]
+
[tool.pylint.basic]
# Enforce naming convention
const-naming-style = "UPPER_CASE"
6 changes: 3 additions & 3 deletions ops/patch/manylinux2014_warning.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git python-package/xgboost/core.py python-package/xgboost/core.py
index e8bc735e6..030972ef2 100644
index 079246239..2f1764812 100644
--- python-package/xgboost/core.py
+++ python-package/xgboost/core.py
@@ -262,6 +262,18 @@ Likely cause:
@@ -281,6 +281,18 @@ Likely cause:
)
raise ValueError(msg)

Expand All @@ -15,7 +15,7 @@ index e8bc735e6..030972ef2 100644
+ "features such as GPU algorithms or federated learning are not available. "
+ "To use these features, please upgrade to a recent Linux distro with glibc "
+ "2.28+, and install the 'manylinux_2_28' variant.",
+ FutureWarning
+ FutureWarning,
+ )
+
return lib
Expand Down
4 changes: 2 additions & 2 deletions ops/patch/remove_nccl_dep.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git python-package/pyproject.toml python-package/pyproject.toml
index 20d3f9974..953087ff4 100644
index b9f08dda6..32abff1c6 100644
--- python-package/pyproject.toml
+++ python-package/pyproject.toml
@@ -30,7 +30,6 @@ classifiers = [
@@ -32,7 +32,6 @@ classifiers = [
dependencies = [
"numpy",
"scipy",
Expand Down

0 comments on commit f589943

Please sign in to comment.