Skip to content

Commit 4e25397

Browse files
committed
Revert
1 parent f2513e4 commit 4e25397

File tree

4 files changed

+8
-60
lines changed

4 files changed

+8
-60
lines changed

crates/uv-client/src/registry_client.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,7 @@ impl RegistryClient {
704704
pub async fn fetch_simple_index(
705705
&self,
706706
index_url: &IndexUrl,
707-
download_concurrency: &Semaphore,
708707
) -> Result<SimpleIndexMetadata, Error> {
709-
let _permit = download_concurrency.acquire().await;
710-
711708
// Format the URL for PyPI.
712709
let mut url = index_url.url().clone();
713710
url.path_segments_mut()
@@ -1309,10 +1306,15 @@ pub struct VersionSourceDist {
13091306
#[rkyv(derive(Debug))]
13101307
pub struct SimpleIndexMetadata {
13111308
/// The list of project names available in the index.
1312-
pub projects: Vec<PackageName>,
1309+
projects: Vec<PackageName>,
13131310
}
13141311

13151312
impl SimpleIndexMetadata {
1313+
/// Iterate over the projects in the index.
1314+
pub fn iter(&self) -> impl Iterator<Item = &PackageName> {
1315+
self.projects.iter()
1316+
}
1317+
13161318
/// Create a [`SimpleIndexMetadata`] from a [`PypiSimpleIndex`].
13171319
fn from_pypi_index(index: PypiSimpleIndex) -> Self {
13181320
Self {

crates/uv-dev/src/list_packages.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use anstream::println;
22
use anyhow::Result;
33
use clap::Parser;
4-
use tokio::sync::Semaphore;
54

65
use uv_cache::{Cache, CacheArgs};
76
use uv_client::{BaseClientBuilder, RegistryClientBuilder};
@@ -28,10 +27,9 @@ pub(crate) async fn list_packages(
2827
.build();
2928

3029
let index_url = IndexUrl::parse(&args.url, None)?;
31-
let concurrency = Semaphore::new(Semaphore::MAX_PERMITS);
32-
let index = client.fetch_simple_index(&index_url, &concurrency).await?;
30+
let index = client.fetch_simple_index(&index_url).await?;
3331

34-
for package_name in &index.projects {
32+
for package_name in index.iter() {
3533
println!("{}", package_name);
3634
}
3735

crates/uv-distribution/src/source/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,8 +1536,6 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
15361536
return Err(Error::HashesNotSupportedGit(source.to_string()));
15371537
}
15381538

1539-
// STOPSHIP(charlie): Here, we can fetch the pre-built wheel.
1540-
15411539
// Fetch the Git repository.
15421540
let fetch = self
15431541
.build_context

hash_test.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)