mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-11-03 21:23:54 +00:00 
			
		
		
		
	First, replace all usages in files in-place. I used my editor for this. If someone wants to add a one-liner that'd be fun. Then, update directory and file names: ``` # Run twice for nested directories find . -type d -print0 | xargs -0 rename s/puffin/uv/g find . -type d -print0 | xargs -0 rename s/puffin/uv/g # Update files find . -type f -print0 | xargs -0 rename s/puffin/uv/g ``` Then add all the files again ``` # Add all the files again git add crates git add python/uv # This one needs a force-add git add -f crates/uv-trampoline ```
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			806 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			806 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# Provide isolation for source distribution builds
 | 
						|
# https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html
 | 
						|
 | 
						|
FROM ubuntu:22.04
 | 
						|
# Feel free to add build dependencies you need
 | 
						|
RUN apt-get update \
 | 
						|
    && apt-get install -y --no-install-recommends \
 | 
						|
        autoconf \
 | 
						|
        build-essential \
 | 
						|
        cmake \
 | 
						|
        curl \
 | 
						|
        make \
 | 
						|
        pkg-config \
 | 
						|
        python3 \
 | 
						|
        python3-dev \
 | 
						|
        python3-pip \
 | 
						|
        python3-venv \
 | 
						|
    && apt-get clean \
 | 
						|
    && rm -rf /var/lib/apt/lists/*
 | 
						|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
 | 
						|
ENV HOME="/root"
 | 
						|
WORKDIR /app
 | 
						|
RUN python3 -m venv $HOME/venv-docker
 | 
						|
ENV VIRTUAL_ENV="$HOME/venv-docker"
 | 
						|
ENV PATH="$HOME/.cargo/bin:$HOME/venv-docker/bin:$PATH"
 | 
						|
RUN rustup default 1.75.0
 | 
						|
RUN rustup show
 |