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
37ec1447
Commit
37ec1447
authored
Mar 07, 2019
by
Mohamed Seleem
Committed by
Sébastien Eustace
Mar 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install: option to skip current project package (#757)
parent
75e3bbae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
README.md
+19
-0
docs/docs/cli.md
+19
-0
poetry/console/commands/install.py
+4
-0
No files found.
README.md
View file @
37ec1447
...
@@ -340,9 +340,28 @@ poetry install --extras "mysql pgsql"
...
@@ -340,9 +340,28 @@ poetry install --extras "mysql pgsql"
poetry install
-E
mysql
-E
pgsql
poetry install
-E
mysql
-E
pgsql
```
```
By default
`poetry`
will install your project's package everytime you run
`install`
:
```
bash
$
poetry install
Installing dependencies from lock file
Nothing to install or update
- Installing <your-package-name>
(
x.x.x
)
```
If you want to skip this installation, use the
`--no-root`
option.
```
bash
poetry install
--no-root
```
#### Options
#### Options
*
`--no-dev`
: Do not install dev dependencies.
*
`--no-dev`
: Do not install dev dependencies.
*
`--no-root`
: Do not install the root package (your project).
*
`-E|--extras`
: Features to install (multiple values allowed).
*
`-E|--extras`
: Features to install (multiple values allowed).
### update
### update
...
...
docs/docs/cli.md
View file @
37ec1447
...
@@ -124,9 +124,28 @@ poetry install --extras "mysql pgsql"
...
@@ -124,9 +124,28 @@ poetry install --extras "mysql pgsql"
poetry install
-E
mysql
-E
pgsql
poetry install
-E
mysql
-E
pgsql
```
```
By default
`poetry`
will install your project's package everytime you run
`install`
:
```
bash
$
poetry install
Installing dependencies from lock file
Nothing to install or update
- Installing <your-package-name>
(
x.x.x
)
```
If you want to skip this installation, use the
`--no-root`
option.
```
bash
poetry install
--no-root
```
### Options
### Options
*
`--no-dev`
: Do not install dev dependencies.
*
`--no-dev`
: Do not install dev dependencies.
*
`--no-root`
: Do not install the root package (your project).
*
`--extras (-E)`
: Features to install (multiple values allowed).
*
`--extras (-E)`
: Features to install (multiple values allowed).
## update
## update
...
...
poetry/console/commands/install.py
View file @
37ec1447
...
@@ -9,6 +9,7 @@ class InstallCommand(EnvCommand):
...
@@ -9,6 +9,7 @@ class InstallCommand(EnvCommand):
install
install
{ --no-dev : Do not install dev dependencies. }
{ --no-dev : Do not install dev dependencies. }
{ --no-root : Do not install the root package (your project). }
{ --dry-run : Outputs the operations but will not execute anything
{ --dry-run : Outputs the operations but will not execute anything
(implicitly enables --verbose). }
(implicitly enables --verbose). }
{ --E|extras=* : Extra sets of dependencies to install. }
{ --E|extras=* : Extra sets of dependencies to install. }
...
@@ -55,6 +56,9 @@ exist it will look for <comment>pyproject.toml</> and do the same.
...
@@ -55,6 +56,9 @@ exist it will look for <comment>pyproject.toml</> and do the same.
if
return_code
!=
0
:
if
return_code
!=
0
:
return
return_code
return
return_code
if
not
self
.
option
(
"no-root"
):
return
0
try
:
try
:
builder
=
SdistBuilder
(
self
.
poetry
,
NullEnv
(),
NullIO
())
builder
=
SdistBuilder
(
self
.
poetry
,
NullEnv
(),
NullIO
())
except
ModuleOrPackageNotFound
:
except
ModuleOrPackageNotFound
:
...
...
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