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
46d3ce8b
Unverified
Commit
46d3ce8b
authored
Apr 13, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix search and self:update commands not working outside a project
parent
110ae531
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
CHANGELOG.md
+2
-0
poetry/console/commands/search.py
+4
-4
poetry/console/commands/self/update.py
+3
-2
No files found.
CHANGELOG.md
View file @
46d3ce8b
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
-
Fixed resolution with bad (empty) releases.
-
Fixed resolution with bad (empty) releases.
-
Fixed
`version`
for prereleases.
-
Fixed
`version`
for prereleases.
-
Fixed
`search`
not working outside of a project.
-
Fixed
`self:update`
not working outside of a project.
## [0.8.0] - 2018-04-13
## [0.8.0] - 2018-04-13
...
...
poetry/console/commands/search.py
View file @
46d3ce8b
...
@@ -11,13 +11,13 @@ class SearchCommand(Command):
...
@@ -11,13 +11,13 @@ class SearchCommand(Command):
"""
"""
def
handle
(
self
):
def
handle
(
self
):
from
poetry.repositories.
base_repository
import
Base
Repository
from
poetry.repositories.
pypi_repository
import
PyPi
Repository
flags
=
Base
Repository
.
SEARCH_FULLTEXT
flags
=
PyPi
Repository
.
SEARCH_FULLTEXT
if
self
.
option
(
'only-name'
):
if
self
.
option
(
'only-name'
):
flags
=
Base
Repository
.
SEARCH_FULLTEXT
flags
=
PyPi
Repository
.
SEARCH_FULLTEXT
results
=
self
.
poetry
.
pool
.
search
(
self
.
argument
(
'tokens'
),
flags
)
results
=
PyPiRepository
()
.
search
(
self
.
argument
(
'tokens'
),
flags
)
for
result
in
results
:
for
result
in
results
:
self
.
line
(
''
)
self
.
line
(
''
)
...
...
poetry/console/commands/self/update.py
View file @
46d3ce8b
...
@@ -20,12 +20,13 @@ class SelfUpdateCommand(Command):
...
@@ -20,12 +20,13 @@ class SelfUpdateCommand(Command):
"""
"""
def
handle
(
self
):
def
handle
(
self
):
from
poetry.__version__
import
__version__
from
poetry.repositories.pypi_repository
import
PyPiRepository
from
poetry.repositories.pypi_repository
import
PyPiRepository
from
poetry.semver.comparison
import
less_than
from
poetry.semver.comparison
import
less_than
version
=
self
.
argument
(
'version'
)
version
=
self
.
argument
(
'version'
)
if
not
version
:
if
not
version
:
version
=
'>='
+
self
.
poetry
.
VERSION
version
=
'>='
+
__version__
repo
=
PyPiRepository
(
fallback
=
False
)
repo
=
PyPiRepository
(
fallback
=
False
)
packages
=
repo
.
find_packages
(
'poetry'
,
version
)
packages
=
repo
.
find_packages
(
'poetry'
,
version
)
...
@@ -59,7 +60,7 @@ class SelfUpdateCommand(Command):
...
@@ -59,7 +60,7 @@ class SelfUpdateCommand(Command):
self
.
line
(
'No new release found'
)
self
.
line
(
'No new release found'
)
return
return
if
release
.
version
==
self
.
poetry
.
VERSION
:
if
release
.
version
==
__version__
:
self
.
line
(
'You are using the latest version'
)
self
.
line
(
'You are using the latest version'
)
return
return
...
...
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