Skip to content

Commit

Permalink
Pin pip & setuptools version
Browse files Browse the repository at this point in the history
  • Loading branch information
timobrembeck committed Apr 22, 2024
1 parent 16e925d commit 2441996
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ pinned = [
"parso==0.8.3",
"pexpect==4.9.0",
"pillow==10.2.0",
"pip==24.0",
"prompt-toolkit==3.0.43",
"psycopg==3.1.18",
"psycopg-binary==3.1.18",
Expand All @@ -196,6 +197,7 @@ pinned = [
"requests==2.31.0",
"rpds-py==0.17.1",
"rules==3.3",
"setuptools==65.5.0",
"sgmllib3k==1.0.0",
"six==1.16.0",
"sqlparse==0.4.4",
Expand Down
4 changes: 2 additions & 2 deletions tools/update_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ source .venv.tmp/bin/activate
# Install package locally (without the pinned extra, so the newest available versions are installed)
pip install -e .
# Parse the newly installed versions
PINNED_VERSIONS=$(pip freeze --exclude-editable --local | sort)
PINNED_VERSIONS=$(pip freeze --all --exclude-editable --local | sort)
PINNED_VERSIONS_TOML=$(echo "${PINNED_VERSIONS}" | format_pyproject_toml)
# Now also install dev dependencies
pip install -e .[dev]
# Parse the newly installed versions
PINNED_VERSIONS_ALL=$(pip freeze --exclude-editable --local | sort)
PINNED_VERSIONS_ALL=$(pip freeze --all --exclude-editable --local | sort)
# Only consider packages that were not already pinned in the normal dependencies
PINNED_DEV_VERSIONS=$(comm -3 <(echo "${PINNED_VERSIONS_ALL}") <(echo "${PINNED_VERSIONS}"))
PINNED_DEV_VERSIONS_TOML=$(echo "${PINNED_DEV_VERSIONS}" | format_pyproject_toml)
Expand Down

0 comments on commit 2441996

Please sign in to comment.