2015-02-23 04:29:18 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
"""Django/PostgreSQL implementation of the Meteor DDP service."""
|
2015-10-26 03:39:23 +00:00
|
|
|
import platform
|
2015-10-30 03:21:49 +00:00
|
|
|
import sys
|
2015-02-23 04:29:18 +00:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
2015-09-07 23:10:25 +00:00
|
|
|
CLASSIFIERS = [
|
|
|
|
|
# Beta status until 1.0 is released
|
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
|
|
|
|
|
|
# Who and what the project is for
|
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"Topic :: Database",
|
|
|
|
|
"Topic :: Internet",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: Browsers",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: Session",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: WSGI",
|
|
|
|
|
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
|
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
|
"Topic :: Software Development :: Object Brokering",
|
|
|
|
|
"Topic :: System :: Distributed Computing",
|
|
|
|
|
|
|
|
|
|
# License classifiers
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"License :: DFSG approved",
|
|
|
|
|
"License :: OSI Approved",
|
|
|
|
|
|
|
|
|
|
# Generally, we support the following.
|
|
|
|
|
"Programming Language :: Python",
|
|
|
|
|
"Programming Language :: Python :: 2",
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"Framework :: Django",
|
|
|
|
|
|
|
|
|
|
# Specifically, we support the following releases.
|
|
|
|
|
"Programming Language :: Python :: 2.7",
|
|
|
|
|
"Programming Language :: Python :: 3.2",
|
|
|
|
|
"Programming Language :: Python :: 3.3",
|
|
|
|
|
"Programming Language :: Python :: 3.4",
|
|
|
|
|
"Framework :: Django :: 1.7",
|
|
|
|
|
"Framework :: Django :: 1.8",
|
|
|
|
|
]
|
|
|
|
|
|
2015-10-26 03:39:23 +00:00
|
|
|
# Ensure correct dependencies between different python implementations.
|
|
|
|
|
IMPLEMENTATION_INSTALL_REQUIRES = {
|
|
|
|
|
# extra requirements for CPython implementation
|
|
|
|
|
'CPython': [
|
|
|
|
|
'psycopg2>=2.5.4',
|
2015-10-30 03:21:49 +00:00
|
|
|
'gevent>=1.1b6' if sys.version_info >= (3, 0) else 'gevent>=1.0',
|
2015-10-26 03:39:23 +00:00
|
|
|
],
|
|
|
|
|
# extra requirements for all other Python implementations
|
|
|
|
|
None: [
|
|
|
|
|
'psycopg2cffi>=2.7.2',
|
2015-10-30 03:21:49 +00:00
|
|
|
'gevent>=1.1b6',
|
2015-10-26 03:39:23 +00:00
|
|
|
],
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-23 04:29:18 +00:00
|
|
|
setup(
|
|
|
|
|
name='django-ddp',
|
2015-10-28 23:06:17 +00:00
|
|
|
version='0.17.2',
|
2015-02-23 04:29:18 +00:00
|
|
|
description=__doc__,
|
|
|
|
|
long_description=open('README.rst').read(),
|
|
|
|
|
author='Tyson Clugg',
|
|
|
|
|
author_email='tyson@clugg.net',
|
2015-03-11 02:36:48 +00:00
|
|
|
url='https://github.com/commoncode/django-ddp',
|
2015-09-07 23:10:25 +00:00
|
|
|
license='MIT',
|
2015-02-23 04:29:18 +00:00
|
|
|
packages=find_packages(),
|
|
|
|
|
include_package_data=True,
|
|
|
|
|
install_requires=[
|
2015-06-12 13:08:27 +00:00
|
|
|
'Django>=1.7',
|
|
|
|
|
'gevent-websocket>=0.9,!=0.9.4',
|
2015-03-11 03:15:20 +00:00
|
|
|
'meteor-ejson>=1.0',
|
|
|
|
|
'psycogreen>=1.0',
|
2015-04-08 06:14:22 +00:00
|
|
|
'django-dbarray>=0.2',
|
2015-06-10 07:49:04 +00:00
|
|
|
'pybars3>=0.9.1',
|
2015-10-28 23:02:31 +00:00
|
|
|
'six>=1.10.0',
|
2015-10-26 03:39:23 +00:00
|
|
|
] + IMPLEMENTATION_INSTALL_REQUIRES.get(
|
|
|
|
|
platform.python_implementation(),
|
|
|
|
|
IMPLEMENTATION_INSTALL_REQUIRES[None], # default to non-CPython reqs
|
|
|
|
|
),
|
2015-04-15 01:00:15 +00:00
|
|
|
entry_points={
|
|
|
|
|
'console_scripts': [
|
|
|
|
|
'dddp=dddp.main:main',
|
|
|
|
|
],
|
|
|
|
|
},
|
2015-09-07 23:10:25 +00:00
|
|
|
classifiers=CLASSIFIERS,
|
2015-02-23 04:29:18 +00:00
|
|
|
)
|