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
3716ea9b
Unverified
Commit
3716ea9b
authored
May 07, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix packages name normalization
parent
a55eaad5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
8 deletions
+11
-8
CHANGELOG.md
+1
-0
poetry/packages/dependency.py
+2
-1
poetry/packages/package.py
+2
-1
tests/mixology/fixtures/index/circular.json
+2
-2
tests/mixology/fixtures/index/conflict.json
+2
-2
tests/mixology/fixtures/index/unresolvable_child.json
+2
-2
No files found.
CHANGELOG.md
View file @
3716ea9b
...
...
@@ -30,6 +30,7 @@ commands in project subdirectories.
-
Fixed handling of extras when building projects.
-
Fixed handling of wildcard dependencies wen packaging/publishing.
-
Fixed an error when adding a new packages with prereleases in lock file.
-
Fixed packages name normalization.
## [0.8.6] - 2018-04-30
...
...
poetry/packages/dependency.py
View file @
3716ea9b
...
...
@@ -5,6 +5,7 @@ from poetry.semver.constraints import EmptyConstraint
from
poetry.semver.constraints
import
MultiConstraint
from
poetry.semver.constraints.base_constraint
import
BaseConstraint
from
poetry.semver.version_parser
import
VersionParser
from
poetry.utils.helpers
import
canonicalize_name
from
.constraints.generic_constraint
import
GenericConstraint
...
...
@@ -18,7 +19,7 @@ class Dependency(object):
category
=
'main'
,
# type: str
allows_prereleases
=
False
# type: bool
):
self
.
_name
=
name
.
lower
(
)
self
.
_name
=
canonicalize_name
(
name
)
self
.
_pretty_name
=
name
self
.
_parser
=
VersionParser
()
...
...
poetry/packages/package.py
View file @
3716ea9b
...
...
@@ -11,6 +11,7 @@ from poetry.semver.version_parser import VersionParser
from
poetry.spdx
import
license_by_id
from
poetry.spdx
import
License
from
poetry.utils._compat
import
Path
from
poetry.utils.helpers
import
canonicalize_name
from
poetry.version
import
parse
as
parse_version
from
.constraints.generic_constraint
import
GenericConstraint
...
...
@@ -61,7 +62,7 @@ class Package(object):
Creates a new in memory package.
"""
self
.
_pretty_name
=
name
self
.
_name
=
name
.
lower
(
)
self
.
_name
=
canonicalize_name
(
name
)
self
.
_version
=
str
(
parse_version
(
version
))
self
.
_pretty_version
=
pretty_version
or
version
...
...
tests/mixology/fixtures/index/circular.json
View file @
3716ea9b
...
...
@@ -25,9 +25,9 @@
}
}
],
"circular
_
app"
:
[
"circular
-
app"
:
[
{
"name"
:
"circular
_
app"
,
"name"
:
"circular
-
app"
,
"version"
:
"1.0.0"
,
"dependencies"
:
{
"foo"
:
">= 0"
,
...
...
tests/mixology/fixtures/index/conflict.json
View file @
3716ea9b
...
...
@@ -52,9 +52,9 @@
}
}
],
"my
_
app"
:
[
"my
-
app"
:
[
{
"name"
:
"my
_
app"
,
"name"
:
"my
-
app"
,
"version"
:
"1.0.0"
,
"dependencies"
:
{
"activemodel"
:
">=0"
,
...
...
tests/mixology/fixtures/index/unresolvable_child.json
View file @
3716ea9b
...
...
@@ -25,9 +25,9 @@
}
}
],
"chef
_app_
error"
:
[
"chef
-app-
error"
:
[
{
"name"
:
"chef
_app_
error"
,
"name"
:
"chef
-app-
error"
,
"version"
:
"1.0.0"
,
"dependencies"
:
{
"berkshelf"
:
"~2.0"
,
...
...
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