Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
Add Simplified BSD License.
Browse files Browse the repository at this point in the history
  • Loading branch information
bboe committed Oct 30, 2012
1 parent b97abed commit b394036
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 12 deletions.
22 changes: 22 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,22 @@
Copyright (c) 2012, Bryce Boe
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion MANIFEST.in
@@ -1 +1 @@
include README.md
include *.md *.txt
21 changes: 12 additions & 9 deletions setup.py
Expand Up @@ -3,23 +3,26 @@
import re
from setuptools import setup

readme = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
version = re.search("__version__ = '([^']+)'",
open('sqla_mixins.py').read()).group(1)
MODULE_NAME = 'sqla_mixins'

setup(name='sqla_mixins',
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
VERSION = re.search("__version__ = '([^']+)'",
open('{0}.py'.format(MODULE_NAME)).read()).group(1)

setup(name=MODULE_NAME,
author='Bryce Boe',
author_email='bbzbryce@gmail.com',
classifiers=['Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Database :: Front-Ends'],
description=('A python module that contains a number of simple '
'declarative sqlalchemy mixins.'),
install_requires=['passlib', 'sqlalchemy'],
long_description=readme,
py_modules=['sqla_mixins'],
url='http://cs.ucsb.edu/~bboe',
version=version
)
license='Simplified BSD License',
long_description=README,
py_modules=[MODULE_NAME],
url='https://github.com/bboe/sqla_mixins',
version=VERSION)
3 changes: 1 addition & 2 deletions sqla_mixins.py
@@ -1,8 +1,7 @@
import sys
from passlib.hash import pbkdf2_sha512
from sqlalchemy import func
from sqlalchemy import Column, DateTime, String, Integer, Unicode, func
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy import Column, DateTime, String, Integer, Unicode

if sys.version_info < (3, 0):
builtins = __import__('__builtin__')
Expand Down

0 comments on commit b394036

Please sign in to comment.