Compare commits

...

12 Commits
0.0.2 ... 0.0.3

Author SHA1 Message Date
Bastian Venthur
dbd1679038 remove dist directory before building next version 2021-03-12 21:11:19 +01:00
Bastian Venthur
7eafaba49a updated readme 2021-03-12 21:06:54 +01:00
Bastian Venthur
a98b2071fd updated readme 2021-03-12 20:42:15 +01:00
Bastian Venthur
98e124dfc1 rely on makefile again 2021-03-12 20:15:24 +01:00
Bastian Venthur
3fe9a1ae16 simplify venv commands 2021-03-12 19:44:21 +01:00
Bastian Venthur
12c3315808 docyment PY variable 2021-03-12 19:44:12 +01:00
Bastian Venthur
7decb8fddd Try python for windows 2021-03-12 19:28:45 +01:00
Bastian Venthur
7cb373af94 try python 2021-03-12 16:58:12 +01:00
Bastian Venthur
65fdb3405a another attempt 2021-03-12 16:54:25 +01:00
Bastian Venthur
6a57641ec2 fixed usage of PY 2021-03-12 16:44:32 +01:00
Bastian Venthur
96e2eb76d4 bleh 2021-03-12 16:43:23 +01:00
Bastian Venthur
59d7d2bb71 test makefile again 2021-03-12 16:28:48 +01:00
5 changed files with 44 additions and 25 deletions

View File

@@ -28,15 +28,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run tests
run: |
pytest
make test
- name: Run linter
run: |
flake8
make lint

View File

@@ -1,31 +1,34 @@
# system python interpreter. used only to create virtual environment
PY = python3
VENV = venv
BIN=$(VENV)/bin
ifeq ($(OS), Windows_NT)
BIN=$(VENV)/Scripts
else
BIN=$(VENV)/bin
PY=python
endif
all: lint test
$(VENV): requirements.txt requirements-dev.txt setup.py
python3 -m venv $(VENV)
$(BIN)/python3 -m pip install --upgrade -r requirements.txt
$(BIN)/python3 -m pip install --upgrade -r requirements-dev.txt
$(BIN)/python3 -m pip install -e .
$(PY) -m venv $(VENV)
$(BIN)/pip install --upgrade -r requirements.txt
$(BIN)/pip install --upgrade -r requirements-dev.txt
$(BIN)/pip install -e .
touch $(VENV)
test: $(VENV)
$(BIN)/python3 -m pytest
$(BIN)/pytest
.PHONY: test
lint: $(VENV)
$(BIN)/python3 -m flake8
$(BIN)/flake8
.PHONY: lint
release: $(VENV)
$(BIN)/python3 setup.py sdist bdist_wheel
rm -rf dist
$(BIN)/python setup.py sdist bdist_wheel
$(BIN)/twine upload dist/*
.PHONY: release

View File

@@ -1,11 +1,32 @@
# blag -- a simple, blog-aware static site generator
# blag
## Installation
blag is a blog-aware, static site generator, written in [Python][].
blag is named after [the blag of the webcomic xkcd][blagxkcd].
[python]: https://python.org
[blagxkcd]: https://blog.xkcd.com
## 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][]
blag runs on Linux, Mac and Windows and requires Python >= 3.8
[markdown]: https://daringfireball.net/projects/markdown/
[jinja2]: https://palletsprojects.com/p/jinja/
[pygments]: https://pygments.org/
## Quickstart
```bash
$ pip install blag
$ pip install blag # 1. install blag
$ blag quickstart # 2. create a new site
$ vim content/hello-world.md # 3. create some content
$ blag build # 4. build the website
```
## Usage
TBD

View File

@@ -1 +1 @@
__VERSION__ = '0.0.2'
__VERSION__ = '0.0.3'

View File

@@ -10,7 +10,7 @@ meta['long_description'] = open('./README.md').read()
setup(
name='blag',
version=meta['__VERSION__'],
description='simple blog-aware static site generator',
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',