Skip to content

Commit

Permalink
add __version__ to package
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Sep 4, 2016
1 parent 1c35bec commit d188450
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flask_httpauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
from flask import request, make_response, session
from werkzeug.datastructures import Authorization

__version__ = '3.2.0'


class HTTPAuth(object):
def __init__(self, scheme=None, realm=None):
Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
Basic and Digest HTTP authentication for Flask routes.
"""
import re
from setuptools import setup

with open('flask_httpauth.py', 'r') as f:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
f.read(), re.MULTILINE).group(1)

setup(
name='Flask-HTTPAuth',
version='3.2.0',
version=version,
url='http://github.com/miguelgrinberg/flask-httpauth/',
license='MIT',
author='Miguel Grinberg',
Expand Down

0 comments on commit d188450

Please sign in to comment.