4242import java .util .List ;
4343
4444/**
45- * UV -based environment manager.
46- * UV is a fast Python package installer and resolver written in Rust.
45+ * uv -based environment manager.
46+ * uv is a fast Python package installer and resolver written in Rust.
4747 *
4848 * @author Curtis Rueden
4949 * @author Claude Code
@@ -58,13 +58,13 @@ class Uv extends Tool {
5858 /** Path where Appose installs uv by default ({@code .uv} subdirectory thereof). */
5959 public static final String BASE_PATH = Environments .apposeEnvsDir ();
6060
61- /** UV version to download. */
61+ /** uv version to download. */
6262 private static final String UV_VERSION = "0.9.5" ;
6363
6464 /** The filename to download for the current platform. */
6565 private static final String UV_BINARY = uvBinary ();
6666
67- /** URL from where UV is downloaded to be installed. */
67+ /** URL from where uv is downloaded to be installed. */
6868 public final static String UV_URL = UV_BINARY == null ? null :
6969 "https://github.com/astral-sh/uv/releases/download/" + UV_VERSION + "/" + UV_BINARY ;
7070
@@ -93,10 +93,10 @@ private static String uvBinary() {
9393 }
9494
9595 /**
96- * Create a new {@link Uv} object. The root dir for the UV installation
96+ * Create a new {@link Uv} object. The root dir for the uv installation
9797 * will be the default base path defined at {@link #BASE_PATH}
9898 * <p>
99- * It is expected that the UV installation has executable commands as shown below:
99+ * It is expected that the uv installation has executable commands as shown below:
100100 * </p>
101101 * <pre>
102102 * UV_ROOT
@@ -110,10 +110,10 @@ public Uv() {
110110 }
111111
112112 /**
113- * Create a new Uv object. The root dir for UV installation can be
113+ * Create a new Uv object. The root dir for uv installation can be
114114 * specified as {@code String}.
115115 * <p>
116- * It is expected that the UV installation has executable commands as shown below:
116+ * It is expected that the uv installation has executable commands as shown below:
117117 * </p>
118118 * <pre>
119119 * UV_ROOT
@@ -123,7 +123,7 @@ public Uv() {
123123 * </pre>
124124 *
125125 * @param rootdir
126- * The root dir for UV installation.
126+ * The root dir for uv installation.
127127 */
128128 public Uv (final String rootdir ) {
129129 super (
@@ -138,13 +138,13 @@ public Uv(final String rootdir) {
138138 protected void decompress (final File archive ) throws IOException , InterruptedException {
139139 File uvBaseDir = new File (rootdir );
140140 if (!uvBaseDir .isDirectory () && !uvBaseDir .mkdirs ())
141- throw new IOException ("Failed to create UV default directory " +
141+ throw new IOException ("Failed to create uv default directory " +
142142 uvBaseDir .getParentFile ().getAbsolutePath () +
143143 ". Please try installing it in another directory." );
144144
145145 File uvBinDir = Paths .get (rootdir ).resolve (".uv" ).resolve ("bin" ).toFile ();
146146 if (!uvBinDir .exists () && !uvBinDir .mkdirs ())
147- throw new IOException ("Failed to create UV bin directory: " + uvBinDir );
147+ throw new IOException ("Failed to create uv bin directory: " + uvBinDir );
148148
149149 // Extract archive.
150150 Downloads .unpack (archive , uvBinDir );
@@ -201,13 +201,13 @@ protected void decompress(final File archive) throws IOException, InterruptedExc
201201 }
202202
203203 /**
204- * Create a virtual environment using UV .
204+ * Create a virtual environment using uv .
205205 *
206206 * @param envDir The directory for the virtual environment.
207207 * @param pythonVersion Optional Python version (e.g., "3.11"). Can be null for default.
208208 * @throws IOException If an I/O error occurs.
209209 * @throws InterruptedException If the current thread is interrupted.
210- * @throws IllegalStateException if UV has not been installed
210+ * @throws IllegalStateException if uv has not been installed
211211 */
212212 public void createVenv (final File envDir , String pythonVersion ) throws IOException , InterruptedException {
213213 List <String > args = new ArrayList <>();
@@ -227,7 +227,7 @@ public void createVenv(final File envDir, String pythonVersion) throws IOExcepti
227227 * @param packages The packages to install.
228228 * @throws IOException If an I/O error occurs.
229229 * @throws InterruptedException If the current thread is interrupted.
230- * @throws IllegalStateException if UV has not been installed
230+ * @throws IllegalStateException if uv has not been installed
231231 */
232232 public void pipInstall (final File envDir , String ... packages ) throws IOException , InterruptedException {
233233 List <String > args = new ArrayList <>();
@@ -246,7 +246,7 @@ public void pipInstall(final File envDir, String... packages) throws IOException
246246 * @param requirementsFile Path to requirements.txt file.
247247 * @throws IOException If an I/O error occurs.
248248 * @throws InterruptedException If the current thread is interrupted.
249- * @throws IllegalStateException if UV has not been installed
249+ * @throws IllegalStateException if uv has not been installed
250250 */
251251 public void pipInstallFromRequirements (final File envDir , String requirementsFile ) throws IOException , InterruptedException {
252252 exec ("pip" , "install" , "--python" , envDir .getAbsolutePath (), "-r" , requirementsFile );
@@ -260,7 +260,7 @@ public void pipInstallFromRequirements(final File envDir, String requirementsFil
260260 * @param pythonVersion Optional Python version (e.g., "3.11"). Can be null for default.
261261 * @throws IOException If an I/O error occurs.
262262 * @throws InterruptedException If the current thread is interrupted.
263- * @throws IllegalStateException if UV has not been installed
263+ * @throws IllegalStateException if uv has not been installed
264264 */
265265 public void sync (final File projectDir , String pythonVersion ) throws IOException , InterruptedException {
266266 List <String > args = new ArrayList <>();
0 commit comments