Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Aug 26, 2019
2 parents 8fb91a7 + 02ec1dd commit 541ae94
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .changes/0.2.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"description": "Allow to replace the template layout of the form",
"type": "minor"
},
{
"description": "Remove uuid from requirements.txt",
"type": "patch"
}
]
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
Note: version releases in the 0.x.y range may introduce breaking changes.

## 0.2.0

- minor: Allow to replace the template layout of the form
- patch: Remove uuid from requirements.txt

## 0.1.0

- minor: Cleanup and ensure we can use this with MySql/MariaDB
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.PHONY: clean-pyc clean-build docs
CURRENT_VERSION := $(shell semversioner current-version)

clean: clean-build clean-pyc

Expand Down Expand Up @@ -49,9 +48,14 @@ docs:

prepare: clean test docs authors

semver:
semver: semver-release semver-updates

semver-release:
semversioner release

semver-updates:
semversioner changelog > CHANGELOG.md
$(eval CURRENT_VERSION = $(shell semversioner current-version))
sed -i "s/^__version__.*/__version__ = \"$(CURRENT_VERSION)\"/" setup.py
git add .changes setup.py CHANGELOG.md
git commit -m "semverioner release updates" --no-verify
Expand Down
1 change: 1 addition & 0 deletions flask_beet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"ONBOARDING_MESSAGE_KEY": "_onboarding_message",
# TEMPLATES
"LOGIN_TEMPLATE": "/beet/login.html",
"LAYOUT_TEMPLATE": "layout.html",
}


Expand Down
3 changes: 2 additions & 1 deletion flask_beet/templates/beet/login.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% extends "layout.html" %}
{% set layout = config.get('BEET_LAYOUT_TEMPLATE') %}
{% extends layout %}

{% block content %}
{% include "_messages.html" %}
Expand Down
4 changes: 1 addition & 3 deletions flask_beet/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def login():
if beet_login_form.message.signedMessage.plain_message != session.get(
app.config.get("BEET_UNIQUE_MESSAGE_SESSION_KEY")
):
flash(
app.config.get("BEET_INVALID_PAYLOAD_MESSAGE", "ERRORORORORO"), "error"
)
flash(app.config.get("BEET_INVALID_PAYLOAD_MESSAGE"), "error")
return redirect(url_for(".login"))

account_name = beet_login_form.message.signedMessage.signed_by_name
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ Flask-Session
SQLAlchemy
WTForms
Werkzeug
uuid
blinker
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from setuptools import setup

__version__ = "0.0.5"
__version__ = "0.2.0"

setup(
name="Flask-Beet",
Expand Down

0 comments on commit 541ae94

Please sign in to comment.