Skip to content

Commit 9819828

Browse files
committed
tighten wheel size limits, enforce PEP 639 metadata
1 parent 8ffc790 commit 9819828

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,9 @@ repos:
2323
hooks:
2424
- id: rapids-dependency-file-generator
2525
args: ['--clean']
26+
- repo: https://github.com/rapidsai/pre-commit-hooks
27+
rev: v1.3.3
28+
hooks:
29+
- id: verify-pyproject-license
2630
default_language_version:
2731
python: python3

ci/build_wheel.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ set -euo pipefail
77
# Configure sccache and set the date string
88
source rapids-configure-sccache
99
source rapids-date-string
10+
RAPIDS_INIT_PIP_REMOVE_NVIDIA_INDEX="true"
11+
export RAPIDS_INIT_PIP_REMOVE_NVIDIA_INDEX
1012
source rapids-init-pip
1113

1214
rapids-logger "Install Node.js required for building the extension front-end"

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ build-backend = "hatchling.build"
1212
[project]
1313
name = "jupyterlab_nvdashboard"
1414
readme = "README.md"
15+
license = "BSD-3-Clause"
1516
license-files = [
1617
"LICENSE",
1718
]
@@ -121,5 +122,5 @@ select = [
121122
"distro-too-large-compressed",
122123
]
123124

124-
# PyPI limit is 100 MiB, fail CI before we get too close to that
125-
max_allowed_size_compressed = '75M'
125+
# PyPI hard limit is 1GiB, but try to keep this as small as possible
126+
max_allowed_size_compressed = '10Mi'

0 commit comments

Comments
 (0)