Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnault Chazareix committed Dec 28, 2024
1 parent 36316a0 commit b333474
Show file tree
Hide file tree
Showing 8 changed files with 1,055 additions and 1,098 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions/install_dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ inputs:
python_version:
required: true
type: string
default: "3.9"
default: "3.12"
poetry_version:
required: true
type: string
default: "1.3.1"
default: "1.8.1"

runs:
using: composite
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
with:
python_version: |
${{ matrix.python }}
3.9
3.12
- uses: ./.github/workflows/actions/run_nox_session
with:
nox_session: ${{ matrix.session }}
Expand All @@ -81,7 +81,7 @@ jobs:
with:
python_version: |
${{ matrix.python }}
3.9
3.12
- uses: ./.github/workflows/actions/run_nox_session
with:
nox_session: ${{ matrix.session }}
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default_stages: [ commit ]
default_stages: [ pre-commit ]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
Expand All @@ -15,23 +15,23 @@ repos:
entry: poetry run black
language: system
types: [ python ]
stages: [ commit ]
stages: [ pre-commit ]
- id: lint
name: Linter (pylint)
entry: poetry run pylint
language: system
types: [ python ]
stages: [ commit ]
stages: [ pre-commit ]
- id: isort
name: Ordering imports (isort)
entry: poetry run isort
language: system
types: [ python ]
stages: [ commit ]
stages: [ pre-commit ]
- id: test
name: Unit tests (pytest)
entry: poetry run pytest
pass_filenames: false
language: system
types: [ python ]
stages: [ push ]
stages: [ pre-push ]
1 change: 1 addition & 0 deletions examples/stqdm_stop_and_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See : https://github.com/Wirg/stqdm/issues/64#issuecomment-1367536561
"""

from time import sleep

import streamlit as st
Expand Down
1 change: 0 additions & 1 deletion examples/stqdm_with_caching_and_speed.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
From : https://discuss.streamlit.io/t/stqdm-a-tqdm-like-progress-bar-for-streamlit/10097/20?u=wirg
"""


from time import sleep
from typing import List

Expand Down
19 changes: 9 additions & 10 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ def fix_deps_issues(streamlit_version: str) -> List[str]:
Fix issues with streamlit and stqdm deps to ease ci
"""
install_fixes: List[str] = []
# Used to avoid a compatibility issue between streamlit and protobuf
# https://discuss.streamlit.io/t/streamlit-run-with-protobuf-error/25632/5
if is_version_below((1, 12), streamlit_version):
install_fixes += ["protobuf<3.20"]

# https://discuss.streamlit.io/t/modulenotfounderror-no-module-named-altair-vegalite-v4/42921/13
altair_lower_than_5 = "altair<5"
Expand Down Expand Up @@ -107,12 +103,15 @@ def install_deps(session: nox.Session, constraint_groups: List[str], dependencie


PYTHON_ST_TQDM_VERSIONS = (
with_python_versions(["3.8", "3.9"], "~=1.11.0", "~=4.50.0")
+ with_python_versions(["3.8", "3.9"], "~=1.11.0", "~=4.66.1")
+ with_python_versions(["3.8", "3.9", "3.10"], "~=1.12.0", "~=4.66.1")
+ with_python_versions(["3.9", "3.10"], "~=1.20.0", LATEST)
+ with_python_versions(["3.11"], "~=1.29.0", LATEST)
+ with_python_versions(["3.9", "3.10", "3.11"], LATEST, LATEST)
# python = ">=3.10,<4.0" # current 3.13.1
# tqdm = ">=4.61" # current 4.67.1
# streamlit = ">=1.29.0" # current # 1.41.1
with_python_versions(["3.10", "3.11"], "~=1.29.0", "~=4.61")
+ with_python_versions(["3.10", "3.11"], "~=1.29.0", "~=4.66.1")
+ with_python_versions(["3.10", "3.11", "3.12"], "~=1.29.0", "~=4.66.1")
+ with_python_versions(["3.10", "3.11"], "~=1.29.0", LATEST)
+ with_python_versions(["3.11"], "~=1.41.1", LATEST)
+ with_python_versions(["3.10", "3.11", "3.12"], LATEST, LATEST)
)


Expand Down
2,086 changes: 1,023 additions & 1,063 deletions poetry.lock

Large diffs are not rendered by default.

28 changes: 13 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,29 @@ classifiers = [
]

[tool.poetry.dependencies]
# Drop 3.9.7 https://github.com/streamlit/streamlit/issues/5140#issuecomment-1213574499
python = ">=3.8,<4.0.0,!=3.9.7"
tqdm = ">=4.50"
streamlit = ">=1.11"
python = ">=3.10,<4.0"
tqdm = ">=4.61"
streamlit = ">=1.29.0"

[tool.poetry.group.dev.dependencies]
pre-commit = "^3.3.3"
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
black = "^23.7.0"
click = ">=8.1" # Force for black compatibility
isort = "^5.12.0"
pylint = "^2.17.5"
pre-commit = "^4.0.1"
pytest = "^8.3.4"
pytest-cov = "^6.0.0"
black = "^24.10.0"
isort = "^5.13.2"
pylint = "^3.3.3"
nox = "^2023.4.22"
nox-poetry = "^1.0.3"
freezegun = "^1.4.0"
mypy = "^1.8.0"
freezegun = "^1.5.1"
mypy = "^1.14.0"
types-tqdm = "^4.66.0.5"
# Requirement added for compatibility between dev deps & some dependencies
# during the nox testing: streamlit_version='~=1.29.0'
packaging = "<24"
packaging = ">=1.16,<24"

[tool.black]
line-length = 127
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
target-version = ['py310', 'py311']

[tool.isort]
py_version=39
Expand Down

0 comments on commit b333474

Please # to comment.