-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(chore): update project configuration and dependencies
- Remove obsolete configuration files: .flake8, mypy.ini, setup.cfg, and setup.py to clean up the repository. - Add new documentation file `packages/poetry.md` for managing dependencies and workflows with Poetry. - Update `.gitignore` to include necessary patterns for ignoring files and directories. - Modify `packages/requirements-dev.txt` to reflect the latest development dependencies. - Update `poetry.lock` and `pyproject.toml` to synchronize with the current project dependencies and settings.
- Loading branch information
Showing
9 changed files
with
180 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters