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
c275878f
Unverified
Commit
c275878f
authored
Sep 23, 2022
by
Venaturum
Committed by
GitHub
Sep 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: inconsistent docs for multiple constraint dependencies (#6604)
Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
parent
a2853187
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/dependency-specification.md
+3
-3
No files found.
docs/dependency-specification.md
View file @
c275878f
...
...
@@ -302,14 +302,14 @@ Sometimes, one of your dependency may have different version ranges depending
on the target Python versions.
Let's say you have a dependency on the package
`foo`
which is only compatible
with Python
<3.0 up to version 1.9 and compatible with Python 3.4
+ from version 2.0:
with Python
3.6-3.7 up to version 1.9, and compatible with Python 3.8
+ from version 2.0:
you would declare it like so:
```
toml
[tool.poetry.dependencies]
foo
=
[
{version
=
"<=1.9"
,
python
=
"
^3.6
"
}
,
{version
=
"^2.0"
,
python
=
"
^
3.8"
}
{version
=
"<=1.9"
,
python
=
"
>=3.6,<3.8
"
}
,
{version
=
"^2.0"
,
python
=
"
>=
3.8"
}
]
```
...
...
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