Add smart version checking, bump version
This commit is contained in:
@@ -4,6 +4,13 @@ Changelog
|
|||||||
Here you can see the full list of changes between each SQLAlchemy-Utils release.
|
Here you can see the full list of changes between each SQLAlchemy-Utils release.
|
||||||
|
|
||||||
|
|
||||||
|
0.26.16 (2014-09-09)
|
||||||
|
^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
- Fix aggregate value handling for cascade deleted objects
|
||||||
|
- Fix ambiguous column sorting with join table inheritance in sort_query
|
||||||
|
|
||||||
|
|
||||||
0.26.15 (2014-08-28)
|
0.26.15 (2014-08-28)
|
||||||
^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
16
setup.py
16
setup.py
@@ -5,9 +5,23 @@ SQLAlchemy-Utils
|
|||||||
Various utility functions and custom data types for SQLAlchemy.
|
Various utility functions and custom data types for SQLAlchemy.
|
||||||
"""
|
"""
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
import os
|
||||||
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
PY3 = sys.version_info[0] == 3
|
||||||
|
|
||||||
|
|
||||||
|
def get_version():
|
||||||
|
filename = os.path.join(HERE, 'sqlalchemy_utils', '__init__.py')
|
||||||
|
with open(filename) as f:
|
||||||
|
contents = f.read()
|
||||||
|
pattern = r"^__version__ = '(.*?)'$"
|
||||||
|
return re.search(pattern, contents, re.MULTILINE).group(1)
|
||||||
|
|
||||||
|
|
||||||
PY3 = sys.version_info[0] == 3
|
PY3 = sys.version_info[0] == 3
|
||||||
|
|
||||||
|
|
||||||
@@ -44,7 +58,7 @@ for name, requirements in extras_require.items():
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='SQLAlchemy-Utils',
|
name='SQLAlchemy-Utils',
|
||||||
version='0.26.15',
|
version=get_version(),
|
||||||
url='https://github.com/kvesteri/sqlalchemy-utils',
|
url='https://github.com/kvesteri/sqlalchemy-utils',
|
||||||
license='BSD',
|
license='BSD',
|
||||||
author='Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen',
|
author='Konsta Vesterinen, Ryan Leckey, Janne Vanhala, Vesa Uimonen',
|
||||||
|
@@ -75,7 +75,7 @@ from .types import (
|
|||||||
from .models import Timestamp
|
from .models import Timestamp
|
||||||
|
|
||||||
|
|
||||||
__version__ = '0.26.15'
|
__version__ = '0.26.16'
|
||||||
|
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
|
Reference in New Issue
Block a user