Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
adc3cde3
Unverified
Commit
adc3cde3
authored
Mar 06, 2021
by
Akhilesh Raju
Committed by
GitHub
Mar 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc: Update "extras" section in pyproject.toml file
Resolves: #1076
parent
6eaa2984
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
docs/docs/pyproject.md
+18
-1
No files found.
docs/docs/pyproject.md
View file @
adc3cde3
...
@@ -243,15 +243,32 @@ mysqlclient = { version = "^1.3", optional = true }
...
@@ -243,15 +243,32 @@ mysqlclient = { version = "^1.3", optional = true }
[tool.poetry.extras]
[tool.poetry.extras]
mysql
=
["mysqlclient"]
mysql
=
["mysqlclient"]
pgsql
=
["psycopg2"]
pgsql
=
["psycopg2"]
databases
=
[
"mysqlclient"
,
"psycopg2"
]
```
```
When installing packages, you can specify extras by using the
`-E|--extras`
option:
When installing packages
with Poetry
, you can specify extras by using the
`-E|--extras`
option:
```
bash
```
bash
poetry install
--extras
"mysql pgsql"
poetry install
--extras
"mysql pgsql"
poetry install
-E
mysql
-E
pgsql
poetry install
-E
mysql
-E
pgsql
```
```
When installing or specifying Poetry-built packages, the extras defined in this section can be activated
as described in
[
PEP 508
](
https://www.python.org/dev/peps/pep-0508/#extras
)
.
For example, when installing the package using
`pip`
, the dependencies required by
the
`databases`
extra can be installed as shown below.
```
bash
pip install awesome[databases]
```
!!!note
The dependencies specified for each `extra` must already be defined as project dependencies.
Dependencies listed in the `dev-dependencies` section cannot be specified as extras.
## `plugins`
## `plugins`
Poetry supports arbitrary plugins which work similarly to
Poetry supports arbitrary plugins which work similarly to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment