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
a3f6437b
Commit
a3f6437b
authored
Feb 12, 2023
by
KotlinIsland
Committed by
Randy Döring
Feb 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: mention the different types of exact specifications and pep440
parent
c8945eb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
docs/dependency-specification.md
+5
-1
No files found.
docs/dependency-specification.md
View file @
a3f6437b
...
@@ -79,11 +79,15 @@ Multiple version requirements can also be separated with a comma, e.g. `>= 1.2,
...
@@ -79,11 +79,15 @@ Multiple version requirements can also be separated with a comma, e.g. `>= 1.2,
You can specify the exact version of a package.
You can specify the exact version of a package.
`
==
1.2.3`
is an example of an exact version specification.
`1.2.3`
is an example of an exact version specification.
This will tell Poetry to install this version and this version only.
This will tell Poetry to install this version and this version only.
If other dependencies require a different version, the solver will ultimately fail and abort any install or update procedures.
If other dependencies require a different version, the solver will ultimately fail and abort any install or update procedures.
Exact versions can also be specified with
`==`
according to
[
PEP 440
](
https://peps.python.org/pep-0440/
)
.
`==1.2.3`
is an example of this.
### Using the `@` operator
### Using the `@` operator
When adding dependencies via
`poetry add`
, you can use the
`@`
operator.
When adding dependencies via
`poetry add`
, you can use the
`@`
operator.
...
...
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