Compare commits

..

19 Commits

Author SHA1 Message Date
38a506649c fix workflow finally.... ;-;
Some checks failed
CI/CD Pipeline / job1 (push) Failing after 3m52s
2024-10-26 02:19:11 -07:00
7ab8da8dcd bs commit to fix an issue with actions caused by an issue with the server 2024-10-26 01:35:40 -07:00
636f635fea fix workflow 2024-10-26 01:04:21 -07:00
243f889725 Update workflow, bump version, update changelog 2024-10-26 00:59:25 -07:00
8f90987c09 Update to gitea actions. 2024-10-26 00:46:36 -07:00
d4fb67577d Merge commit 'e631b17fb15f161e3c89959e794d8fc5feadd7f8' on branch master into main. 2024-10-26 00:38:12 -07:00
Bastian Venthur
e631b17fb1 bumped version prepared upload 2024-10-13 20:13:10 +02:00
Bastian Venthur
07be96aa7c bumped changelog 2024-10-13 20:11:58 +02:00
Bastian Venthur
0d03733b4f ignoe FileNotFound Error that sometimes happens when getting mtime of directories
Fixes: #231
2024-10-11 11:09:32 +02:00
Bastian Venthur
8fed4894ee Merge remote-tracking branch 'origin/dependabot/pip/all-571baf080f' 2024-10-10 16:20:18 +02:00
Bastian Venthur
12db99f20a remove ruff's target-version 2024-10-10 16:18:52 +02:00
dependabot[bot]
086832986b 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] <support@github.com>
2024-10-07 14:22:20 +00:00
Bastian Venthur
8112d9fb30 Merge pull request #253 from venthur/dependabot/pip/all-e1f04c1223
Bump the all group across 1 directory with 9 updates
2024-10-07 12:31:39 +02:00
dependabot[bot]
e977383ae0 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] <support@github.com>
2024-09-30 14:43:59 +00:00
4cc23cea5f add strikethru and footnotes functionality 2024-09-05 21:05:02 -07:00
Bastian Venthur
0c606c7673 Added changelog to docs 2024-08-26 10:04:57 +02:00
Bastian Venthur
c8a0587d78 Merge pull request #245 from venthur/dependabot/pip/all-40c5988f12
Bump the all group with 6 updates
2024-08-16 09:58:38 +02:00
dependabot[bot]
be079e8699 Bump the all group with 6 updates
Bumps the all group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.28` | `9.5.31` |
| [mkdocstrings[python]](https://github.com/mkdocstrings/mkdocstrings) | `0.25.1` | `0.25.2` |
| [wheel](https://github.com/pypa/wheel) | `0.43.0` | `0.44.0` |
| [pytest](https://github.com/pytest-dev/pytest) | `8.2.2` | `8.3.2` |
| [ruff](https://github.com/astral-sh/ruff) | `0.5.1` | `0.6.0` |
| [mypy](https://github.com/python/mypy) | `1.10.1` | `1.11.1` |


Updates `mkdocs-material` from 9.5.28 to 9.5.31
- [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.28...9.5.31)

Updates `mkdocstrings[python]` from 0.25.1 to 0.25.2
- [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.1...0.25.2)

Updates `wheel` from 0.43.0 to 0.44.0
- [Release notes](https://github.com/pypa/wheel/releases)
- [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst)
- [Commits](https://github.com/pypa/wheel/compare/0.43.0...0.44.0)

Updates `pytest` from 8.2.2 to 8.3.2
- [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.2.2...8.3.2)

Updates `ruff` from 0.5.1 to 0.6.0
- [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.5.1...0.6.0)

Updates `mypy` from 1.10.1 to 1.11.1
- [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md)
- [Commits](https://github.com/python/mypy/compare/v1.10.1...v1.11.1)

---
updated-dependencies:
- 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-patch
  dependency-group: all
- dependency-name: wheel
  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-minor
  dependency-group: all
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: mypy
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-16 07:49:28 +00:00
Bastian Venthur
60b7679c14 group dependabot mrs 2024-08-16 09:47:33 +02:00
13 changed files with 89 additions and 100 deletions

View File

@@ -0,0 +1,38 @@
name: CI/CD Pipeline
on:
push:
branches:
- main
tags:
- "v**"
jobs:
job1:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/actions/setup-python@v5
with:
python-version: "3.11"
- run: |
make venv
- run: |
make lint
- run: |
make mypy
- run: |
make test
- run: |
make test-release
-
name: Push to docker pypi registry.
env:
TWINE_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
TWINE_REPOSITORY_URL: "https://gitea.raer.me/api/packages/freyjagp/pypi"
run: |
venv/bin/python3 -m twine upload --verbose dist/*

View File

@@ -1,11 +0,0 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@@ -1,76 +0,0 @@
name: CI/CD Pipeline
on:
- push
- pull_request
jobs:
test:
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: |
make venv
- run: |
make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
make venv
- run: |
make lint
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
make venv
- run: |
make mypy
test-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- run: |
make venv
- run: |
make test-release

View File

@@ -1,5 +1,24 @@
# Changelog # Changelog
## [2.4.0] -- 2024-10-26
* Merged master (original dev's work) into main (my fork)
* update gitea workflow to hopefully build/push any updates made to my fork of blag.
## [2.4.0] -- 2024-09-05
* added strikethru and footnotes to blag renders.
## [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.
* 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 ## [2.3.1] -- 2024-07-06
* added manpage * added manpage

View File

@@ -42,7 +42,12 @@ def get_last_modified(dirs: list[str]) -> float:
for dir in dirs: for dir in dirs:
for root, dirs, files in os.walk(dir): for root, dirs, files in os.walk(dir):
for f in files: 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: if mtime > last_mtime:
last_mtime = mtime last_mtime = mtime

View File

@@ -30,6 +30,8 @@ def markdown_factory() -> Markdown:
""" """
md = Markdown( md = Markdown(
extensions=[ extensions=[
"footnotes", # Add footnotes support
"pymdownx.tilde", # Add strukethrough support
"meta", "meta",
"fenced_code", "fenced_code",
"codehilite", "codehilite",

View File

@@ -1,3 +1,3 @@
"""Version information for the blag package.""" """Version information for the blag package."""
__VERSION__ = "2.3.1" __VERSION__ = "2.4.1"

10
debian/changelog vendored
View File

@@ -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 <venthur@debian.org> Sun, 13 Oct 2024 20:12:29 +0200
blag (2.3.1) unstable; urgency=medium blag (2.3.1) unstable; urgency=medium
* added manpage * added manpage

1
docs/CHANGELOG.md Symbolic link
View File

@@ -0,0 +1 @@
../CHANGELOG.md

View File

@@ -13,6 +13,7 @@ nav:
- blag.markdown: markdown.md - blag.markdown: markdown.md
- blag.devserver: devserver.md - blag.devserver: devserver.md
- blag.quickstart: quickstart.md - blag.quickstart: quickstart.md
- Changelog: CHANGELOG.md
theme: theme:
name: material name: material

View File

@@ -65,7 +65,6 @@ addopts = """
[tool.ruff] [tool.ruff]
line-length = 79 line-length = 79
target-version = "py310"
[tool.ruff.lint] [tool.ruff.lint]
select = [ select = [

View File

@@ -1,11 +1,11 @@
build==1.2.1 build==1.2.2.post1
mkdocs==1.6.0 mkdocs==1.6.1
mkdocs-material==9.5.28 mkdocs-material==9.5.39
mkdocstrings[python]==0.25.1 mkdocstrings[python]==0.26.1
twine==5.1.1 twine==5.1.1
wheel==0.43.0 wheel==0.44.0
pytest==8.2.2 pytest==8.3.3
pytest-cov==5.0.0 pytest-cov==5.0.0
ruff==0.5.1 ruff==0.6.9
mypy==1.10.1 mypy==1.11.2
types-markdown==3.6.0.20240316 types-markdown==3.7.0.20240822

View File

@@ -1,4 +1,5 @@
markdown==3.6 markdown==3.7
feedgenerator==2.1.0 feedgenerator==2.1.0
jinja2==3.1.4 jinja2==3.1.4
pygments==2.18.0 pygments==2.18.0
pymdown-extensions==10.9