File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11include requirements.txt AUTHORS.rst LICENSE.rst
2- recursive-include docs *
2+ graft docs
33prune docs/_build
44recursive-include sopy/migrations *.py
55graft sopy/static
Original file line number Diff line number Diff line change 1+ from datetime import datetime
12from sopy import __version__
23
34# -- General configuration ------------------------------------------------
1920
2021# General information about the project.
2122project = 'sopython-site'
22- copyright = '2014, sopython organization'
23+ copyright = '2014 - {} , sopython organization' . format ( datetime . utcnow (). year )
2324
2425# The version info for the project you're documenting, acts as replacement for
2526# |version| and |release|, also used in various other places throughout the
2627# built documents.
2728#
2829# The short X.Y version.
29- version = __version__
30+ version = '.' . join ( __version__ . split ( '.' )[: 2 ])
3031# The full version, including alpha/beta/rc tags.
3132release = version
3233
Original file line number Diff line number Diff line change 11alembic == 0.7.7
22beautifulsoup4 == 4.4.1
3- Flask == 0.11.dev0
3+ Flask == 0.11
44Flask-Alembic == 1.2.1
5- Flask-Babel == 0.9
5+ Flask-Babel == 0.11.0
66Flask-Mail == 0.9.1
77Flask-SQLAlchemy == 2.1
88Flask-WTF == 0.12
@@ -13,6 +13,6 @@ lxml==3.6.0
1313psycopg2 == 2.6.1
1414Pygments == 2.1.3
1515requests == 2.10.0
16- SQLAlchemy == 1.0.12
17- Werkzeug == 0.11.9
16+ SQLAlchemy == 1.0.13
17+ Werkzeug == 0.11.10
1818WTForms == 2.1
Original file line number Diff line number Diff line change 11[egg_info]
2- tag_build = .dev0
2+ tag_build = .dev
3+ tag_date = 1
34
45[aliases]
56release = egg_info -RDb ' '
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
2- import os
3- import re
42from setuptools import setup , find_packages
53
6- with open (os .path .join (os .path .dirname (__file__ ), 'sopy' , '__init__.py' )) as f :
7- version = re .search (r"__version__ = '(.*)'" , f .read ()).group (1 )
8-
94with open ('requirements.txt' ) as f :
105 requirements = f .read ().splitlines ()
116
127setup (
138 name = 'sopy' ,
14- version = version ,
9+ version = '1.6' ,
1510 packages = find_packages (),
1611 include_package_data = True ,
1712 url = 'http://sopython.com/' ,
Original file line number Diff line number Diff line change 11import logging
22
33import sys
4+
5+ import pkg_resources
46from flask import Flask
57from flask import render_template
68from flask_alembic import Alembic
79from flask_alembic .cli .click import cli as alembic_cli
810from flask_babel import Babel
911from sopy .ext .sqlalchemy import SQLAlchemy
1012
11- __version__ = '1.5.2'
13+ __version__ = pkg_resources . get_distribution ( 'sopy' ). version
1214
1315alembic = Alembic ()
1416babel = Babel ()
1517db = SQLAlchemy ()
1618
1719
18- def create_app (info = None ):
20+ def create_app ():
1921 app = Flask (__name__ , instance_relative_config = True )
20- app .config .from_object ('sopy.config.defaults ' )
22+ app .config .from_object ('sopy.config' )
2123 app .config .from_pyfile ('config.py' , True )
2224
2325 app .cli .add_command (alembic_cli , 'db' )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments