Compare commits

..

46 Commits
1.4.0 ... 1.5.0

Author SHA1 Message Date
Bastian Venthur
a3572d414f added blag.templates to packages 2023-04-16 10:57:44 +02:00
Bastian Venthur
128d3f032d updated changelog 2023-04-16 10:49:06 +02:00
Bastian Venthur
e765d6b717 eclude py38 on windows 2023-04-16 10:37:06 +02:00
Bastian Venthur
d8ff4afddb Revert "WIP"
This reverts commit 169f0f2e0b.
2023-04-16 10:32:04 +02:00
Bastian Venthur
169f0f2e0b WIP 2023-04-16 10:30:53 +02:00
Bastian Venthur
6fcbb2e1f6 Merge branch 'master' into pyproject_toml 2023-04-16 10:25:19 +02:00
Bastian Venthur
ddfee7228c Merge remote-tracking branch 'origin/dependabot/pip/wheel-0.40.0' into upgrade-deps 2023-04-16 10:24:37 +02:00
Bastian Venthur
f2facf895e Merge remote-tracking branch 'origin/dependabot/pip/twine-4.0.2' into upgrade-deps 2023-04-16 10:21:58 +02:00
Bastian Venthur
0e2847ca61 Merge remote-tracking branch 'origin/dependabot/pip/flake8-6.0.0' into upgrade-deps 2023-04-16 10:21:11 +02:00
Bastian Venthur
996b51e07a Merge remote-tracking branch 'origin/dependabot/pip/mypy-1.2.0' into upgrade-deps 2023-04-16 10:19:10 +02:00
Bastian Venthur
322957e98f Merge remote-tracking branch 'origin/dependabot/pip/pytest-7.3.0' into upgrade-deps 2023-04-16 10:18:12 +02:00
dependabot[bot]
06d8623dd7 Bump pytest from 7.1.3 to 7.3.0
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.3 to 7.3.0.
- [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.3...7.3.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 14:58:07 +00:00
dependabot[bot]
c3f0dffd11 Bump mypy from 0.982 to 1.2.0
Bumps [mypy](https://github.com/python/mypy) from 0.982 to 1.2.0.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.982...v1.2.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 14:57:48 +00:00
dependabot[bot]
f6c18d3819 Bump wheel from 0.37.1 to 0.40.0
Bumps [wheel](https://github.com/pypa/wheel) from 0.37.1 to 0.40.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.37.1...0.40.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 14:58:58 +00:00
Bastian Venthur
fe43288c8c added debian dependency and test-release target for gh action 2022-12-09 21:03:46 +01:00
Bastian Venthur
352c37045a moved to pyproject toml 2022-12-09 20:57:11 +01:00
dependabot[bot]
0ca248ede3 Bump twine from 4.0.1 to 4.0.2
Bumps [twine](https://github.com/pypa/twine) from 4.0.1 to 4.0.2.
- [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/4.0.1...4.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 14:02:57 +00:00
dependabot[bot]
6243552de1 Bump flake8 from 5.0.4 to 6.0.0
Bumps [flake8](https://github.com/pycqa/flake8) from 5.0.4 to 6.0.0.
- [Release notes](https://github.com/pycqa/flake8/releases)
- [Commits](https://github.com/pycqa/flake8/compare/5.0.4...6.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-28 14:02:34 +00:00
Bastian Venthur
a330d9766d Merge pull request #77 from venthur/dependabot/github_actions/actions/checkout-3
Bump actions/checkout from 2 to 3
2022-11-15 21:52:09 +01:00
dependabot[bot]
33728ce713 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 20:48:40 +00:00
Bastian Venthur
4c41d1429f added changelog 2022-11-15 21:47:52 +01:00
Bastian Venthur
f1e122cd23 fix 2022-11-15 21:43:43 +01:00
Bastian Venthur
fcfa1bf06e removed most names 2022-11-15 21:42:58 +01:00
Bastian Venthur
470bfba2bf test 2022-11-15 21:39:24 +01:00
Bastian Venthur
5902582c47 added gh-actions check for dependabot 2022-11-15 21:30:27 +01:00
Bastian Venthur
e168a0e0d3 remove fail-fast for non-matrix, seperate setup venv 2022-11-15 21:21:03 +01:00
Bastian Venthur
c3993f5111 split mypy and lint from tests and run them only on linux/latest stable python 2022-11-15 21:11:15 +01:00
Bastian Venthur
ffe9d21f91 Merge pull request #72 from venthur/py311
added python 3.11 to test suite
2022-10-29 13:32:22 +02:00
Bastian Venthur
d8d2f4f5d6 added python 3.11 to test suite 2022-10-29 13:26:42 +02:00
Bastian Venthur
58b57839a6 Merge remote-tracking branch 'origin/dependabot/pip/sphinx-5.3.0' 2022-10-29 13:23:48 +02:00
Bastian Venthur
ca8db66d52 Merge remote-tracking branch 'origin/dependabot/pip/pytest-cov-4.0.0' 2022-10-29 13:23:16 +02:00
Bastian Venthur
837f9e1026 Merge remote-tracking branch 'origin/dependabot/pip/types-markdown-3.4.2.1' 2022-10-29 13:21:56 +02:00
Bastian Venthur
bf368c0ce6 Merge remote-tracking branch 'origin/dependabot/pip/mypy-0.982' 2022-10-29 13:20:16 +02:00
dependabot[bot]
e45e59d568 Bump sphinx from 5.2.1 to 5.3.0
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.2.1 to 5.3.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases)
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES)
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.2.1...v5.3.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-10-17 14:38:34 +00:00
dependabot[bot]
642e31c357 Bump mypy from 0.971 to 0.982
Bumps [mypy](https://github.com/python/mypy) from 0.971 to 0.982.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.971...v0.982)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 15:07:18 +00:00
dependabot[bot]
e317f80d1c Bump types-markdown from 3.4.2 to 3.4.2.1
Bumps [types-markdown](https://github.com/python/typeshed) from 3.4.2 to 3.4.2.1.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-10 15:07:12 +00:00
dependabot[bot]
a960db4952 Bump pytest-cov from 3.0.0 to 4.0.0
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 3.0.0 to 4.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/v3.0.0...v4.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>
2022-10-03 14:13:26 +00:00
Bastian Venthur
4b2f88a68a Merge remote-tracking branch 'origin/dependabot/pip/types-markdown-3.4.2' 2022-09-29 20:49:49 +02:00
Bastian Venthur
153b407697 Merge remote-tracking branch 'origin/dependabot/pip/sphinx-5.2.1' 2022-09-29 20:48:09 +02:00
Bastian Venthur
34eb413434 updated changelog 2022-09-29 20:47:14 +02:00
Bastian Venthur
629a3aa473 Merge remote-tracking branch 'origin/dependabot/pip/pytest-7.1.3' 2022-09-29 20:46:58 +02:00
Bastian Venthur
c06424cfdf bumped version, updated changelogs 2022-09-29 20:43:40 +02:00
Debian Janitor
31fc3d688b Apply multi-arch hints.
+ blag-doc: Add Multi-Arch: foreign.

Changes-By: apply-multiarch-hints
2022-09-29 01:12:53 +00:00
dependabot[bot]
2d4f3334cf Bump sphinx from 5.1.1 to 5.2.1
Bumps [sphinx](https://github.com/sphinx-doc/sphinx) from 5.1.1 to 5.2.1.
- [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/v5.1.1...v5.2.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-26 14:15:49 +00:00
dependabot[bot]
118b20ef33 Bump types-markdown from 3.4.1 to 3.4.2
Bumps [types-markdown](https://github.com/python/typeshed) from 3.4.1 to 3.4.2.
- [Release notes](https://github.com/python/typeshed/releases)
- [Commits](https://github.com/python/typeshed/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 14:10:38 +00:00
dependabot[bot]
a4aa8045eb Bump pytest from 7.1.2 to 7.1.3
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.1.2 to 7.1.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/7.1.2...7.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-12 14:15:31 +00:00
12 changed files with 202 additions and 83 deletions

2
.flake8 Normal file
View File

@@ -0,0 +1,2 @@
[flake8]
exclude = venv,build,docs

View File

@@ -4,3 +4,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@@ -20,23 +20,62 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
exclude:
# 3.8 on windows fails due to some pip issue
- os: windows-latest
python-version: "3.8"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
- run: |
make venv
- run: |
make test
- name: Run linter
run: |
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: |
make venv
- run: |
make lint
- name: Run mypy
run: |
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: |
make venv
- run: |
make mypy
test-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: |
make venv
- run: |
make test-release

View File

@@ -1,5 +1,30 @@
# Changelog
## [1.5.0] - 2023-04-16
* moved to pyproject.toml
* added python 3.11 to test suite
* break out lint and mypy from test matrix and only run on linux- and latest
stable python to make it a bit more efficient
* added dependabot check for github actions
* updated dependencies:
* mypy 1.2.0
* types-markdown 3.4.2.1
* pytest-cov 4.0.0
* sphinx 5.3.0
* pytest 7.3.0
* flake8 6.0.0
* twine 4.0.2
* wheel 0.40.0
## [1.4.1] - 2022-09-29
* applied multi-arch fix by debian-janitor
* updated dependencies:
* pytest 7.1.3
* sphinx 5.2.1
* types-markdown 3.4.2
## [1.4.0] - 2022-09-01
* added type hints and mypy --strict to test suite

View File

@@ -14,13 +14,13 @@ endif
.PHONY: all
all: lint mypy test
all: lint mypy test test-release
$(VENV): requirements.txt requirements-dev.txt setup.py
$(VENV): requirements.txt requirements-dev.txt pyproject.toml
$(PY) -m venv $(VENV)
$(BIN)/pip install --upgrade -r requirements.txt
$(BIN)/pip install --upgrade -r requirements-dev.txt
$(BIN)/pip install -e .
$(BIN)/pip install -e .['dev']
touch $(VENV)
.PHONY: test
@@ -35,10 +35,17 @@ mypy: $(VENV)
lint: $(VENV)
$(BIN)/flake8
.PHONY: release
release: $(VENV)
.PHONY: build
build: $(VENV)
rm -rf dist
$(BIN)/python setup.py sdist bdist_wheel
$(BIN)/python3 -m build
.PHONY: test-release
test-release: $(VENV) build
$(BIN)/twine check dist/*
.PHONY: release
release: $(VENV) build
$(BIN)/twine upload dist/*
.PHONY: docs

View File

@@ -1 +1 @@
__VERSION__ = '1.4.0'
__VERSION__ = '1.5.0'

26
debian/changelog vendored
View File

@@ -1,3 +1,29 @@
blag (1.5.0) unstable; urgency=medium
* new upstream version
* moved to pyproject.toml
* added python 3.11 to test suite
* break out lint and mypy from test matrix and only run on linux- and latest
stable python to make it a bit more efficient
* added dependabot check for github actions
* updated dependencies:
* mypy 1.2.0
* types-markdown 3.4.2.1
* pytest-cov 4.0.0
* sphinx 5.3.0
* pytest 7.3.0
* flake8 6.0.0
* twine 4.0.2
* wheel 0.40.0
-- Bastian Venthur <venthur@debian.org> Sun, 16 Apr 2023 10:48:18 +0200
blag (1.4.1) unstable; urgency=medium
* Applied multi-arch fix by debian-janitor
-- Bastian Venthur <venthur@debian.org> Thu, 29 Sep 2022 20:41:28 +0200
blag (1.4.0) unstable; urgency=medium
* added type hints and mypy --strict to test suite

2
debian/control vendored
View File

@@ -8,6 +8,7 @@ Build-Depends:
dh-sequence-sphinxdoc,
dh-sequence-python3,
dh-python,
pybuild-plugin-pyproject,
python3-setuptools,
python3-all,
python3-markdown,
@@ -46,6 +47,7 @@ Architecture: all
Depends:
${sphinxdoc:Depends},
${misc:Depends},
Multi-Arch: foreign
Description: Blog-aware, static site generator (documentation)
Blag is a blog-aware, static site generator, written in Python. It supports
the following features:

70
pyproject.toml Normal file
View File

@@ -0,0 +1,70 @@
[build-system]
requires = ["setuptools>=64.0"]
build-backend = "setuptools.build_meta"
[project]
name = "blag"
authors = [
{ name="Bastian Venthur", email="mail@venthur.de" },
]
description = "blog-aware, static site generator"
keywords = ["markdown", "blag", "blog", "static site generator", "cli"]
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"markdown",
"feedgenerator",
"jinja2",
"pygments",
]
[project.scripts]
blag = "blag.blag:main"
[project.urls]
'Documentation' = 'https://blag.readthedocs.io/'
'Source' = 'https://github.com/venthur/blag'
'Changelog' = 'https://github.com/venthur/blag/blob/master/CHANGELOG.md'
[project.optional-dependencies]
dev = [
"build",
"sphinx",
"twine",
"wheel",
"pytest",
"pytest-cov",
"flake8",
"mypy",
"types-markdown",
]
[tool.setuptools.dynamic]
version = {attr = "blag.__VERSION__" }
[tool.setuptools]
packages = [
"blag",
"blag.templates",
]
[tool.setuptools.package-data]
blag = ["templates/*"]
[tool.pytest.ini_options]
addopts = """
--cov=blag
--cov=tests
--cov-report=html
--cov-report=term-missing:skip-covered
"""
[tool.mypy]
files = "blag,tests"
strict = true
[[tool.mypy.overrides]]
module = "feedgenerator.*"
ignore_missing_imports = true

View File

@@ -1,8 +1,9 @@
sphinx==5.1.1
twine==4.0.1
wheel==0.37.1
pytest==7.1.2
pytest-cov==3.0.0
flake8==5.0.4
mypy==0.971
types-markdown==3.4.1
build==0.9.0
sphinx==5.3.0
twine==4.0.2
wheel==0.40.0
pytest==7.3.0
pytest-cov==4.0.0
flake8==6.0.0
mypy==1.2.0
types-markdown==3.4.2.1

View File

@@ -1,16 +0,0 @@
[tool:pytest]
addopts =
--cov=blag
--cov=tests
--cov-report=html
--cov-report=term-missing:skip-covered
[flake8]
exclude = venv,build,docs
[mypy]
files = blag,tests
strict = True
[mypy-feedgenerator.*]
ignore_missing_imports = True

View File

@@ -1,42 +0,0 @@
#!/usr/bin/env python
from setuptools import setup
meta = {}
exec(open('./blag/version.py').read(), meta)
meta['long_description'] = open('./README.md').read()
setup(
name='blag',
version=meta['__VERSION__'],
description='blog-aware, static site generator',
long_description=meta['long_description'],
long_description_content_type='text/markdown',
keywords='markdown blag blog static site generator cli',
author='Bastian Venthur',
author_email='mail@venthur.de',
url='https://github.com/venthur/blag',
project_urls={
'Documentation': 'https://blag.readthedocs.io/',
'Source': 'https://github.com/venthur/blag',
'Changelog':
'https://github.com/venthur/blag/blob/master/CHANGELOG.md',
},
python_requires='>=3.8',
package_data={
'blag': ['templates/*'],
},
install_requires=[
'markdown',
'feedgenerator',
'jinja2',
'pygments',
],
packages=['blag'],
entry_points={
'console_scripts': [
'blag = blag.blag:main'
]
},
license='MIT',
)