2014-06-05 21:12:24 -05:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-04-10 12:09:29 -05:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Rattail -- Retail Software Framework
|
2015-01-14 15:36:45 -06:00
|
|
|
# Copyright © 2010-2015 Lance Edgar
|
2012-04-10 12:09:29 -05:00
|
|
|
#
|
|
|
|
# This file is part of Rattail.
|
|
|
|
#
|
|
|
|
# Rattail is free software: you can redistribute it and/or modify it under the
|
|
|
|
# terms of the GNU Affero General Public License as published by the Free
|
|
|
|
# Software Foundation, either version 3 of the License, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
|
|
|
# more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with Rattail. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-18 23:29:26 -06:00
|
|
|
from __future__ import unicode_literals
|
2012-04-10 12:09:29 -05:00
|
|
|
|
2013-08-15 00:17:41 -05:00
|
|
|
import sys
|
2012-04-10 12:09:29 -05:00
|
|
|
import os.path
|
2014-04-21 11:16:49 -05:00
|
|
|
from setuptools import setup, find_packages
|
2012-04-10 12:09:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
execfile(os.path.join(here, 'rattail', '_version.py'))
|
2014-02-16 02:16:45 -06:00
|
|
|
README = open(os.path.join(here, 'README.rst')).read()
|
2012-04-10 12:09:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-09-01 17:09:38 -05:00
|
|
|
# 'decorator', # 3.3.2
|
|
|
|
'lockfile', # 0.9.1
|
|
|
|
'progressbar', # 2.3
|
|
|
|
|
2014-09-24 01:17:16 -05:00
|
|
|
# TODO: Remove this / make it optional / etc.
|
|
|
|
'Mako', # 1.0.0
|
|
|
|
|
2013-09-01 17:09:38 -05:00
|
|
|
# Hardcode ``pytz`` minimum since apparently it isn't (any longer?) enough
|
|
|
|
# to simply require the library.
|
|
|
|
'pytz>=2013b', # 2013b
|
|
|
|
|
2014-12-03 11:00:06 -06:00
|
|
|
# It might be nice to *not* require these in all cases, but for now it's
|
|
|
|
# just easier to do so.
|
|
|
|
'alembic', # 0.6.0
|
2014-02-12 08:13:55 -06:00
|
|
|
'SQLAlchemy', # 0.7.6
|
|
|
|
|
2013-09-01 17:09:38 -05:00
|
|
|
# This will someday be removed...
|
|
|
|
'edbob>=0.1a29', # 0.1a29
|
2012-04-10 12:09:29 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2015-01-14 15:36:45 -06:00
|
|
|
if sys.platform != 'win32':
|
2013-08-15 00:17:41 -05:00
|
|
|
requires += [
|
|
|
|
#
|
|
|
|
# package # low high
|
|
|
|
|
2014-12-03 11:02:33 -06:00
|
|
|
'pyinotify', # 0.9.3
|
2013-08-15 00:17:41 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
|
2013-10-04 13:36:24 -05:00
|
|
|
# Python < 2.7 has a standard library in need of supplementation.
|
|
|
|
if sys.version_info < (2, 7):
|
|
|
|
requires += [
|
|
|
|
#
|
|
|
|
# package # low high
|
|
|
|
|
|
|
|
'argparse', # 1.2.1
|
|
|
|
'ordereddict', # 1.1
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2013-09-01 17:09:38 -05:00
|
|
|
extras = {
|
|
|
|
|
|
|
|
'docs': [
|
|
|
|
#
|
|
|
|
# package # low high
|
|
|
|
|
|
|
|
'Sphinx', # 1.1.3
|
|
|
|
],
|
2014-01-26 22:05:19 -06:00
|
|
|
|
|
|
|
'tests': [
|
|
|
|
#
|
|
|
|
# package # low high
|
|
|
|
|
|
|
|
'coverage', # 3.6
|
2014-06-05 21:12:24 -05:00
|
|
|
u'fixture', # 1.5
|
2014-01-26 22:05:19 -06:00
|
|
|
'mock', # 1.0.1
|
|
|
|
'nose', # 1.3.0
|
|
|
|
],
|
2013-09-01 17:09:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-01-14 15:36:45 -06:00
|
|
|
if sys.platform == 'win32':
|
|
|
|
extras['auth'] = [
|
|
|
|
#
|
|
|
|
# package # low high
|
|
|
|
|
|
|
|
'py-bcrypt-w32', # 0.2.2
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
extras['auth'] = [
|
|
|
|
#
|
|
|
|
# package # low high
|
|
|
|
|
|
|
|
'py-bcrypt', # 0.2
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2012-04-10 12:09:29 -05:00
|
|
|
setup(
|
|
|
|
name = "rattail",
|
|
|
|
version = __version__,
|
|
|
|
author = "Lance Edgar",
|
|
|
|
author_email = "lance@edbob.org",
|
2014-04-08 00:16:13 -05:00
|
|
|
url = "http://rattailproject.org/",
|
2012-04-10 12:09:29 -05:00
|
|
|
license = "GNU Affero GPL v3",
|
|
|
|
description = "Retail Software Framework",
|
2014-02-15 13:51:09 -06:00
|
|
|
long_description = README,
|
2012-04-10 12:09:29 -05:00
|
|
|
|
|
|
|
classifiers = [
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'Environment :: Console',
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Environment :: Win32 (MS Windows)',
|
|
|
|
'Environment :: X11 Applications',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: GNU Affero General Public License v3',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python',
|
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Topic :: Office/Business',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
|
|
],
|
|
|
|
|
|
|
|
install_requires = requires,
|
2013-09-01 17:09:38 -05:00
|
|
|
extras_require = extras,
|
2014-06-05 21:12:24 -05:00
|
|
|
tests_require = [u'rattail[db,tests]'],
|
2013-06-19 10:03:42 -05:00
|
|
|
test_suite = 'nose.collector',
|
2012-04-10 12:09:29 -05:00
|
|
|
|
2014-04-21 11:26:12 -05:00
|
|
|
packages = find_packages(exclude=['tests.*', 'tests']),
|
2012-04-10 12:09:29 -05:00
|
|
|
include_package_data = True,
|
|
|
|
zip_safe = False,
|
|
|
|
|
|
|
|
entry_points = """
|
|
|
|
|
|
|
|
[console_scripts]
|
|
|
|
rattail = rattail.commands:main
|
|
|
|
|
|
|
|
[gui_scripts]
|
|
|
|
rattailw = rattail.commands:main
|
|
|
|
|
2012-07-25 15:11:22 -05:00
|
|
|
[rattail.commands]
|
2013-09-03 09:43:27 -05:00
|
|
|
adduser = rattail.commands:AddUser
|
2012-09-18 16:25:53 -05:00
|
|
|
dbsync = rattail.commands:DatabaseSyncCommand
|
2013-08-21 18:59:27 -05:00
|
|
|
dump = rattail.commands:Dump
|
2012-07-25 15:11:22 -05:00
|
|
|
filemon = rattail.commands:FileMonitorCommand
|
2015-02-02 19:12:12 -06:00
|
|
|
import-csv = rattail.commands:ImportCSV
|
2013-09-03 01:01:14 -05:00
|
|
|
initdb = rattail.commands:InitializeDatabase
|
2012-09-17 13:54:31 -05:00
|
|
|
load-host-data = rattail.commands:LoadHostDataCommand
|
2013-04-22 09:41:15 -05:00
|
|
|
make-config = rattail.commands:MakeConfigCommand
|
2013-06-05 09:50:01 -05:00
|
|
|
make-user = rattail.commands:MakeUserCommand
|
2013-02-22 19:51:51 -06:00
|
|
|
palm = rattail.commands:PalmCommand
|
2013-02-17 21:08:38 -06:00
|
|
|
purge-batches = rattail.commands:PurgeBatchesCommand
|
2012-07-25 15:11:22 -05:00
|
|
|
|
2012-08-29 13:28:07 -05:00
|
|
|
[rattail.batches.providers]
|
|
|
|
print_labels = rattail.batches.providers.labels:PrintLabels
|
|
|
|
|
2012-08-29 18:26:46 -05:00
|
|
|
[rattail.sil.column_providers]
|
|
|
|
rattail = rattail.sil.columns:provide_columns
|
|
|
|
|
2015-01-19 00:15:38 -06:00
|
|
|
[rattail.vendors.catalogs.parsers]
|
|
|
|
rattail.contrib.lotuslight = rattail.contrib.vendors.catalogs.lotuslight:LotusLightCatalogParser
|
|
|
|
|
2012-04-10 12:09:29 -05:00
|
|
|
""",
|
|
|
|
)
|