Skip to content

Commit

Permalink
Merge pull request #25 from MohmdFo/main
Browse files Browse the repository at this point in the history
build(chore): reorganize and update project dependencies and document…
  • Loading branch information
sepehr-akbarzadeh authored Aug 14, 2024
2 parents 4a3e8df + ad49f49 commit b3f197e
Show file tree
Hide file tree
Showing 6 changed files with 979 additions and 758 deletions.
30 changes: 30 additions & 0 deletions packages/poetry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
To export a `requirements-dev.txt` file containing both the main dependencies and the development dependencies from your `pyproject.toml` using Poetry, you can use the `--with` option to include the development dependencies.

Here is the command you can use:

```bash
poetry export -f requirements.txt --output requirements-dev.txt --with dev
```

Explanation:
- `-f requirements.txt`: Specifies the format of the output file.
- `--output requirements-dev.txt`: Specifies the name of the output file.
- `--with dev`: Includes the dependencies from the `dev` group.

This command will generate a `requirements-dev.txt` file that includes both the main dependencies and the development dependencies.

If you want to export the main dependencies to `requirements.txt` and the combined dependencies (main + dev) to `requirements-dev.txt`, you can use the following commands:

1. Export main dependencies to `requirements.txt`:

```bash
poetry export -f requirements.txt --output requirements.txt
```

2. Export main + dev dependencies to `requirements-dev.txt`:

```bash
poetry export -f requirements.txt --output requirements-dev.txt --with dev
```

This way, you'll have two separate files: `requirements.txt` for the main dependencies and `requirements-dev.txt` for both the main and development dependencies.
Loading

0 comments on commit b3f197e

Please sign in to comment.