Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependencies #46

Merged
merged 20 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
3703882
Updated to ruff==0.5.1 (from ruff==0.4.2)
ClaasRostock Jul 15, 2024
d516f36
Updated to pyright==1.1.371 (from pyright==1.1.360)
ClaasRostock Jul 15, 2024
fa4d30d
Updated to sourcery==1.21 (from sourcery==1.16)
ClaasRostock Jul 15, 2024
ad2cd8c
Updated to dictIO>=0.3.4 (from dictIO>=0.3.4)
ClaasRostock Jul 15, 2024
9b4bab2
Updated to sphinx-argparse-cli>=1.16 (from sphinx-argparse-cli>=1.15)
ClaasRostock Jul 15, 2024
9c43205
Updated to furo>=2024.5 (from furo>=2024.4)
ClaasRostock Jul 15, 2024
2ddf2f3
Updated to setup-python@v5 (from setup-python@v4)
ClaasRostock Jul 15, 2024
9e0772c
Updated to actions-gh-pages@v4 (from actions-gh-pages@v3)
ClaasRostock Jul 15, 2024
53467cc
Updated to upload-artifact@v4 (from upload-artifact@v3)
ClaasRostock Jul 15, 2024
ea634ad
GitHub workflows: Replaced pip install tox with pip install tox-uv
ClaasRostock Jul 15, 2024
6b8ca9e
GitHub workflows: Removed cache: 'pip' for tox-uv compatibility
ClaasRostock Jul 15, 2024
327fa72
GitHub workflows: Install dependencies: change singleline run stateme…
ClaasRostock Jul 15, 2024
c93c968
GitHub workflows: Add step to install 'uv' package
ClaasRostock Jul 15, 2024
49c0886
GitHub workflows: Add step to install 'uv' package
ClaasRostock Jul 15, 2024
0e4958b
GitHub workflows: Install dependencies: change from 'pip install' to …
ClaasRostock Jul 15, 2024
bf6e52d
GitHub workflow _test_future.yml : updated Python version to 3.13.0-a…
ClaasRostock Jul 15, 2024
0a95da8
GitHub workflow _test_future.yml : updated name of test job to 'test313'
ClaasRostock Jul 15, 2024
0bf9de7
updated CHANGELOG.md
ClaasRostock Jul 15, 2024
09a1a33
Merge branch 'main' into update_dependencies
StephanieKemna Jul 23, 2024
fc35063
add some notes to README about potential errors
StephanieKemna Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/_build_and_publish_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ jobs:
fetch-depth: 1
lfs: true
- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # cache pip dependencies
- name: Install uv
run: |
python -m pip install uv
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
uv pip install --system -r requirements-dev.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you on purpose putting uv pip everywhere instead of pip?

- name: Print debugging information
run: |
echo "github.ref:" ${{github.ref}}
Expand Down Expand Up @@ -102,7 +104,7 @@ jobs:

# Publish: Commit gh-pages branch and publish it to GitHub Pages
- name: Publish documentation
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/_build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ jobs:
with:
fetch-depth: 1
lfs: true
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # cache pip dependencies
- name: Install build and twine
run: pip install build twine
- name: Install uv
run: |
python -m pip install uv
- name: Install build and twine
run: |
uv pip install --system build twine
- name: Run build
run: python -m build
- name: Run twine check
run: twine check --strict dist/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.tar.gz
43 changes: 27 additions & 16 deletions .github/workflows/_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ jobs:
name: ruff format
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # cache pip dependencies
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install uv
run: |
python -m pip install uv
- name: Install dependencies
run: |
uv pip install --system -r requirements.txt
- name: Install ruff
run: pip install ruff==0.4.2
run: |
uv pip install --system ruff==0.5.1
- name: Run ruff format
run: ruff format --diff .

Expand All @@ -24,14 +28,18 @@ jobs:
name: ruff check
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # cache pip dependencies
- name: Install dependencies
run: pip install -r requirements.txt
- name: Install uv
run: |
python -m pip install uv
- name: Install dependencies
run: |
uv pip install --system -r requirements.txt
- name: Install ruff
run: pip install ruff==0.4.2
run: |
uv pip install --system ruff==0.5.1
- name: Run ruff check
run: ruff check --diff .

Expand All @@ -40,15 +48,18 @@ jobs:
name: pyright
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # cache pip dependencies
- name: Install dependencies
- name: Install uv
run: |
python -m pip install uv
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest
uv pip install --system -r requirements.txt
uv pip install --system pytest
- name: Install pyright
run: pip install pyright==1.1.360
run: |
uv pip install --system pyright==1.1.371
- name: Run pyright
run: pyright .
5 changes: 2 additions & 3 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Python ${{ matrix.python.version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python.version }}
cache: 'pip' # cache pip dependencies
- name: Install tox
run: python -m pip install tox
run: python -m pip install tox-uv
- name: Run pytest
run: tox -e ${{matrix.python.toxenv}}-${{matrix.platform.toxenv}}
9 changes: 4 additions & 5 deletions .github/workflows/_test_future.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Unit Tests (py312)
on: workflow_call

jobs:
test312:
test313:
name: Test on ${{matrix.python.toxenv}}-${{matrix.platform.toxenv}} (experimental)
continue-on-error: true
runs-on: ${{ matrix.platform.runner }}
Expand All @@ -16,16 +16,15 @@ jobs:
- runner: windows-latest
toxenv: windows
python:
- version: '3.13.0a2'
- version: '3.13.0-alpha - 3.13.0'
toxenv: 'py313'
steps:
- uses: actions/checkout@v4
- name: Install Python ${{ matrix.python.version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python.version }}
cache: 'pip' # cache pip dependencies
- name: Install tox
run: python -m pip install tox
run: python -m pip install tox-uv
- name: Run pytest
run: tox -e ${{matrix.python.toxenv}}-${{matrix.platform.toxenv}}
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,25 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e

## [Unreleased]

### Dependencies
* Updated to ruff==0.5.1 (from ruff==0.4.2)
* Updated to pyright==1.1.371 (from pyright==1.1.360)
* Updated to sourcery==1.21 (from sourcery==1.16)
* Updated to dictIO>=0.3.4 (from dictIO>=0.3.4)
* Updated to sphinx-argparse-cli>=1.16 (from sphinx-argparse-cli>=1.15)
* Updated to furo>=2024.5 (from furo>=2024.4)
* Updated to setup-python@v5 (from setup-python@v4)
* Updated to actions-gh-pages@v4 (from actions-gh-pages@v3)
* Updated to upload-artifact@v4 (from upload-artifact@v3)
* GitHub workflows: Replaced pip install tox with pip install tox-uv
* GitHub workflows: Removed cache: 'pip' for tox-uv compatibility
* GitHub workflows: Install dependencies: change singleline run statements to multiline run statements
* GitHub workflows: Add step to install 'uv' package
* GitHub workflows: Add step to install 'uv' package
* GitHub workflows: Install dependencies: change from 'pip install' to 'uv pip install'
* GitHub workflow _test_future.yml : updated Python version to 3.13.0-alpha - 3.13.0
* GitHub workflow _test_future.yml : updated name of test job to 'test313'

### Dependencies
* updated to ruff==0.4.2 (from ruff==0.3.0)
* updated to pyright==1.1.360 (from pyright==1.1.352)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"dictIO>=0.3.3",
"dictIO>=0.3.4",
"pydantic>=2.6",
"json-schema-for-humans>=0.4.7",
"onnxruntime==1.18.1",
Expand Down
10 changes: 5 additions & 5 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
pytest>=8.2
pytest-cov>=5.0
ruff==0.4.2
pyright==1.1.360
ruff==0.5.1
pyright==1.1.371
Sphinx>=7.3
sphinx-argparse-cli>=1.15
sphinx-argparse-cli>=1.16
myst-parser>=3.0
furo>=2024.4
sourcery==1.16
furo>=2024.5
sourcery==1.21

-r requirements.txt
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dictIO>=0.3.3
dictIO>=0.3.4
pydantic>=2.6
json-schema-for-humans>=0.4.7
onnxruntime==1.18.1
Expand Down