From e977383ae063d4edd2cfbb42131bc85dd2e07775 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:43:59 +0000 Subject: [PATCH 1/6] Bump the all group across 1 directory with 9 updates Bumps the all group with 9 updates in the / directory: | Package | From | To | | --- | --- | --- | | [build](https://github.com/pypa/build) | `1.2.1` | `1.2.2` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.6.0` | `1.6.1` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.31` | `9.5.39` | | [mkdocstrings[python]](https://github.com/mkdocstrings/mkdocstrings) | `0.25.2` | `0.26.1` | | [pytest](https://github.com/pytest-dev/pytest) | `8.3.2` | `8.3.3` | | [ruff](https://github.com/astral-sh/ruff) | `0.6.0` | `0.6.8` | | [mypy](https://github.com/python/mypy) | `1.11.1` | `1.11.2` | | [types-markdown](https://github.com/python/typeshed) | `3.6.0.20240316` | `3.7.0.20240822` | | [markdown](https://github.com/Python-Markdown/markdown) | `3.6` | `3.7` | Updates `build` from 1.2.1 to 1.2.2 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.2.1...1.2.2) Updates `mkdocs` from 1.6.0 to 1.6.1 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.6.0...1.6.1) Updates `mkdocs-material` from 9.5.31 to 9.5.39 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.31...9.5.39) Updates `mkdocstrings[python]` from 0.25.2 to 0.26.1 - [Release notes](https://github.com/mkdocstrings/mkdocstrings/releases) - [Changelog](https://github.com/mkdocstrings/mkdocstrings/blob/main/CHANGELOG.md) - [Commits](https://github.com/mkdocstrings/mkdocstrings/compare/0.25.2...0.26.1) Updates `pytest` from 8.3.2 to 8.3.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.3.2...8.3.3) Updates `ruff` from 0.6.0 to 0.6.8 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.0...0.6.8) Updates `mypy` from 1.11.1 to 1.11.2 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.11.1...v1.11.2) Updates `types-markdown` from 3.6.0.20240316 to 3.7.0.20240822 - [Commits](https://github.com/python/typeshed/commits) Updates `markdown` from 3.6 to 3.7 - [Release notes](https://github.com/Python-Markdown/markdown/releases) - [Changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md) - [Commits](https://github.com/Python-Markdown/markdown/compare/3.6...3.7) --- updated-dependencies: - dependency-name: build dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: mkdocs dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: mkdocs-material dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: mkdocstrings[python] dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: types-markdown dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: markdown dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 16 ++++++++-------- requirements.txt | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index ad88477..7d95365 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,11 +1,11 @@ -build==1.2.1 -mkdocs==1.6.0 -mkdocs-material==9.5.31 -mkdocstrings[python]==0.25.2 +build==1.2.2 +mkdocs==1.6.1 +mkdocs-material==9.5.39 +mkdocstrings[python]==0.26.1 twine==5.1.1 wheel==0.44.0 -pytest==8.3.2 +pytest==8.3.3 pytest-cov==5.0.0 -ruff==0.6.0 -mypy==1.11.1 -types-markdown==3.6.0.20240316 +ruff==0.6.8 +mypy==1.11.2 +types-markdown==3.7.0.20240822 diff --git a/requirements.txt b/requirements.txt index da0ea23..9a8eb4d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -markdown==3.6 +markdown==3.7 feedgenerator==2.1.0 jinja2==3.1.4 pygments==2.18.0 From 086832986b3b12551f2f54a556f68ed210e7cedf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:22:20 +0000 Subject: [PATCH 2/6] Bump the all group with 2 updates Bumps the all group with 2 updates: [build](https://github.com/pypa/build) and [ruff](https://github.com/astral-sh/ruff). Updates `build` from 1.2.2 to 1.2.2.post1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.2.2...1.2.2.post1) Updates `ruff` from 0.6.8 to 0.6.9 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.8...0.6.9) --- updated-dependencies: - dependency-name: build dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 7d95365..d441bd4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -build==1.2.2 +build==1.2.2.post1 mkdocs==1.6.1 mkdocs-material==9.5.39 mkdocstrings[python]==0.26.1 @@ -6,6 +6,6 @@ twine==5.1.1 wheel==0.44.0 pytest==8.3.3 pytest-cov==5.0.0 -ruff==0.6.8 +ruff==0.6.9 mypy==1.11.2 types-markdown==3.7.0.20240822 From 12db99f20aedae9682d888be7eb91a54287aaebd Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Thu, 10 Oct 2024 16:18:52 +0200 Subject: [PATCH 3/6] remove ruff's target-version --- CHANGELOG.md | 2 ++ pyproject.toml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 03d0feb..45cc279 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ ## [unreleased] -- * Added changelog to docs +* removed ruff's target-version from pyproject.toml, this value defaults to the + projects requires-python ## [2.3.1] -- 2024-07-06 diff --git a/pyproject.toml b/pyproject.toml index 532d2af..c51e644 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,6 @@ addopts = """ [tool.ruff] line-length = 79 -target-version = "py310" [tool.ruff.lint] select = [ From 0d03733b4f042324ca32ef520f039a25bffa59d7 Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Fri, 11 Oct 2024 11:09:32 +0200 Subject: [PATCH 4/6] ignoe FileNotFound Error that sometimes happens when getting mtime of directories Fixes: #231 --- CHANGELOG.md | 2 ++ blag/devserver.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45cc279..a2295bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [unreleased] -- +* Ignore FileNotFoundError when trying to get the last modified time of files + in directories. This happens for example with temporary emacs files. * Added changelog to docs * removed ruff's target-version from pyproject.toml, this value defaults to the projects requires-python diff --git a/blag/devserver.py b/blag/devserver.py index 1945740..2dd6481 100644 --- a/blag/devserver.py +++ b/blag/devserver.py @@ -42,7 +42,12 @@ def get_last_modified(dirs: list[str]) -> float: for dir in dirs: for root, dirs, files in os.walk(dir): for f in files: - mtime = os.stat(os.path.join(root, f)).st_mtime + try: + mtime = os.stat(os.path.join(root, f)).st_mtime + except FileNotFoundError: + # ignore files that have been deleted since the os.walk + # call (for example temporary emacs files) + continue if mtime > last_mtime: last_mtime = mtime From 07be96aa7c54c23f85cb1dd3ecd803f66213dc44 Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Sun, 13 Oct 2024 20:11:58 +0200 Subject: [PATCH 5/6] bumped changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2295bf..9a21ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [unreleased] -- +## [2.3.2] -- 2024-10-13 * Ignore FileNotFoundError when trying to get the last modified time of files in directories. This happens for example with temporary emacs files. From e631b17fb15f161e3c89959e794d8fc5feadd7f8 Mon Sep 17 00:00:00 2001 From: Bastian Venthur Date: Sun, 13 Oct 2024 20:13:10 +0200 Subject: [PATCH 6/6] bumped version prepared upload --- blag/version.py | 2 +- debian/changelog | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/blag/version.py b/blag/version.py index 28f7d7a..deff8d1 100644 --- a/blag/version.py +++ b/blag/version.py @@ -1,3 +1,3 @@ """Version information for the blag package.""" -__VERSION__ = "2.3.1" +__VERSION__ = "2.3.2" diff --git a/debian/changelog b/debian/changelog index 5a382e9..453e93e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +blag (2.3.2) unstable; urgency=medium + + * Ignore FileNotFoundError when trying to get the last modified time of + files in directories. This happens for example with temporary emacs files. + * Added changelog to docs + * removed ruff's target-version from pyproject.toml, this value defaults to + the projects requires-python + + -- Bastian Venthur Sun, 13 Oct 2024 20:12:29 +0200 + blag (2.3.1) unstable; urgency=medium * added manpage