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
35c3cf1f
Commit
35c3cf1f
authored
May 09, 2022
by
Arun Babu Neelicattu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: make test compatible with core > 1.1.0a7
parent
09633667
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
tests/utils/test_dependency_specification.py
+10
-4
No files found.
tests/utils/test_dependency_specification.py
View file @
35c3cf1f
...
@@ -6,7 +6,10 @@ from typing import TYPE_CHECKING
...
@@ -6,7 +6,10 @@ from typing import TYPE_CHECKING
import
pytest
import
pytest
from
deepdiff
import
DeepDiff
from
deepdiff
import
DeepDiff
from
poetry.core.semver.helpers
import
parse_constraint
from
poetry.core.semver.version
import
Version
from
poetry.utils._compat
import
metadata
from
poetry.utils.dependency_specification
import
parse_dependency_specification
from
poetry.utils.dependency_specification
import
parse_dependency_specification
...
@@ -74,10 +77,13 @@ if TYPE_CHECKING:
...
@@ -74,10 +77,13 @@ if TYPE_CHECKING:
"name"
:
"name"
,
"name"
:
"name"
,
"markers"
:
'python_version == "2.7"'
,
"markers"
:
'python_version == "2.7"'
,
"url"
:
"http://foo.com"
,
"url"
:
"http://foo.com"
,
# This is commented out as there is a bug in
**
(
# Dependency.create_from_pep_508 that leads to incorrect
{
"extras"
:
[
"fred"
,
"bar"
]}
# URL Dependency creation.
if
parse_constraint
(
">1.1.0a7"
)
.
allows
(
# should be: "extras": ["fred", "bar"],
Version
.
parse
(
metadata
.
version
(
"poetry-core"
))
)
else
{}
),
},
},
),
),
(
(
...
...
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