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
4392bd6e
Commit
4392bd6e
authored
Aug 25, 2022
by
Bartek Sokorski
Committed by
finswimmer
Aug 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove mentions of Python 2.7 from docs
parent
5f43acf4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
7 deletions
+10
-7
docs/dependency-specification.md
+4
-4
docs/managing-environments.md
+4
-1
docs/plugins.md
+1
-1
docs/pyproject.md
+1
-1
No files found.
docs/dependency-specification.md
View file @
4392bd6e
...
...
@@ -277,12 +277,12 @@ You can also specify that a dependency should be installed only for specific Pyt
```
toml
[tool.poetry.dependencies]
pathlib2
=
{
version
=
"^2.2"
,
python
=
"~2.7
"
}
tomli
=
{
version
=
"^2.0.1"
,
python
=
"<3.11
"
}
```
```
toml
[tool.poetry.dependencies]
pathlib2
=
{
version
=
"^2.2"
,
python
=
"
~2.7 ||
^3.2"
}
pathlib2
=
{
version
=
"^2.2"
,
python
=
"^3.2"
}
```
## Using environment markers
...
...
@@ -293,7 +293,7 @@ via the `markers` property:
```
toml
[tool.poetry.dependencies]
pathlib2
=
{
version
=
"^2.2"
,
markers
=
"python_version
~= '2.7
' or sys_platform == 'win32'"
}
pathlib2
=
{
version
=
"^2.2"
,
markers
=
"python_version
<= '3.4
' or sys_platform == 'win32'"
}
```
## Multiple constraints dependencies
...
...
@@ -308,7 +308,7 @@ you would declare it like so:
```
toml
[tool.poetry.dependencies]
foo
=
[
{version
=
"<=1.9"
,
python
=
"^
2.7
"
}
,
{version
=
"<=1.9"
,
python
=
"^
3.6
"
}
,
{version
=
"^2.0"
,
python
=
"^3.8"
}
]
```
...
...
docs/managing-environments.md
View file @
4392bd6e
...
...
@@ -41,6 +41,10 @@ poetry install
```
{{% /note %}}
{{% note %}}
Since version 1.2, Poetry no longer supports managing environments for Python 2.7.
{{% /note %}}
## Switching between environments
Sometimes this might not be feasible for your system, especially Windows where
`pyenv`
...
...
@@ -114,7 +118,6 @@ poetry env list
will output something like the following:
```
text
test-O3eWbxRl-py2.7
test-O3eWbxRl-py3.6
test-O3eWbxRl-py3.7 (Activated)
```
...
...
docs/plugins.md
View file @
4392bd6e
...
...
@@ -38,7 +38,7 @@ version = "1.0.0"
# ...
[tool.poetry.dependencies]
python
=
"
~2.7 ||
^3.7"
python
=
"^3.7"
poetry
=
"^1.0"
[tool.poetry.plugins."poetry.plugin"]
...
...
docs/pyproject.md
View file @
4392bd6e
...
...
@@ -369,7 +369,7 @@ mandatory = "^1.0"
# A list of all of the optional dependencies, some of which are included in the
# below `extras`. They can be opted into by apps.
psycopg2
=
{
version
=
"^2.
7
"
,
optional
=
true
}
psycopg2
=
{
version
=
"^2.
9
"
,
optional
=
true
}
mysqlclient
=
{
version
=
"^1.3"
,
optional
=
true
}
[tool.poetry.extras]
...
...
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