forked from github.com/blag
Compare commits
37 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3572d414f | ||
|
|
128d3f032d | ||
|
|
e765d6b717 | ||
|
|
d8ff4afddb | ||
|
|
169f0f2e0b | ||
|
|
6fcbb2e1f6 | ||
|
|
ddfee7228c | ||
|
|
f2facf895e | ||
|
|
0e2847ca61 | ||
|
|
996b51e07a | ||
|
|
322957e98f | ||
|
|
06d8623dd7 | ||
|
|
c3f0dffd11 | ||
|
|
f6c18d3819 | ||
|
|
fe43288c8c | ||
|
|
352c37045a | ||
|
|
0ca248ede3 | ||
|
|
6243552de1 | ||
|
|
a330d9766d | ||
|
|
33728ce713 | ||
|
|
4c41d1429f | ||
|
|
f1e122cd23 | ||
|
|
fcfa1bf06e | ||
|
|
470bfba2bf | ||
|
|
5902582c47 | ||
|
|
e168a0e0d3 | ||
|
|
c3993f5111 | ||
|
|
ffe9d21f91 | ||
|
|
d8d2f4f5d6 | ||
|
|
58b57839a6 | ||
|
|
ca8db66d52 | ||
|
|
837f9e1026 | ||
|
|
bf368c0ce6 | ||
|
|
e45e59d568 | ||
|
|
642e31c357 | ||
|
|
e317f80d1c | ||
|
|
a960db4952 |
5
.github/dependabot.yml
vendored
5
.github/dependabot.yml
vendored
@@ -4,3 +4,8 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
|||||||
59
.github/workflows/python-package.yaml
vendored
59
.github/workflows/python-package.yaml
vendored
@@ -20,23 +20,62 @@ jobs:
|
|||||||
- "3.8"
|
- "3.8"
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.10"
|
- "3.10"
|
||||||
|
- "3.11"
|
||||||
|
exclude:
|
||||||
|
# 3.8 on windows fails due to some pip issue
|
||||||
|
- os: windows-latest
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-python@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Run tests
|
- run: |
|
||||||
run: |
|
make venv
|
||||||
|
- run: |
|
||||||
make test
|
make test
|
||||||
|
|
||||||
- name: Run linter
|
lint:
|
||||||
run: |
|
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
|
make lint
|
||||||
|
|
||||||
- name: Run mypy
|
mypy:
|
||||||
run: |
|
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
|
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
|
||||||
|
|||||||
17
CHANGELOG.md
17
CHANGELOG.md
@@ -1,5 +1,22 @@
|
|||||||
# Changelog
|
# 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
|
## [1.4.1] - 2022-09-29
|
||||||
|
|
||||||
* applied multi-arch fix by debian-janitor
|
* applied multi-arch fix by debian-janitor
|
||||||
|
|||||||
19
Makefile
19
Makefile
@@ -14,13 +14,13 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
.PHONY: all
|
.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)
|
$(PY) -m venv $(VENV)
|
||||||
$(BIN)/pip install --upgrade -r requirements.txt
|
$(BIN)/pip install --upgrade -r requirements.txt
|
||||||
$(BIN)/pip install --upgrade -r requirements-dev.txt
|
$(BIN)/pip install --upgrade -r requirements-dev.txt
|
||||||
$(BIN)/pip install -e .
|
$(BIN)/pip install -e .['dev']
|
||||||
touch $(VENV)
|
touch $(VENV)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
@@ -35,10 +35,17 @@ mypy: $(VENV)
|
|||||||
lint: $(VENV)
|
lint: $(VENV)
|
||||||
$(BIN)/flake8
|
$(BIN)/flake8
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: build
|
||||||
release: $(VENV)
|
build: $(VENV)
|
||||||
rm -rf dist
|
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/*
|
$(BIN)/twine upload dist/*
|
||||||
|
|
||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__VERSION__ = '1.4.1'
|
__VERSION__ = '1.5.0'
|
||||||
|
|||||||
20
debian/changelog
vendored
20
debian/changelog
vendored
@@ -1,3 +1,23 @@
|
|||||||
|
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
|
blag (1.4.1) unstable; urgency=medium
|
||||||
|
|
||||||
* Applied multi-arch fix by debian-janitor
|
* Applied multi-arch fix by debian-janitor
|
||||||
|
|||||||
1
debian/control
vendored
1
debian/control
vendored
@@ -8,6 +8,7 @@ Build-Depends:
|
|||||||
dh-sequence-sphinxdoc,
|
dh-sequence-sphinxdoc,
|
||||||
dh-sequence-python3,
|
dh-sequence-python3,
|
||||||
dh-python,
|
dh-python,
|
||||||
|
pybuild-plugin-pyproject,
|
||||||
python3-setuptools,
|
python3-setuptools,
|
||||||
python3-all,
|
python3-all,
|
||||||
python3-markdown,
|
python3-markdown,
|
||||||
|
|||||||
70
pyproject.toml
Normal file
70
pyproject.toml
Normal 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
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
sphinx==5.2.1
|
build==0.9.0
|
||||||
twine==4.0.1
|
sphinx==5.3.0
|
||||||
wheel==0.37.1
|
twine==4.0.2
|
||||||
pytest==7.1.3
|
wheel==0.40.0
|
||||||
pytest-cov==3.0.0
|
pytest==7.3.0
|
||||||
flake8==5.0.4
|
pytest-cov==4.0.0
|
||||||
mypy==0.971
|
flake8==6.0.0
|
||||||
types-markdown==3.4.2
|
mypy==1.2.0
|
||||||
|
types-markdown==3.4.2.1
|
||||||
|
|||||||
16
setup.cfg
16
setup.cfg
@@ -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
|
|
||||||
42
setup.py
42
setup.py
@@ -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',
|
|
||||||
)
|
|
||||||
Reference in New Issue
Block a user