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
2f129317
Unverified
Commit
2f129317
authored
Mar 08, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation
parent
f65c9ee6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
135 additions
and
16 deletions
+135
-16
README.md
+57
-7
README.rst
+67
-9
poetry/console/commands/config.py
+11
-0
No files found.
README.md
View file @
2f129317
...
@@ -88,7 +88,7 @@ pathlib2 = { version = "^2.2", python = "~2.7", allows_prereleases = true }
...
@@ -88,7 +88,7 @@ pathlib2 = { version = "^2.2", python = "~2.7", allows_prereleases = true }
cleo
=
{
git
=
"https://github.com/sdispater/cleo.git"
,
branch
=
"master"
}
cleo
=
{
git
=
"https://github.com/sdispater/cleo.git"
,
branch
=
"master"
}
# Optional dependencies (extras)
# Optional dependencies (extras)
pendulum
=
{
version
=
"^1.4"
,
optional
=
true
}
pendulum
=
{
version
=
"^1.4"
,
optional
=
true
}
[tool.poetry.dev-dependencies]
[tool.poetry.dev-dependencies]
pytest
=
"^3.0"
pytest
=
"^3.0"
...
@@ -347,15 +347,19 @@ dependencies:
...
@@ -347,15 +347,19 @@ dependencies:
*
`-o|--outdated`
: Show the latest version but only for packages that are outdated.
*
`-o|--outdated`
: Show the latest version but only for packages that are outdated.
###
package
###
build
The
`package`
command builds the source and wheels archives.
The
`build`
command builds the source and wheels archives.
```
bash
poetry build
```
Note that, at the moment, only pure python wheels are supported.
#### Options
#### Options
*
`--no-universal`
: Do not build a universal wheel.
*
`-F|--format`
: Limit the format to either wheel or sdist.
*
`--no-wheels`
: Build only the source package.
*
`-c|--clean`
: Make a clean package.
### publish
### publish
...
@@ -363,9 +367,55 @@ This command builds (if not already built) and publishes the package to the remo
...
@@ -363,9 +367,55 @@ This command builds (if not already built) and publishes the package to the remo
It will automatically register the package before uploading if this is the first time it is submitted.
It will automatically register the package before uploading if this is the first time it is submitted.
```
bash
poetry publish
```
#### Options
*
`-r|--repository`
: The repository to register the package to (default:
`pypi`
).
Should match a repository name set by the
[
`config`
](
#config
)
command.
### `config`
The
`config`
command allows you to edit poetry config settings and repositories.
```
bash
poetry config
--list
```
#### Usage
```
`bash
poetry config [options] [setting-key] [setting-value1] ... [setting-valueN]
```
`
`
setting-key
` is a configuration option name and `
setting-value1
` is a configuration value.
#### Modifying repositories
In addition to modifying the config section,
the config command also supports making changes to the repositories section by using it the following way:
```bash
poetry config repositories.foo https://foo.bar/simple/
```
This will set the url for repository `
foo
` to `
https://foo.bar/simple/
`.
If you want to store your credentials for a specific repository, you can do so easily:
```bash
poetry config http-basic.foo username password
```
If you do not specify the password you will be prompted to write it.
#### Options
#### Options
*
`-r|--repository`
: The repository to register the package to (default:
`pypi`
). Should match a section of your
`~/.pypirc`
file.
* `
--unset
`: Remove the configuration element named by `
setting-key
`.
* `
--list
`: Show the list of current config variables.
### search
### search
...
...
README.rst
View file @
2f129317
...
@@ -103,7 +103,7 @@ the new, `standardized <https://www.python.org/dev/peps/pep-0518/>`__
...
@@ -103,7 +103,7 @@ the new, `standardized <https://www.python.org/dev/peps/pep-0518/>`__
cleo
=
{
git
=
"https://github.com/sdispater/cleo.git"
,
branch
=
"master"
}
cleo
=
{
git
=
"https://github.com/sdispater/cleo.git"
,
branch
=
"master"
}
#
Optional
dependencies
(
extras
)
#
Optional
dependencies
(
extras
)
pendulum
=
{
version
=
"^1.4"
,
optional
=
true
}
pendulum
=
{
version
=
"^1.4"
,
optional
=
true
}
[
tool
.
poetry
.
dev
-
dependencies
]
[
tool
.
poetry
.
dev
-
dependencies
]
pytest
=
"^3.0"
pytest
=
"^3.0"
...
@@ -396,17 +396,21 @@ Options
...
@@ -396,17 +396,21 @@ Options
-
``-
o
|--
outdated
``:
Show
the
latest
version
but
only
for
packages
that
-
``-
o
|--
outdated
``:
Show
the
latest
version
but
only
for
packages
that
are
outdated
.
are
outdated
.
package
build
~~~~~~~
~~~~~
The
``
build
``
command
builds
the
source
and
wheels
archives
.
..
code
::
bash
poetry
build
The
``
package
``
command
builds
the
source
and
wheels
archives
.
Note
that
,
at
the
moment
,
only
pure
python
wheels
are
supported
.
Options
Options
^^^^^^^
^^^^^^^
-
``--
no
-
universal
``:
Do
not
build
a
universal
wheel
.
-
``-
F
|--
format
``:
Limit
the
format
to
either
wheel
or
sdist
.
-
``--
no
-
wheels
``:
Build
only
the
source
package
.
-
``-
c
|--
clean
``:
Make
a
clean
package
.
publish
publish
~~~~~~~
~~~~~~~
...
@@ -417,12 +421,66 @@ the remote repository.
...
@@ -417,12 +421,66 @@ the remote repository.
It
will
automatically
register
the
package
before
uploading
if
this
is
It
will
automatically
register
the
package
before
uploading
if
this
is
the
first
time
it
is
submitted
.
the
first
time
it
is
submitted
.
..
code
::
bash
poetry
publish
Options
Options
^^^^^^^
^^^^^^^
-
``-
r
|--
repository
``:
The
repository
to
register
the
package
to
-
``-
r
|--
repository
``:
The
repository
to
register
the
package
to
(
default
:
``
pypi
``).
Should
match
a
section
of
your
``~/.
pypirc
``
(
default
:
``
pypi
``).
Should
match
a
repository
name
set
by
the
file
.
```
config
``
<#
config
>`
__
command
.
``
config
``
~~~~~~~~~~
The
``
config
``
command
allows
you
to
edit
poetry
config
settings
and
repositories
.
..
code
::
bash
poetry
config
--
list
Usage
^^^^^
..
code
::
bash
poetry
config
[
options
]
[
setting
-
key
]
[
setting
-
value1
]
...
[
setting
-
valueN
]
``
setting
-
key
``
is
a
configuration
option
name
and
``
setting
-
value1
``
is
a
configuration
value
.
Modifying
repositories
^^^^^^^^^^^^^^^^^^^^^^
In
addition
to
modifying
the
config
section
,
the
config
command
also
supports
making
changes
to
the
repositories
section
by
using
it
the
following
way
:
..
code
::
bash
poetry
config
repositories
.
foo
https
://
foo
.
bar
/
simple
/
This
will
set
the
url
for
repository
``
foo
``
to
``
https
://
foo
.
bar
/
simple
/``.
If
you
want
to
store
your
credentials
for
a
specific
repository
,
you
can
do
so
easily
:
..
code
::
bash
poetry
config
http
-
basic
.
foo
username
password
If
you
do
not
specify
the
password
you
will
be
prompted
to
write
it
.
Options
^^^^^^^
-
``--
unset
``:
Remove
the
configuration
element
named
by
``
setting
-
key
``.
-
``--
list
``:
Show
the
list
of
current
config
variables
.
search
search
~~~~~~
~~~~~~
...
...
poetry/console/commands/config.py
View file @
2f129317
...
@@ -27,6 +27,17 @@ class ConfigCommand(Command):
...
@@ -27,6 +27,17 @@ class ConfigCommand(Command):
{ --unset : Unset configuration setting }
{ --unset : Unset configuration setting }
"""
"""
help
=
"""This command allows you to edit the poetry config settings and repositories..
To add a repository:
<comment>poetry repositories.foo https://bar.com/simple/</comment>
To remove a repository (repo is a short alias for repositories):
<comment>poetry --unset repo.foo</comment>
"""
def
__init__
(
self
):
def
__init__
(
self
):
super
()
.
__init__
()
super
()
.
__init__
()
...
...
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