Skip to content

Commit

Permalink
Fixed get version
Browse files Browse the repository at this point in the history
  • Loading branch information
s-m-i-t-a committed Jul 24, 2014
1 parent 0735acd commit 5e37401
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions flask_musers/__init__.py
Expand Up @@ -12,15 +12,15 @@
'''


from flask.ext.login import LoginManager
from .models import User


__version__ = '0.0.6'
__version__ = '0.0.7'


class MUsers(object):
def __init__(self, app=None):
from flask.ext.login import LoginManager
self.login_manager = LoginManager()
self.login_manager.user_loader(self.load_user)

Expand Down
10 changes: 5 additions & 5 deletions setup.py
Expand Up @@ -4,9 +4,6 @@
import os
import sys

import flask_musers


try:
from setuptools import setup
except ImportError:
Expand All @@ -16,14 +13,17 @@
os.system('python setup.py sdist upload')
sys.exit()

version = flask_musers.__version__
module_path = os.path.join(os.path.dirname(__file__), 'flask_musers', '__init__.py')
version_line = [line for line in open(module_path)
if line.startswith('__version__')][0]
__version__ = eval(version_line.split('__version__ = ')[-1])

readme = open('README.rst').read()
history = open('HISTORY.rst').read().replace('.. :changelog:', '')

setup(
name='flask-musers',
version=version,
version=__version__,
description='Flask app for store user in MongoDB'
' and simple views for login, logout and registration.',
long_description=readme + '\n\n' + history,
Expand Down

0 comments on commit 5e37401

Please sign in to comment.