From 80bbc44f4b01d2286059fa2c6948e41a131cb1f7 Mon Sep 17 00:00:00 2001 From: Neil Girdhar Date: Sun, 23 Jul 2023 07:49:00 -0400 Subject: [PATCH] Use an explicit source Using an explicit source prevents Poetry from looking for all libraries in this index. --- README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 800395b..cd0ebd3 100644 --- a/README.md +++ b/README.md @@ -14,17 +14,20 @@ https://jorenham.github.io/jax_pep503/ ... [[tool.poetry.source]] - name = "jorenham/jax_pep503" + name = "PyPI" + priority = "primary" + + [[tool.poetry.source]] + name = "jax_pep503" url = "https://jorenham.github.io/jax_pep503/" - secondary = true - + priority = "explicit" ... ``` - Now you can add `jax[cuda]` using: ```bash - poetry add jax[cuda] + poetry add --source "jorenham/jax_pep503" jax[cuda] ``` See the [example project](example_project) for more details @@ -34,4 +37,4 @@ See the [example project](example_project) for more details - [PEP 503 – Simple Repository API](https://peps.python.org/pep-0503/) - [google/jax](https://github.com/google/jax) - [google/jax#5410 – Please provide PEP 503 compliant indices for CUDA versions of packages](https://github.com/google/jax/issues/5410) -- [jax-releases](https://storage.googleapis.com/jax-releases/) (not compatible with PEP 503) \ No newline at end of file +- [jax-releases](https://storage.googleapis.com/jax-releases/) (not compatible with PEP 503)