File: setup.py

package info (click to toggle)
flask-login 0.2.6-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 128 kB
  • ctags: 87
  • sloc: python: 587; makefile: 2
file content (57 lines) | stat: -rw-r--r-- 1,909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
'''
    Flask-Login
    -----------

    Flask-Login provides user session management for Flask. It handles the
    common tasks of logging in, logging out, and remembering your users'
    sessions over extended periods of time.

    Flask-Login is not bound to any particular database system or permissions
    model. The only requirement is that your user objects implement a few
    methods, and that you provide a callback to the extension capable of
    loading users from their ID.

    Links
    `````
    * `documentation <http://packages.python.org/Flask-Login>`_
    * `development version
    <https://github.com/maxcountryman/flask-login>`_
'''
import os
import sys

from setuptools import setup

module_path = os.path.join(os.path.dirname(__file__), 'flask_login.py')
version_line = [line for line in open(module_path)
                if line.startswith('__version_info__')][0]

__version__ = '.'.join(eval(version_line.split('__version_info__ = ')[-1]))

if sys.argv[-1] == 'test':
    status = os.system('make check')
    status >>= 8
    sys.exit(status)

setup(name='Flask-Login',
      version=__version__,
      url='https://github.com/maxcountryman/flask-login',
      license='MIT',
      author='Matthew Frazier',
      author_email='leafstormrush@gmail.com',
      description='User session management for Flask',
      long_description=__doc__,
      py_modules=['flask_login'],
      zip_safe=False,
      platforms='any',
      install_requires=['Flask'],
      classifiers=[
        'Development Status :: 4 - Beta',
        'Environment :: Web Environment',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python',
        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
        'Topic :: Software Development :: Libraries :: Python Modules'
        ])