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
0bbeae3f
Unverified
Commit
0bbeae3f
authored
Dec 29, 2019
by
finswimmer
Committed by
GitHub
Dec 29, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1802 from rpdelaney/docs/dependency_rev_pin
Expand documentation of `git` dependency subkeys
parents
2c3865bc
ca1a1e6c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
docs/docs/dependency-specification.md
+11
-3
No files found.
docs/docs/dependency-specification.md
View file @
0bbeae3f
...
...
@@ -86,13 +86,21 @@ requests = { git = "https://github.com/requests/requests.git" }
```
Since we haven’t specified any other information,
Poetry assumes that we intend to use the latest commit on the
`master`
branch to build our project.
You can combine the
`git`
key with the
`rev`
,
`tag`
, or
`branch`
keys to specify something else.
Here's an example of specifying that you want to use the latest commit on a branch named
`next`
:
Poetry assumes that we intend to use the latest commit on the
`master`
branch
to build our project.
You can combine the
`git`
key with the
`branch`
key to use another branch.
Alternatively, use
`rev`
or
`tag`
to pin a dependency to a specific commit hash
or tagged ref, respectively. For example:
```
toml
[tool.poetry.dependencies]
# Get the latest revision on the branch named "next"
requests
=
{
git
=
"https://github.com/kennethreitz/requests.git"
,
branch
=
"next"
}
# Get a revision by its commit hash
flask
=
{
git
=
"https://github.com/pallets/flask.git"
,
rev
=
"38eb5d3b"
}
# Get a revision by its tag
numpy
=
{
git
=
"https://github.com/numpy/numpy.git"
,
tag
=
"v0.13.2"
}
```
## `path` dependencies
...
...
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