This repository has been archived by the owner on May 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
51 lines (47 loc) · 1.8 KB
/
setup.py
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
# -*- coding: utf-8 -*-
"""
Flask-SQLAlchemy-Session
-----------------------
Provides an SQLAlchemy scoped session that creates
unique sessions per Flask request
"""
import sys
import os
from setuptools import setup
if sys.version_info < (2, 6):
raise Exception("Flask-SQLAlchemy-Session requires Python 2.6 or higher.")
# Hard linking doesn't work inside VirtualBox shared folders. This means that
# you can't use tox in a directory that is being shared with Vagrant,
# since tox relies on `python setup.py sdist` which uses hard links. As a
# workaround, disable hard-linking if setup.py is a descendant of /vagrant.
# See
# https://stackoverflow.com/questions/7719380/python-setup-py-sdist-error-operation-not-permitted
# for more details.
if os.path.abspath(__file__).split(os.path.sep)[1] == 'vagrant':
del os.link
setup(
name="Flask-SQLAlchemy-Session",
version="1.1",
packages=["flask_sqlalchemy_session"],
author="Dimitris Theodorou",
author_email="[email protected]",
url='http://github.com/dtheodor/flask-sqlalchemy-session',
license="MIT",
description='SQL Alchemy session scoped on Flask requests.',
long_description=__doc__,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
install_requires=["sqlalchemy>=0.9", "Flask>=0.9", "Werkzeug>=0.6.1"],
tests_require=["pytest>=2.6", "mock>=1.0"],
extras_require={
'docs': ["Sphinx>=1.2.3", "alabaster>=0.6.3"]
}
)