Skip to content

Commit f589943

Browse files
committed
Update patch
1 parent eab0335 commit f589943

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

ops/patch/cpu_only_pypkg.patch

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ index 1fc0bb5a0..f1c68470b 100644
3434
+Note. ``xgboost-cpu`` does not provide an sdist (source distribution). You may install sdist
3535
+from https://pypi.org/project/xgboost/.
3636
diff --git python-package/pyproject.toml python-package/pyproject.toml
37-
index 46c1451c2..c5dc908d9 100644
37+
index 32abff1c6..5206f2e31 100644
3838
--- python-package/pyproject.toml
3939
+++ python-package/pyproject.toml
40-
@@ -6,7 +6,7 @@ backend-path = ["."]
40+
@@ -7,7 +7,7 @@ backend-path = ["."]
4141
build-backend = "packager.pep517"
4242

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

51-
# Allow single-letter variables
52-
variable-rgx = "[a-zA-Z_][a-z0-9_]{0,30}$"
53-
+
5453
+[tool.hatch.build.targets.wheel]
5554
+packages = ["xgboost/"]
55+
+
56+
[tool.pylint.basic]
57+
# Enforce naming convention
58+
const-naming-style = "UPPER_CASE"

ops/patch/manylinux2014_warning.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git python-package/xgboost/core.py python-package/xgboost/core.py
2-
index e8bc735e6..030972ef2 100644
2+
index 079246239..2f1764812 100644
33
--- python-package/xgboost/core.py
44
+++ python-package/xgboost/core.py
5-
@@ -262,6 +262,18 @@ Likely cause:
5+
@@ -281,6 +281,18 @@ Likely cause:
66
)
77
raise ValueError(msg)
88

@@ -15,7 +15,7 @@ index e8bc735e6..030972ef2 100644
1515
+ "features such as GPU algorithms or federated learning are not available. "
1616
+ "To use these features, please upgrade to a recent Linux distro with glibc "
1717
+ "2.28+, and install the 'manylinux_2_28' variant.",
18-
+ FutureWarning
18+
+ FutureWarning,
1919
+ )
2020
+
2121
return lib

ops/patch/remove_nccl_dep.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git python-package/pyproject.toml python-package/pyproject.toml
2-
index 20d3f9974..953087ff4 100644
2+
index b9f08dda6..32abff1c6 100644
33
--- python-package/pyproject.toml
44
+++ python-package/pyproject.toml
5-
@@ -30,7 +30,6 @@ classifiers = [
5+
@@ -32,7 +32,6 @@ classifiers = [
66
dependencies = [
77
"numpy",
88
"scipy",

0 commit comments

Comments
 (0)