Skip to content

Commit 6ab5c3f

Browse files
committed
Remove Chaquopy repository from default pip command line
1 parent bcc2207 commit 6ab5c3f

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

cibuildwheel/platforms/android.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,6 @@ def test_wheel(
408408
"--only-binary=:all:",
409409
"--platform",
410410
platform_tag,
411-
# This index contains Android wheels for many of the most common packages
412-
# which the wheel under test might depend on. Once enough of those packages
413-
# have been released for Android on PyPI, this argument can be removed.
414-
"--extra-index-url",
415-
"https://chaquo.com/pypi-13.1/",
416411
"--target",
417412
site_packages_dir,
418413
f"{wheel}{build_options.test_extras}",

docs/platforms.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,20 @@ Cross-architecture testing is not supported.
236236
On Linux, the emulator needs access to the KVM virtualization interface, and a DISPLAY
237237
environment variable pointing at an X server. Xvfb is acceptable.
238238

239+
The test process uses the same testbed used by CPython itself to run the CPython test
240+
suite. It is a Gradle project that has been configured to have a single JUnit test,
241+
the result of which reports the success or failure of running the test command.
242+
239243
The Android test environment can't support running shell scripts, so the
240244
[`test-command`](options.md#test-command) must be a Python command – see its
241245
documentation for details.
242246

243-
The test process uses the same testbed used by CPython itself to run the CPython test
244-
suite. It is a Gradle project that has been configured to have a single JUnit test,
245-
the result of which reports the success or failure of running the test command.
247+
If your package has dependencies which haven't been released on PyPI yet, you may want
248+
to use the [`environment`](options.md#environment) option to set `PIP_EXTRA_INDEX_URL`
249+
to one of the following URLs:
250+
251+
* https://chaquo.com/pypi-13.1
252+
* https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
246253

247254

248255
## iOS {: #ios}

test/test_android.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ def test_api_level(tmp_path, capfd):
232232
# Verify that Android dependencies can be installed from the Chaquopy repository, and
233233
# that wheels tagged with an older version of Android (in this case 24) are still
234234
# accepted.
235+
"CIBW_ENVIRONMENT": "PIP_EXTRA_INDEX_URL=https://chaquo.com/pypi-13.1",
235236
"CIBW_TEST_REQUIRES": "bitarray==3.0.0",
236237
"CIBW_TEST_COMMAND": (
237238
"python -c 'from bitarray import bitarray; print(~bitarray(\"01100\"))'"

0 commit comments

Comments
 (0)