# poetry-add-requirements.txt
Add dependencies specified in requirements.txt file(s) to your Poetry project
- [poetry-add-requirements.txt](#poetry-add-requirementstxt)
- [Features](#features)
- [Installation](#installation)
- [pipx](#pipx)
- [pip](#pip)
- [Usage](#usage)
- [Develop](#develop)
## Features
- Auto detect charset of requirements.txt file(s) and feed normalized dependency specs to `poetry`.
- Stop on first `poetry add` error.
- Ignore dependency version requirements specified in requirements.txt file(s).
## Installation
### pipx
This is the recommended installation method.
```
$ pipx install poetry-add-requirements.txt
```
### [pip](https://pypi.org/project/poetry-add-requirements.txt/)
```
$ pip install poetry-add-requirements.txt
```
## Usage
Run `poetry-add-requirements.txt`, optionally specify your requirements.txt files and `--dev` for dev dependencies.
`poeareq` is provided is an alias to `poetry-add-requirements.txt`.
```
$ poeareq --help
usage: poetry-add-requirements.txt [-h] [-D] [-I] [-V] [requirements.txt files ...]
Add dependencies specified in requirements.txt to your Poetry project
positional arguments:
requirements.txt file(s)
Path(s) to your requirements.txt file(s) (default: requirements.txt)
options:
-h, --help show this help message and exit
-D, --dev Add to development dependencies (default: False)
-I, --ignore-version-requirements
Ignore dependency version requirements in requirements.txt file(s) (default: False)
-V, --version show program's version number and exit
```
## Develop
```
$ git clone https://github.com/tddschn/poetry-add-requirements.txt.git
$ cd poetry-add-requirements.txt
$ poetry install
```
Raw data
{
"_id": null,
"home_page": "https://github.com/tddschn/poetry-add-requirements.txt",
"name": "poetry-add-requirements-txt",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "poetry,requirements.txt",
"author": "Xinyuan Chen",
"author_email": "45612704+tddschn@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/ad/c2/4164410ba0096caea89a82b4d1e74b98e9b5821c15acc125cae27e82854f/poetry_add_requirements_txt-1.1.4.tar.gz",
"platform": null,
"description": "# poetry-add-requirements.txt\n\nAdd dependencies specified in requirements.txt file(s) to your Poetry project\n\n- [poetry-add-requirements.txt](#poetry-add-requirementstxt)\n - [Features](#features)\n - [Installation](#installation)\n - [pipx](#pipx)\n - [pip](#pip)\n - [Usage](#usage)\n - [Develop](#develop)\n\n## Features\n\n- Auto detect charset of requirements.txt file(s) and feed normalized dependency specs to `poetry`.\n- Stop on first `poetry add` error.\n- Ignore dependency version requirements specified in requirements.txt file(s).\n## Installation\n\n### pipx\n\nThis is the recommended installation method.\n\n```\n$ pipx install poetry-add-requirements.txt\n```\n\n### [pip](https://pypi.org/project/poetry-add-requirements.txt/)\n\n```\n$ pip install poetry-add-requirements.txt\n```\n\n## Usage\n\nRun `poetry-add-requirements.txt`, optionally specify your requirements.txt files and `--dev` for dev dependencies.\n\n`poeareq` is provided is an alias to `poetry-add-requirements.txt`.\n\n```\n$ poeareq --help\n\nusage: poetry-add-requirements.txt [-h] [-D] [-I] [-V] [requirements.txt files ...]\n\nAdd dependencies specified in requirements.txt to your Poetry project\n\npositional arguments:\n requirements.txt file(s)\n Path(s) to your requirements.txt file(s) (default: requirements.txt)\n\noptions:\n -h, --help show this help message and exit\n -D, --dev Add to development dependencies (default: False)\n -I, --ignore-version-requirements\n Ignore dependency version requirements in requirements.txt file(s) (default: False)\n -V, --version show program's version number and exit\n```\n\n\n## Develop\n\n```\n$ git clone https://github.com/tddschn/poetry-add-requirements.txt.git\n$ cd poetry-add-requirements.txt\n$ poetry install\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Add dependencies specified in requirements.txt file(s) to your Poetry project",
"version": "1.1.4",
"project_urls": {
"Bug Tracker": "https://github.com/tddschn/poetry-add-requirements.txt/issues",
"Homepage": "https://github.com/tddschn/poetry-add-requirements.txt",
"Repository": "https://github.com/tddschn/poetry-add-requirements.txt"
},
"split_keywords": [
"poetry",
"requirements.txt"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "05475ddb3547f37f63a78a429d7505758ff3ec28637f04d5798790dc0614aba8",
"md5": "fcca695d9349bb7c203e6d4cf0a59d6d",
"sha256": "1a1ecc38423a89e686c1f460283a950fdd5b9b6ba3c3bdf3386b6e99a0768df8"
},
"downloads": -1,
"filename": "poetry_add_requirements_txt-1.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fcca695d9349bb7c203e6d4cf0a59d6d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 4875,
"upload_time": "2023-07-30T04:23:49",
"upload_time_iso_8601": "2023-07-30T04:23:49.105075Z",
"url": "https://files.pythonhosted.org/packages/05/47/5ddb3547f37f63a78a429d7505758ff3ec28637f04d5798790dc0614aba8/poetry_add_requirements_txt-1.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "adc24164410ba0096caea89a82b4d1e74b98e9b5821c15acc125cae27e82854f",
"md5": "af9112e133b9f10f7f7c6c4502225334",
"sha256": "d4c6c5296426035d52f6f3171ea2ba315397004bded07c8758c6eacc3a0f42ea"
},
"downloads": -1,
"filename": "poetry_add_requirements_txt-1.1.4.tar.gz",
"has_sig": false,
"md5_digest": "af9112e133b9f10f7f7c6c4502225334",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 3513,
"upload_time": "2023-07-30T04:23:50",
"upload_time_iso_8601": "2023-07-30T04:23:50.796855Z",
"url": "https://files.pythonhosted.org/packages/ad/c2/4164410ba0096caea89a82b4d1e74b98e9b5821c15acc125cae27e82854f/poetry_add_requirements_txt-1.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-30 04:23:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tddschn",
"github_project": "poetry-add-requirements.txt",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "poetry-add-requirements-txt"
}