2011-01-24 23:13:44 +00:00
|
|
|
import os
|
2011-01-21 01:01:40 +00:00
|
|
|
|
2014-06-01 20:46:48 +00:00
|
|
|
try:
|
|
|
|
|
from setuptools import setup, Command
|
|
|
|
|
except ImportError:
|
|
|
|
|
from distutils.core import setup, Command
|
|
|
|
|
|
2011-02-14 07:40:27 +00:00
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'analytical.tests.settings'
|
|
|
|
|
|
2011-01-21 01:01:40 +00:00
|
|
|
cmdclass = {}
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
from sphinx.setup_command import BuildDoc
|
|
|
|
|
cmdclass['build_sphinx'] = BuildDoc
|
|
|
|
|
except ImportError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
from sphinx_pypi_upload import UploadDoc
|
|
|
|
|
cmdclass['upload_sphinx'] = UploadDoc
|
|
|
|
|
except ImportError:
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TestCommand(Command):
|
2011-01-30 01:50:49 +00:00
|
|
|
description = "run package tests"
|
2011-01-21 01:01:40 +00:00
|
|
|
user_options = []
|
|
|
|
|
|
|
|
|
|
def initialize_options(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def finalize_options(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
|
from analytical.tests.utils import run_tests
|
|
|
|
|
run_tests()
|
|
|
|
|
|
|
|
|
|
cmdclass['test'] = TestCommand
|
|
|
|
|
|
|
|
|
|
|
2011-01-24 23:13:44 +00:00
|
|
|
def read(fname):
|
|
|
|
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
|
|
|
|
|
2011-01-21 01:01:40 +00:00
|
|
|
import analytical
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
name = 'django-analytical',
|
|
|
|
|
version = analytical.__version__,
|
|
|
|
|
license = analytical.__license__,
|
2011-01-31 07:57:26 +00:00
|
|
|
description = 'Analytics service integration for Django projects',
|
2011-01-24 23:13:44 +00:00
|
|
|
long_description = read('README.rst'),
|
2011-01-21 01:01:40 +00:00
|
|
|
author = analytical.__author__,
|
|
|
|
|
author_email = analytical.__email__,
|
|
|
|
|
packages = [
|
|
|
|
|
'analytical',
|
|
|
|
|
'analytical.templatetags',
|
|
|
|
|
'analytical.tests',
|
2011-01-31 07:57:26 +00:00
|
|
|
'analytical.tests.templatetags',
|
2011-01-21 01:01:40 +00:00
|
|
|
],
|
2011-01-25 23:07:46 +00:00
|
|
|
keywords = ['django', 'analytics'],
|
2011-01-21 01:01:40 +00:00
|
|
|
classifiers = [
|
2011-01-25 23:07:46 +00:00
|
|
|
'Development Status :: 4 - Beta',
|
2011-01-21 01:01:40 +00:00
|
|
|
'Environment :: Web Environment',
|
|
|
|
|
'Framework :: Django',
|
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
|
'Programming Language :: Python',
|
|
|
|
|
'Topic :: Internet :: WWW/HTTP',
|
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
2014-09-05 16:49:11 +00:00
|
|
|
'Programming Language :: Python :: 2.6',
|
|
|
|
|
'Programming Language :: Python :: 2.7',
|
2011-01-21 01:01:40 +00:00
|
|
|
],
|
|
|
|
|
platforms = ['any'],
|
2011-01-31 08:14:01 +00:00
|
|
|
url = 'http://github.com/jcassee/django-analytical',
|
2011-02-24 16:36:25 +00:00
|
|
|
download_url = 'http://github.com/jcassee/django-analytical/archives/master',
|
2011-01-21 01:01:40 +00:00
|
|
|
cmdclass = cmdclass,
|
2014-06-01 20:46:48 +00:00
|
|
|
install_requires = [
|
|
|
|
|
'Django>=1.4',
|
|
|
|
|
],
|
2011-01-21 01:01:40 +00:00
|
|
|
)
|