save point (see note)
Added 'db' command, tweaked pyramid scaffold a bit (added 'initialize' command there), removed migrate 'schema' repository in preparation for alembic.
This commit is contained in:
parent
69e92c13db
commit
727b9a5fa7
20 changed files with 270 additions and 144 deletions
87
setup.py
87
setup.py
|
@ -30,6 +30,7 @@ except ImportError:
|
|||
use_setuptools()
|
||||
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
|
@ -39,6 +40,50 @@ execfile(os.path.join(here, 'edbob', '_version.py'))
|
|||
readme = open(os.path.join(here, 'README.txt')).read()
|
||||
|
||||
|
||||
requires = [
|
||||
#
|
||||
# Version numbers within comments below have specific meanings.
|
||||
# Basically the 'low' value is a "soft low," and 'high' a "soft high."
|
||||
# In other words:
|
||||
#
|
||||
# If either a 'low' or 'high' value exists, the primary point to be
|
||||
# made about the value is that it represents the most current (stable)
|
||||
# version available for the package (assuming typical public access
|
||||
# methods) whenever this project was started and/or documented.
|
||||
# Therefore:
|
||||
#
|
||||
# If a 'low' version is present, you should know that attempts to use
|
||||
# versions of the package significantly older than the 'low' version
|
||||
# may not yield happy results. (A "hard" high limit may or may not be
|
||||
# indicated by a true version requirement.)
|
||||
#
|
||||
# Similarly, if a 'high' version is present, and especially if this
|
||||
# project has laid dormant for a while, you may need to refactor a bit
|
||||
# when attempting to support a more recent version of the package. (A
|
||||
# "hard" low limit should be indicated by a true version requirement
|
||||
# when a 'high' version is present.)
|
||||
#
|
||||
# In any case, developers and other users are encouraged to play
|
||||
# outside the lines with regard to these soft limits. If bugs are
|
||||
# encountered then they should be filed as such.
|
||||
#
|
||||
# package # low high
|
||||
|
||||
'progressbar', # 2.3
|
||||
'pytz', # 2012b
|
||||
]
|
||||
|
||||
if sys.version_info < (2, 7):
|
||||
# Python < 2.7 has a standard library in need of supplementation.
|
||||
|
||||
requires += [
|
||||
#
|
||||
# package # low high
|
||||
#
|
||||
'argparse', # 1.2.1
|
||||
]
|
||||
|
||||
|
||||
setup(
|
||||
name = "edbob",
|
||||
version = __version__,
|
||||
|
@ -65,54 +110,19 @@ setup(
|
|||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
],
|
||||
|
||||
install_requires = [
|
||||
#
|
||||
# Version numbers within comments below have specific meanings.
|
||||
# Basically the 'low' value is a "soft low," and 'high' a "soft high."
|
||||
# In other words:
|
||||
#
|
||||
# If either a 'low' or 'high' value exists, the primary point to be
|
||||
# made about the value is that it represents the most current (stable)
|
||||
# version available for the package (assuming typical public access
|
||||
# methods) whenever this project was started and/or documented.
|
||||
# Therefore:
|
||||
#
|
||||
# If a 'low' version is present, you should know that attempts to use
|
||||
# versions of the package significantly older than the 'low' version
|
||||
# may not yield happy results. (A "hard" high limit may or may not be
|
||||
# indicated by a true version requirement.)
|
||||
#
|
||||
# Similarly, if a 'high' version is present, and especially if this
|
||||
# project has laid dormant for a while, you may need to refactor a bit
|
||||
# when attempting to support a more recent version of the package. (A
|
||||
# "hard" low limit should be indicated by a true version requirement
|
||||
# when a 'high' version is present.)
|
||||
#
|
||||
# In any case, developers and other users are encouraged to play
|
||||
# outside the lines with regard to these soft limits. If bugs are
|
||||
# encountered then they should be filed as such.
|
||||
#
|
||||
# package # low high
|
||||
|
||||
'progressbar', # 2.3
|
||||
'pytz', # 2012b
|
||||
|
||||
# If using Python < 2.7, you must install 'argparse' yourself...
|
||||
# 'argparse', # 1.2.1
|
||||
],
|
||||
install_requires = requires,
|
||||
|
||||
extras_require = {
|
||||
#
|
||||
# Same guidelines apply to the extra dependency versions.
|
||||
|
||||
'db': [
|
||||
#
|
||||
# package # low high
|
||||
#
|
||||
'alembic', # 0.2.1
|
||||
'decorator', # 3.3.2
|
||||
'py-bcrypt', # 0.2
|
||||
'SQLAlchemy', # 0.7.6
|
||||
'sqlalchemy-migrate', # 0.7.2
|
||||
# 'sqlalchemy-migrate', # 0.7.2
|
||||
'Tempita', # 0.5.1
|
||||
],
|
||||
|
||||
|
@ -150,6 +160,7 @@ edbobw = edbob.commands:main
|
|||
edbob = edbob.pyramid.scaffolds:Template
|
||||
|
||||
[edbob.commands]
|
||||
db = edbob.commands:DatabaseCommand
|
||||
shell = edbob.commands:ShellCommand
|
||||
uuid = edbob.commands:UuidCommand
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue