Name | minpin JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | Automatically add minimum version pins to unpinned packages in conda YAML files. |
upload_time | 2024-11-19 00:49:25 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | None |
keywords |
conda
pinning
anaconda-project
dependencies
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
```
/ \__
( @\_____
/ O
/ (_____/
/_____/ U
```
# Min Pin
Min Pin is a command-line tool that automatically adds minimum version pins to unpinned packages in conda-friendly YAML files, such as `environment.yml` or `anaconda-project.yml`.
## Features
- Parses `conda list` and `pip list` to retrieve installed package versions.
- Updates YAML files by adding minimum version pins to unpinned packages.
- Handles both conda and pip dependencies.
- Preserves the original structure and comments of the YAML file.
## Installation
```bash
pip install minpin
```
## Usage
```bash
minpin ./environment.yml
```
Optionally, specify a conda list output file which you can create with `conda list > conda_list.txt`:
```bash
minpin anaconda-project.yml --conda-list conda_list.txt
```
## Example
**Input: original `environment.yml`**
```yaml
channels:
- conda-forge
dependencies:
- python=3.10
- numpy
- pandas>=1.3
- pip
- pip:
- requests
- flask
```
**Output: Updated `environment.yml`**
```yaml
channels:
- conda-forge
dependencies:
- python=3.10
- numpy>=1.24.0 # auto min pinned 2024-11-18
- pandas>=1.3.3 # auto min pinned 2024-11-18
- pip
- pip:
- requests>=2.28.2 # auto min pinned 2024-11-18
- flask>=2.2.3 # auto min pinned 2024-11-18
```
Raw data
{
"_id": null,
"home_page": null,
"name": "minpin",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "conda, pinning, anaconda-project, dependencies",
"author": null,
"author_email": "Demetris Roumis <8qdo8efl3@mozmail.com>",
"download_url": "https://files.pythonhosted.org/packages/12/f9/ca7a7e6acd23d40e317e1a5a15afac211b007767392c76b1fd1dcb09ef33/minpin-1.0.0.tar.gz",
"platform": null,
"description": "```\n / \\__\n ( @\\_____\n / O\n / (_____/ \n/_____/ U \n```\n\n# Min Pin\n\nMin Pin is a command-line tool that automatically adds minimum version pins to unpinned packages in conda-friendly YAML files, such as `environment.yml` or `anaconda-project.yml`.\n\n## Features\n\n- Parses `conda list` and `pip list` to retrieve installed package versions.\n- Updates YAML files by adding minimum version pins to unpinned packages.\n- Handles both conda and pip dependencies.\n- Preserves the original structure and comments of the YAML file.\n\n## Installation\n\n```bash\npip install minpin\n```\n\n## Usage\n\n```bash\nminpin ./environment.yml\n```\n\nOptionally, specify a conda list output file which you can create with `conda list > conda_list.txt`:\n\n```bash\nminpin anaconda-project.yml --conda-list conda_list.txt\n```\n\n## Example\n\n**Input: original `environment.yml`**\n\n```yaml\nchannels:\n - conda-forge\ndependencies:\n - python=3.10\n - numpy\n - pandas>=1.3\n - pip\n - pip:\n - requests\n - flask\n```\n\n\n\n**Output: Updated `environment.yml`**\n```yaml\nchannels:\n - conda-forge\ndependencies:\n - python=3.10\n - numpy>=1.24.0 # auto min pinned 2024-11-18\n - pandas>=1.3.3 # auto min pinned 2024-11-18\n - pip\n - pip:\n - requests>=2.28.2 # auto min pinned 2024-11-18\n - flask>=2.2.3 # auto min pinned 2024-11-18\n```\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Automatically add minimum version pins to unpinned packages in conda YAML files.",
"version": "1.0.0",
"project_urls": null,
"split_keywords": [
"conda",
" pinning",
" anaconda-project",
" dependencies"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d67b004b40afab7dfa0fae2be6375e1323de5410f999821c2e3d7504b043ec1",
"md5": "2498581acce9640dce2b9a3d643e370d",
"sha256": "ec325a082253b60808a31167870ffd19fc98127173d9344423c3317973ea492b"
},
"downloads": -1,
"filename": "minpin-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2498581acce9640dce2b9a3d643e370d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4865,
"upload_time": "2024-11-19T00:49:23",
"upload_time_iso_8601": "2024-11-19T00:49:23.366750Z",
"url": "https://files.pythonhosted.org/packages/6d/67/b004b40afab7dfa0fae2be6375e1323de5410f999821c2e3d7504b043ec1/minpin-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "12f9ca7a7e6acd23d40e317e1a5a15afac211b007767392c76b1fd1dcb09ef33",
"md5": "d31be46c77798e5ffa21955b9074904b",
"sha256": "2953982f5b2e8c957b72479082010910a83097106eff51b7803f29b25f039fac"
},
"downloads": -1,
"filename": "minpin-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "d31be46c77798e5ffa21955b9074904b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 5277,
"upload_time": "2024-11-19T00:49:25",
"upload_time_iso_8601": "2024-11-19T00:49:25.243435Z",
"url": "https://files.pythonhosted.org/packages/12/f9/ca7a7e6acd23d40e317e1a5a15afac211b007767392c76b1fd1dcb09ef33/minpin-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 00:49:25",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "minpin"
}