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

chore(python-deps): update dependency tomli to v2.0.1 for the create_unique_testpypi_version group(s) #39

Merged
merged 9 commits into from
Sep 3, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
Use an empty string, e.g. "", for dependencies located in the default group'
required: false
type: string
default: ''
default: '{}'
update-pre-commit:
description: A boolean indicating if the pre-commit hooks should be updated.
required: false
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/update-python-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ jobs:
export-groups: ${{ steps.set-output.outputs.export-groups }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Get commit message
id: get-commit-message
run: |
commit_message="$(git log -2 --pretty=%B | sed -n '2p')"
commit_message="$(git log --grep='chore(python-deps):' -1 --pretty=%B)"
echo "commit-message=$commit_message" >> "$GITHUB_OUTPUT"
- name: Determine the groups that will need to be exported
id: set-output
Expand All @@ -31,9 +33,6 @@ jobs:
if [[ "$commit_message" == *"find_unreleased_changelog_items"* ]]; then
export_groups+="find_unreleased_changelog_items:actions/find_unreleased_changelog_items,"
fi
if [[ "$commit_message" == *"tests"* ]]; then
export_groups+="tests,"
fi
if [[ "$commit_message" == *"docs"* ]]; then
export_groups+="docs:doc_config,"
fi
Expand Down
2 changes: 1 addition & 1 deletion actions/create_unique_testpypi_version/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
annotated-types==0.7.0 ; python_version >= "3.12" and python_version < "3.13"
attrs==24.2.0 ; python_version >= "3.12" and python_version < "3.13"
beautifulsoup4==4.12.3 ; python_version >= "3.12" and python_version < "3.13"
certifi==2024.7.4 ; python_version >= "3.12" and python_version < "3.13"
certifi==2024.8.30 ; python_version >= "3.12" and python_version < "3.13"
charset-normalizer==3.3.2 ; python_version >= "3.12" and python_version < "3.13"
idna==3.8 ; python_version >= "3.12" and python_version < "3.13"
mailbits==0.2.1 ; python_version >= "3.12" and python_version < "3.13"
Expand Down
2 changes: 1 addition & 1 deletion actions/update_development_dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inputs:
to update within that group, e.g. {"dev": ["pylint", "ruff"], "tests": ["ruff"]}.
Use an empty string, e.g. "", for dependencies located in the default group'
required: false
default: ''
default: '{}'
update-pre-commit:
description: A boolean indicating if the pre-commit hooks should be updated.
required: false
Expand Down
15 changes: 1 addition & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ python = "~3.12" # This needs to stay in sync with all CI workflows
[tool.poetry.group.create_unique_testpypi_version.dependencies]
poetry-core = "1.9.0"
pypi-simple = "1.5.0"
tomli = "2.0.0"
tomli = "2.0.1"
tomli-w = "1.0.0"

[tool.poetry.group.dev.dependencies]
Expand Down Expand Up @@ -209,18 +209,12 @@ commands =

[testenv:tests]
basepython = python
deps =
-r tests/requirements.txt
-r actions/create_unique_testpypi_version/requirements.txt
-r actions/find_unreleased_changelog_items/requirements.txt
-r actions/update_development_dependencies/requirements.txt
passenv =
pytest_report_title
setenv =
pytest_github_report = true
pytest_use_blanks = true
GITHUB_STEP_SUMMARY = {tox_root}/.results_{envname}/github_report.md
commands_pre =

[testenv:docs]
deps =
Expand All @@ -231,13 +225,6 @@ commands =
mkdocs --verbose build --site-dir .results_{envname}

[testenv:doctests]
deps =
-r doc_config/requirements.txt
-r tests/requirements.txt
-r actions/create_unique_testpypi_version/requirements.txt
-r actions/find_unreleased_changelog_items/requirements.txt
-r actions/update_development_dependencies/requirements.txt
commands_pre =
commands =
pytest -v -k "test_docs" --showlocals --junitxml={tox_root}/.results_{envname}/results.xml --self-contained-html --html={tox_root}/.results_{envname}/results.html
"""
40 changes: 0 additions & 40 deletions tests/requirements.txt

This file was deleted.

Loading