Compare commits

...

67 Commits
1.1.0 ... 1.3.1

Author SHA1 Message Date
Bastian Venthur
7e8f2a5b9a prepare new version 2022-06-10 07:27:24 +02:00
Bastian Venthur
d942bf150c install man page 2022-06-09 22:23:12 +02:00
Bastian Venthur
48cfb49acb generate man page in debian package 2022-06-09 22:22:03 +02:00
Bastian Venthur
c3edbeb511 cleanup generated doc files in makefile 2022-06-09 21:52:34 +02:00
Bastian Venthur
a60887e0d6 small yaml fix m( 2022-06-09 21:44:27 +02:00
Bastian Venthur
bfbedcc3df prepared 1.3.0 2022-06-09 21:26:47 +02:00
Bastian Venthur
dff60d7399 updated changelog and readme 2022-06-09 21:22:13 +02:00
Bastian Venthur
f9b6afa80a made docs working 2022-06-09 21:13:41 +02:00
Bastian Venthur
c469b9b591 WIP 2022-06-05 21:15:30 +02:00
Bastian Venthur
d76a0834e3 Merge remote-tracking branch 'origin/dependabot/pip/pytest-7.1.2' 2022-06-05 10:30:59 +02:00
Bastian Venthur
20b1e281a1 Merge remote-tracking branch 'origin/dependabot/pip/pygments-2.12.0' 2022-06-05 10:29:54 +02:00
Bastian Venthur
58e74f8d55 Merge remote-tracking branch 'origin/dependabot/pip/jinja2-3.1.2' 2022-06-05 10:27:22 +02:00
Bastian Venthur
aad5f288af updated changelog 2022-06-05 10:26:54 +02:00
Bastian Venthur
dc76295203 Merge remote-tracking branch 'origin/dependabot/pip/markdown-3.3.7' 2022-06-05 10:26:44 +02:00
Bastian Venthur
8a9a8cd2eb updated changelog 2022-06-05 10:25:22 +02:00
dependabot[bot]
55e82393b6 Bump sphinx from 4.5.0 to 5.0.0
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.5.0 to 5.0.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.5.0...v5.0.0)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 14:12:27 +00:00
dependabot[bot]
b74cea8296 Bump markdown from 3.3.6 to 3.3.7
Bumps [markdown](https://github.com/Python-Markdown/markdown) from 3.3.6 to 3.3.7.
- [Release notes](https://github.com/Python-Markdown/markdown/releases)
- [Commits](https://github.com/Python-Markdown/markdown/compare/3.3.6...3.3.7)

---
updated-dependencies:
- dependency-name: markdown
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-09 14:11:54 +00:00
dependabot[bot]
58a164899c Bump jinja2 from 3.1.1 to 3.1.2
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.1...3.1.2)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 14:08:42 +00:00
Bastian Venthur
769dcca83a change dependabot check to weekly 2022-04-26 20:11:00 +02:00
dependabot[bot]
f8bcaafc30 Bump pytest from 7.1.1 to 7.1.2
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.1 to 7.1.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/7.1.1...7.1.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 14:20:24 +00:00
dependabot[bot]
f1fe211ac6 Bump pygments from 2.11.2 to 2.12.0
Bumps [pygments](https://github.com/pygments/pygments) from 2.11.2 to 2.12.0.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.11.2...2.12.0)

---
updated-dependencies:
- dependency-name: pygments
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 14:20:20 +00:00
Bastian Venthur
c88628350f updated changelog 2022-04-10 12:26:42 +02:00
Bastian Venthur
60e8b98232 Merge remote-tracking branch 'origin/dependabot/pip/jinja2-3.1.1' 2022-04-10 12:20:43 +02:00
Bastian Venthur
b74c34839f Merge remote-tracking branch 'origin/dependabot/pip/pygments-2.11.2' 2022-04-10 12:18:46 +02:00
Bastian Venthur
2a8f93147f Merge remote-tracking branch 'origin/dependabot/pip/pytest-7.1.1' 2022-04-10 12:18:34 +02:00
Bastian Venthur
4c12ef738c Merge remote-tracking branch 'origin/dependabot/pip/sphinx-4.5.0' 2022-04-10 12:18:14 +02:00
dependabot[bot]
bc71f51443 Bump twine from 3.7.1 to 4.0.0
Bumps [twine](https://github.com/pypa/twine) from 3.7.1 to 4.0.0.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/3.7.1...4.0.0)

---
updated-dependencies:
- dependency-name: twine
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-31 14:18:30 +00:00
dependabot[bot]
4cfbdd5108 Bump sphinx from 4.3.2 to 4.5.0
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.3.2 to 4.5.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.3.2...v4.5.0)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 14:24:35 +00:00
dependabot[bot]
6a07b19eda Bump jinja2 from 3.0.3 to 3.1.1
Bumps [jinja2](https://github.com/pallets/jinja) from 3.0.3 to 3.1.1.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.0.3...3.1.1)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 14:24:32 +00:00
dependabot[bot]
d486b7a90b Bump pytest from 6.2.5 to 7.1.1
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.1.1.
- [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/6.2.5...7.1.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-18 14:35:17 +00:00
dependabot[bot]
2355799aaa Bump pygments from 2.11.1 to 2.11.2
Bumps [pygments](https://github.com/pygments/pygments) from 2.11.1 to 2.11.2.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.11.1...2.11.2)

---
updated-dependencies:
- dependency-name: pygments
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 14:19:55 +00:00
Bastian Venthur
788c07446d Fixed typo 2022-01-06 11:34:33 +01:00
Bastian Venthur
c1375a1478 updated readme 2022-01-05 15:26:51 +01:00
Bastian Venthur
67d9a31256 updated changelog 2022-01-05 15:25:28 +01:00
Bastian Venthur
25c6a4c089 Merge pull request #28 from venthur/dependabot/pip/pygments-2.11.1
Bump pygments from 2.10.0 to 2.11.1
2022-01-05 15:22:18 +01:00
dependabot[bot]
e75fd4eacb Bump pygments from 2.10.0 to 2.11.1
Bumps [pygments](https://github.com/pygments/pygments) from 2.10.0 to 2.11.1.
- [Release notes](https://github.com/pygments/pygments/releases)
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES)
- [Commits](https://github.com/pygments/pygments/compare/2.10.0...2.11.1)

---
updated-dependencies:
- dependency-name: pygments
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-05 14:22:05 +00:00
Bastian Venthur
88905db579 Merge pull request #26 from venthur/dependabot/pip/sphinx-4.3.2
Bump sphinx from 4.2.0 to 4.3.2
2022-01-05 15:21:33 +01:00
dependabot[bot]
702bc2e986 Bump sphinx from 4.2.0 to 4.3.2
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 4.2.0 to 4.3.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.2.0...v4.3.2)

---
updated-dependencies:
- dependency-name: sphinx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-05 14:21:24 +00:00
Bastian Venthur
7cc4d8be45 Merge pull request #25 from venthur/dependabot/pip/twine-3.7.1
Bump twine from 3.5.0 to 3.7.1
2022-01-05 15:20:50 +01:00
Bastian Venthur
764317aa24 Merge pull request #18 from venthur/dependabot/pip/jinja2-3.0.3
Bump jinja2 from 3.0.2 to 3.0.3
2022-01-05 15:20:38 +01:00
dependabot[bot]
a8a976403f Bump twine from 3.5.0 to 3.7.1
Bumps [twine](https://github.com/pypa/twine) from 3.5.0 to 3.7.1.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/3.5.0...3.7.1)

---
updated-dependencies:
- dependency-name: twine
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-05 14:20:36 +00:00
Bastian Venthur
fd9a6e6fa2 Merge pull request #22 from venthur/dependabot/pip/markdown-3.3.6
Bump markdown from 3.3.4 to 3.3.6
2022-01-05 15:20:26 +01:00
Bastian Venthur
8f02c107e2 Merge pull request #27 from venthur/dependabot/pip/wheel-0.37.1
Bump wheel from 0.37.0 to 0.37.1
2022-01-05 15:19:44 +01:00
Bastian Venthur
489e546173 added missing phony target 2022-01-05 15:16:58 +01:00
dependabot[bot]
9143a4dc7f Bump wheel from 0.37.0 to 0.37.1
Bumps [wheel](https://github.com/pypa/wheel) from 0.37.0 to 0.37.1.
- [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.37.0...0.37.1)

---
updated-dependencies:
- dependency-name: wheel
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-22 14:17:49 +00:00
dependabot[bot]
512c12eaae Bump markdown from 3.3.4 to 3.3.6
Bumps [markdown](https://github.com/Python-Markdown/markdown) from 3.3.4 to 3.3.6.
- [Release notes](https://github.com/Python-Markdown/markdown/releases)
- [Commits](https://github.com/Python-Markdown/markdown/compare/3.3.4...3.3.6)

---
updated-dependencies:
- dependency-name: markdown
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 14:14:46 +00:00
dependabot[bot]
ab3eaf934d Bump jinja2 from 3.0.2 to 3.0.3
Bumps [jinja2](https://github.com/pallets/jinja) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-10 14:16:48 +00:00
Bastian Venthur
db30fe1d06 bumped version 2021-11-06 15:01:11 +01:00
Bastian Venthur
27a760d834 Merge pull request #17 from venthur/fix_autoreload
Fix autoreload
2021-11-06 15:00:08 +01:00
Bastian Venthur
a9abcd753a updated changelog 2021-11-06 14:59:53 +01:00
Bastian Venthur
3deb62ed88 Merge pull request #16 from venthur/dependabot/pip/twine-3.5.0
Bump twine from 3.4.2 to 3.5.0
2021-11-06 14:58:38 +01:00
Bastian Venthur
2366a2ae86 print the devserver URL to output 2021-11-06 14:57:37 +01:00
Bastian Venthur
0fb01e3249 updated changelog 2021-11-06 14:53:56 +01:00
Bastian Venthur
78316725cf remove warning in test due to threading race condition we don´t care
about
2021-11-06 14:51:46 +01:00
Bastian Venthur
4f1632e3cd Immediately rebuild once when entering autoreload 2021-11-06 14:12:57 +01:00
dependabot[bot]
d23f3666dc Bump twine from 3.4.2 to 3.5.0
Bumps [twine](https://github.com/pypa/twine) from 3.4.2 to 3.5.0.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/3.4.2...3.5.0)

---
updated-dependencies:
- dependency-name: twine
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-04 14:17:19 +00:00
Bastian Venthur
60cfd0290a updated changelog 2021-10-23 12:21:05 +02:00
Bastian Venthur
10ea8df1ac Merge pull request #12 from venthur/dependabot/pip/jinja2-3.0.2
Bump jinja2 from 3.0.1 to 3.0.2
2021-10-23 12:18:37 +02:00
Bastian Venthur
edc89581af Merge pull request #14 from venthur/dependabot/pip/pytest-cov-3.0.0
Bump pytest-cov from 2.12.1 to 3.0.0
2021-10-23 12:17:35 +02:00
dependabot[bot]
6d75891ace Bump pytest-cov from 2.12.1 to 3.0.0
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 2.12.1 to 3.0.0.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases)
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.12.1...v3.0.0)

---
updated-dependencies:
- dependency-name: pytest-cov
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 10:16:33 +00:00
Bastian Venthur
6367f5a55a Merge branch 'master' of github.com:venthur/blag 2021-10-23 12:16:06 +02:00
dependabot[bot]
3cd316a537 Bump jinja2 from 3.0.1 to 3.0.2
Bumps [jinja2](https://github.com/pallets/jinja) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.0.1...3.0.2)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-23 10:15:27 +00:00
Bastian Venthur
3b8d2fe9d6 Merge pull request #15 from venthur/dependabot/pip/flake8-4.0.1
Bump flake8 from 3.9.2 to 4.0.1
2021-10-23 12:15:06 +02:00
Bastian Venthur
1fe576a771 Merge pull request #13 from venthur/dependabot/pip/feedgenerator-2.0.0
Bump feedgenerator from 1.9.2 to 2.0.0
2021-10-23 12:14:39 +02:00
Bastian Venthur
2f4d2267a0 fixed typo in changelog 2021-10-23 12:08:13 +02:00
dependabot[bot]
7bb51ff060 Bump flake8 from 3.9.2 to 4.0.1
Bumps [flake8](https://github.com/pycqa/flake8) from 3.9.2 to 4.0.1.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/3.9.2...4.0.1)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 14:17:10 +00:00
dependabot[bot]
5a8012d62b Bump feedgenerator from 1.9.2 to 2.0.0
Bumps [feedgenerator](https://github.com/getpelican/feedgenerator) from 1.9.2 to 2.0.0.
- [Release notes](https://github.com/getpelican/feedgenerator/releases)
- [Changelog](https://github.com/getpelican/feedgenerator/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getpelican/feedgenerator/compare/1.9.2...2.0.0)

---
updated-dependencies:
- dependency-name: feedgenerator
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-06 14:23:13 +00:00
19 changed files with 251 additions and 19 deletions

View File

@@ -3,4 +3,4 @@ updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"

View File

@@ -17,8 +17,8 @@ jobs:
- macos-latest
- windows-latest
python-version:
- 3.8
- 3.9
- "3.8"
- "3.9"
- "3.10"
steps:

3
.gitignore vendored
View File

@@ -5,6 +5,9 @@ build/
dist/
*.egg-info/
docs/_build/
docs/api/
htmlcov/
.coverage

View File

@@ -1,6 +1,34 @@
# Changelog
## [1.1.0] - 2021-1006
## [1.3.1] - 2022-06-10
* fixed man page
## [1.3.0] - 2022-06-09
* debianized package
* Small fix in makefile
* updated dependencies:
* pytest 7.1.2
* sphinx 5.0.0
* twine 3.7.1
* wheel 0.37.1
* markdown 3.3.7
* jinja 3.1.2
* pygments 2.12.0
## [1.2.0] - 2021-11-06
* `make serve` now rebuilds immediately once after called to avoid serving
stale files
* updated dependencies:
* feedgenerator 2.0.0
* jinja2 3.0.1
* pytest-cov 3.0.0
* flake8 4.0.1
* twine 3.5.0
## [1.1.0] - 2021-10-06
* added Python 3.10 to list of supported versions to test against
* added dependabot to github workflows

View File

@@ -13,6 +13,7 @@ ifeq ($(OS), Windows_NT)
endif
.PHONY: all
all: lint test
$(VENV): requirements.txt requirements-dev.txt setup.py
@@ -45,6 +46,7 @@ clean:
rm -rf build dist *.egg-info
rm -rf $(VENV)
rm -rf $(DOCS_OUT)
rm -rf $(DOCS_SRC)/api
find . -type f -name *.pyc -delete
find . -type d -name __pycache__ -delete
# coverage

View File

@@ -3,7 +3,7 @@
blag is a blog-aware, static site generator, written in [Python][].
* an example "deployment" can be found [here][venthur.de]
* online [documentation][] is available on readthedocs
* online [documentation][] is available on https://readthedocs.org.
blag is named after [the blag of the webcomic xkcd][blagxkcd].
@@ -30,6 +30,21 @@ blag runs on Linux, Mac and Windows and requires Python >= 3.8
[pypi]: https://pypi.org/project/blag/
## Install
blag is available on [PyPI][], you can install it via:
```bash
$ pip install blag
```
On Debian or Ubuntu, you can also just install the Debian package:
```bash
$ sudo aptitude install blag
```
## Quickstart
```bash

View File

@@ -433,7 +433,7 @@ def quickstart(args):
base_url = input("Hostname (and path) to the root? "
"[https://example.com/]: ")
title = input("Title of your website? ")
description = input("Description of your website [John Does's Blog]? ")
description = input("Description of your website [John Doe's Blog]? ")
author = input("Author of your website [John Doe]? ")
config = configparser.ConfigParser()

View File

@@ -55,6 +55,9 @@ def autoreload(args):
last modified time). If the last modified time has changed, a
rebuild is triggered.
A rebuild is also performed immediately when this method is called
to avoid serving stale contents.
Parameters
----------
args : argparse.Namespace
@@ -62,12 +65,14 @@ def autoreload(args):
"""
dirs = [args.input_dir, args.template_dir, args.static_dir]
logger.info(f'Monitoring {dirs} for changes...')
last_mtime = get_last_modified(dirs)
# make sure we trigger the rebuild immediately when we enter the
# loop to avoid serving stale contents
last_mtime = 0
while True:
mtime = get_last_modified(dirs)
if mtime > last_mtime:
last_mtime = mtime
logger.debug('Change detected, rebuilding...')
logger.info('Change detected, rebuilding...')
blag.build(args)
time.sleep(1)
@@ -84,4 +89,5 @@ def serve(args):
directory=args.output_dir))
proc = multiprocessing.Process(target=autoreload, args=(args,))
proc.start()
logger.info("\n\n Devserver Started -- visit http://localhost:8000\n")
httpd.serve_forever()

View File

@@ -1 +1 @@
__VERSION__ = '1.1.0'
__VERSION__ = '1.3.1'

1
debian/blag-doc.docs vendored Normal file
View File

@@ -0,0 +1 @@
build/html/

1
debian/blag.install vendored Normal file
View File

@@ -0,0 +1 @@
build/man/blag.1 /usr/share/man/man1

11
debian/changelog vendored Normal file
View File

@@ -0,0 +1,11 @@
blag (1.3.1) unstable; urgency=medium
* re-upload with man pages
-- Bastian Venthur <venthur@debian.org> Fri, 10 Jun 2022 07:26:19 +0200
blag (1.3.0) unstable; urgency=medium
* Initial release. Closes: #1012584
-- Bastian Venthur <venthur@debian.org> Sun, 05 Jun 2022 15:20:48 +0200

59
debian/control vendored Normal file
View File

@@ -0,0 +1,59 @@
Source: blag
Section: python
Priority: optional
Maintainer: Bastian Venthur <venthur@debian.org>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
dh-sequence-sphinxdoc,
dh-sequence-python3,
dh-python,
python3-setuptools,
python3-all,
python3-markdown,
python3-feedgenerator,
python3-jinja2,
python3-pygments,
python3-pytest,
python3-pytest-cov,
python3-sphinx,
#Testsuite: autopkgtest-pkg-python
Standards-Version: 4.6.0.1
Homepage: https://github.com/venthur/blag
Vcs-Browser: https://github.com/venthur/blag
Vcs-Git: https://github.com/venthur/blag.git
Package: blag
Architecture: all
Depends:
${python3:Depends},
${misc:Depends},
Suggests:
python-blag-doc,
Description: Blog-aware, static site generator
Blag is a blog-aware, static site generator, written in Python. It supports
the following features:
* Write content in Markdown
* Theming support using Jinja2 templates
* Generation of Atom feeds for blog content
* Fenced code blocks and syntax highlighting using Pygments
* Integrated devserver
* Available on PyPI
Package: blag-doc
Section: doc
Architecture: all
Depends:
${sphinxdoc:Depends},
${misc:Depends},
Description: Blog-aware, static site generator (documentation)
Blag is a blog-aware, static site generator, written in Python. It supports
the following features:
* Write content in Markdown
* Theming support using Jinja2 templates
* Generation of Atom feeds for blog content
* Fenced code blocks and syntax highlighting using Pygments
* Integrated devserver
* Available on PyPI
.
This is the common documentation package.

35
debian/copyright vendored Normal file
View File

@@ -0,0 +1,35 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://github.com/venthur/blag
Upstream-Name: blag
Upstream-Contact: Bastian Venthur venthur@debian.org
Files:
*
Copyright:
2022 Bastian Venthur venthur@debian.org
License: MIT
Files:
debian/*
Copyright:
2022 Bastian Venthur <venthur@debian.org>
License: MIT
License: MIT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

25
debian/rules vendored Executable file
View File

@@ -0,0 +1,25 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
#export DH_VERBOSE = 1
export PYBUILD_DESTDIR=debian/blag
export PYBUILD_TEST_ARGS=--no-cov
export PYBUILD_NAME=blag
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
# If you need to rebuild the Sphinx documentation:
# Add sphinxdoc to the dh --with line.
#
# And uncomment the following lines.
execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep:
PYTHONPATH=. python3 -m sphinx -N -bhtml \
docs/ build/html # HTML generator
PYTHONPATH=. python3 -m sphinx -N -bman \
docs/ build/man # Manpage generator

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (native)

View File

@@ -1,6 +1,6 @@
sphinx==4.2.0
twine==3.4.2
wheel==0.37.0
pytest==6.2.5
pytest-cov==2.12.1
flake8==3.9.2
sphinx==5.0.0
twine==4.0.0
wheel==0.37.1
pytest==7.1.2
pytest-cov==3.0.0
flake8==4.0.1

View File

@@ -1,4 +1,4 @@
markdown==3.3.4
feedgenerator==1.9.2
jinja2==3.0.1
pygments==2.10.0
markdown==3.3.7
feedgenerator==2.0.0
jinja2==3.1.2
pygments==2.12.0

View File

@@ -1,4 +1,7 @@
import time
import threading
import pytest
from blag import devserver
@@ -19,3 +22,45 @@ def test_get_last_modified(cleandir):
assert t2 > t1
assert t2 == t3
def test_autoreload_builds_immediately(args):
# create a dummy file that can be build
with open('content/test.md', 'w') as fh:
fh.write('boo')
t = threading.Thread(target=devserver.autoreload,
args=(args, ),
daemon=True,)
t0 = devserver.get_last_modified(['build'])
t.start()
# try for 5 seconds...
for i in range(5):
time.sleep(1)
t1 = devserver.get_last_modified(['build'])
print(t1)
if t1 > t0:
break
assert t1 > t0
@pytest.mark.filterwarnings("ignore::pytest.PytestUnhandledThreadExceptionWarning") # noqa
def test_autoreload(args):
t = threading.Thread(target=devserver.autoreload,
args=(args, ),
daemon=True,)
t.start()
t0 = devserver.get_last_modified(['build'])
# create a dummy file that can be build
with open('content/test.md', 'w') as fh:
fh.write('boo')
# try for 5 seconds to see if we rebuild once...
for i in range(5):
time.sleep(1)
t1 = devserver.get_last_modified(['build'])
if t1 > t0:
break
assert t1 > t0