mirror of
https://github.com/scratchfoundation/gargoyle.git
synced 2025-06-14 11:30:20 -04:00
Added generic package files
This commit is contained in:
parent
a51cd00e39
commit
120ce62bca
4 changed files with 105 additions and 0 deletions
12
LICENSE
Normal file
12
LICENSE
Normal file
|
@ -0,0 +1,12 @@
|
|||
Copyright (c) 2010 Disqus and individual contributors.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the django-sentry nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
4
MANIFEST.in
Normal file
4
MANIFEST.in
Normal file
|
@ -0,0 +1,4 @@
|
|||
include setup.py README MANIFEST.in LICENSE
|
||||
recursive-include gargoyle/templates *
|
||||
recursive-include gargoyle/media *
|
||||
global-exclude *~
|
49
runtests.py
Normal file
49
runtests.py
Normal file
|
@ -0,0 +1,49 @@
|
|||
#!/usr/bin/env python
|
||||
import logging
|
||||
import sys
|
||||
from os.path import dirname, abspath
|
||||
|
||||
logging.getLogger('gargoyle').addHandler(logging.StreamHandler())
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
if not settings.configured:
|
||||
settings.configure(
|
||||
DATABASE_ENGINE='sqlite3',
|
||||
# HACK: this fixes our threaded runserver remote tests
|
||||
# DATABASE_NAME='test_sentry',
|
||||
# TEST_DATABASE_NAME='test_sentry',
|
||||
INSTALLED_APPS=[
|
||||
'django.contrib.auth',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.sites',
|
||||
|
||||
# Included to fix Disqus' test Django which solves IntegrityMessage case
|
||||
'django.contrib.contenttypes',
|
||||
],
|
||||
ROOT_URLCONF='',
|
||||
DEBUG=False,
|
||||
SITE_ID=1,
|
||||
BROKER_HOST="localhost",
|
||||
BROKER_PORT=5672,
|
||||
BROKER_USER="guest",
|
||||
BROKER_PASSWORD="guest",
|
||||
BROKER_VHOST="/",
|
||||
CELERY_ALWAYS_EAGER=True,
|
||||
SENTRY_THRASHING_LIMIT=0,
|
||||
TEMPLATE_DEBUG=True,
|
||||
)
|
||||
|
||||
from django.test.simple import run_tests
|
||||
|
||||
def runtests(*test_args):
|
||||
if not test_args:
|
||||
test_args = ['gargoyle']
|
||||
parent = dirname(abspath(__file__))
|
||||
sys.path.insert(0, parent)
|
||||
failures = run_tests(test_args, verbosity=1, interactive=True)
|
||||
sys.exit(failures)
|
||||
|
||||
if __name__ == '__main__':
|
||||
runtests(*sys.argv[1:])
|
40
setup.py
Normal file
40
setup.py
Normal file
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
try:
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools.command.test import test
|
||||
except ImportError:
|
||||
from ez_setup import use_setuptools
|
||||
use_setuptools()
|
||||
from setuptools import setup, find_packages
|
||||
from setuptools.command.test import test
|
||||
|
||||
|
||||
class mytest(test):
|
||||
def run(self, *args, **kwargs):
|
||||
from runtests import runtests
|
||||
runtests()
|
||||
# Upgrade().run(dist=True)
|
||||
# test.run(self, *args, **kwargs)
|
||||
|
||||
setup(
|
||||
name='gargoyle',
|
||||
version='0.1.0',
|
||||
author='Disqus',
|
||||
author_email='team@disqus.com',
|
||||
url='http://github.com/disqus/gargoyle',
|
||||
description = 'Switches',
|
||||
packages=find_packages(),
|
||||
zip_safe=False,
|
||||
install_requires=[],
|
||||
test_suite = 'gargoyle.tests',
|
||||
include_package_data=True,
|
||||
cmdclass={"test": mytest},
|
||||
classifiers=[
|
||||
'Framework :: Django',
|
||||
'Intended Audience :: Developers',
|
||||
'Intended Audience :: System Administrators',
|
||||
'Operating System :: OS Independent',
|
||||
'Topic :: Software Development'
|
||||
],
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue