Skip to content

Commit

Permalink
chore(release): Cut 3.0.1-rc1 (#9)
Browse files Browse the repository at this point in the history
Change setup.py to grab version from __init__.py

Closes #8
  • Loading branch information
jwag956 committed Apr 24, 2019
1 parent 2cbf6e0 commit 6b4060e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Flask-Security Changelog

Here you can see the full list of changes between each Flask-Security release.

Version 3.0.1
--------------

- Support 3.7 as part of CI
- Rebrand to this forked repo

Version 3.0.0
-------------

Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@

# General information about the project.
project = u'Flask-Security'
copyright = u'2012, Matt Wright'
copyright = u'2012-2019, Matt Wright'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '3.0.0'
version = '3.0.1'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
2 changes: 1 addition & 1 deletion flask_security/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
reset_password_instructions_sent, user_confirmed, user_registered
from .utils import login_user, logout_user, url_for_security

__version__ = '3.0.0'
__version__ = '3.0.1-rc1'
__all__ = (
'AnonymousUser',
'ConfirmRegisterForm',
Expand Down
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@

"""Simple security for Flask apps."""

import io
import re
from setuptools import find_packages, setup

readme = open('README.rst').read()
with io.open('README.rst', 'rt', encoding='utf8') as f:
readme = f.read()

with io.open('flask_security/__init__.py', 'rt', encoding='utf8') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)

tests_require = [
'Flask-CLI>=0.4.0',
Expand Down Expand Up @@ -62,8 +68,8 @@
packages = find_packages()

setup(
name='Flask-Security',
version='3.0.0',
name='Flask-Security-Too',
version=version,
description=__doc__,
long_description=readme,
keywords='flask security',
Expand Down

0 comments on commit 6b4060e

Please sign in to comment.