Create a Conda environment file from a Python project using uv.
Project description
uv2conda
Tiny Python package to create a conda environment file from a Python project using uv.
pip install uv2conda
uv2conda \
--project-dir "/path/to/my/project/" \
--name "my_conda_env_name" \
--python "3.12.7" \
--conda-env-path "my_conda_env.yaml" \
--requirements-path "requirements.txt" \
--uv-args "--prerelease=allow"
Or, in Python:
import uv2conda
uv2conda.make_conda_env_from_project_dir(
"/path/to/my/project/",
name="my_conda_env_name",
python_version="3.12.7",
out_path="environment.yaml",
requirements_path="requirements.txt",
uv_args=["--prerelease=allow"],
)
Example for this library:
$ uv2conda --python 3.12.7
name: uv2conda
dependencies:
- python=3.12.7
- pip
- pip:
- click==8.1.7
- colorama==0.4.6 ; sys_platform == 'win32' or platform_system == 'Windows'
- loguru==0.7.2
- markdown-it-py==3.0.0
- mdurl==0.1.2
- packaging==24.2
- pygments==2.18.0
- pyyaml==6.0.2
- rich==13.9.4
- shellingham==1.5.4
- typer==0.15.1
- typing-extensions==4.12.2
- win32-setctime==1.1.0 ; sys_platform == 'win32'
Related projects
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
uv2conda-1.0.0.tar.gz
(8.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uv2conda-1.0.0.tar.gz.
File metadata
- Download URL: uv2conda-1.0.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e36f9fbbe51dcd3f2a4d24c0bb116696d742757635727fbad0b4f3cb699e6866
|
|
| MD5 |
b6e2cc366172498526d14d0d4810ac0a
|
|
| BLAKE2b-256 |
2f808ca5b4324a9a410ed6c23df048f98d42709baf9135e64e0b0da26a157143
|
File details
Details for the file uv2conda-1.0.0-py3-none-any.whl.
File metadata
- Download URL: uv2conda-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a52b63c4a7447535681250a88988e05bfa41d4fbd1f8db2835a5b2dd602e15b5
|
|
| MD5 |
5fcbb94e11eae28b71bb6960f8c01ef4
|
|
| BLAKE2b-256 |
33cdcf6819827d4a1fefe927cfb4d12fedf5437a4346b4355c6cb63e5bb2a4cd
|