-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve how we manage which PDM to use
Move our PDM version pin to a separate file. This both makes it easier to manage updates to the same and also allows the pinned version to be usable outside of the venv_sync script. Teach venv_upgrade to use PDM itself to generate this file, which accomplishes the outstanding goal of being able to pin both PDM and its dependencies. Also, modify venv_sync to tell PDM to not complain about newer versions.
- Loading branch information
1 parent
f164831
commit d8a97da
Showing
6 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,9 @@ dependencies = [ | |
] | ||
|
||
[dependency-groups] | ||
pdm = [ | ||
"pdm", | ||
] | ||
test = [ | ||
"flask", | ||
"six", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file does NOT describe the requirements for Drake itself, but for | ||
# setting up the Python virtual environment that Drake will manage. It is used | ||
# by Drake's @python, and also when preparing a virtual environment to support | ||
# a Drake installation. | ||
# | ||
# This file will be generated by tools/workspace/python/venv_upgrade. | ||
# | ||
# The present contents are adequate to bootstrap the PDM installation, after | ||
# which (the first subsequent time venv_upgrade is run) PDM itself will | ||
# generate a complete list of its dependencies with pinned versions. | ||
|
||
pdm==2.22.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters