Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: stdout is bytes on python3 #272

Open
wants to merge 75 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
753d53c
Custom PyPy about.html
tobami Jul 17, 2011
a80a280
Merge commit 'f5447b41ddd74e45af1a776369a8c0d474214b46' into pypy
tobami Jul 17, 2011
578ec57
Merge commit '7d966f80d3f331d80b2bce2364c0de591adf80d4' into pypy
tobami Jul 17, 2011
a7aaa64
Custom PyPy settings
tobami Jul 17, 2011
be786bd
Merge branch 'master' into pypy
tobami Jul 17, 2011
a6b36a0
Add custom PyPy homepage
tobami Jul 17, 2011
69d3f62
Add Google Analytics script
tobami Jul 17, 2011
5029db8
Add pointlabels jqplot plugin for Home page plot
tobami Jul 17, 2011
96160f3
Add PyPy favicon
tobami Jul 17, 2011
b7e214b
Add legend to first "home" plot
tobami Jul 17, 2011
5e0fecf
Merge remote branch 'origin/master' into pypy
tobami Jul 18, 2011
148f927
Merge remote branch 'origin/master' into pypy
tobami Jul 18, 2011
9f75a70
Don't choose a revision that doesn't have results for pypy-c-jit
tobami Jul 18, 2011
6016259
Improve pypy branch query, set WEBSITE_NAME and project name in template
tobami Aug 21, 2011
55030e2
Merge remote-tracking branch 'origin/master' into pypy
tobami Sep 4, 2011
eaea00d
Merge remote-tracking branch 'origin/master' into pypy
tobami Sep 4, 2011
224babe
Use the proper key for CPython data
tobami May 17, 2012
e491908
Invert plot 2
tobami Jun 8, 2012
2d9325e
Add reference to paper explaining geometric mean for normalized results
tobami Jun 8, 2012
51d4b63
exec wrapper script.
coderanger Jan 6, 2013
9da7418
unix is hard.
coderanger Jan 6, 2013
2084839
No really, I'm bad at unix.
coderanger Jan 6, 2013
b2056a7
Incrase the size of a field
Jan 7, 2013
5dfa14f
tilt xlabels on Plot 2
mattip Nov 28, 2014
301a98d
Merge pull request #1 from mattip/pypy
alex Nov 29, 2014
3875765
whoops
mattip Nov 29, 2014
85afa28
Merge pull request #2 from mattip/pypy
alex Nov 29, 2014
5a3bb8c
test, fix angling x-axis on cpythonplot2
mattip Dec 26, 2014
d5d8a0c
Merge pull request #3 from mattip/pypy
alex Dec 26, 2014
97f81b6
add a deploy-requirements.txt
ewdurbin Feb 22, 2019
36086d3
add wsgi entrypoint
ewdurbin Feb 22, 2019
4fc00dd
allow local_settings.py overrides
ewdurbin Feb 22, 2019
bcd4480
seems that this isn't handling Django > 1.4...
ewdurbin Feb 22, 2019
fa1abb4
don't use a relative import
ewdurbin Feb 22, 2019
b07808f
make it so
ewdurbin Feb 22, 2019
aae7f89
Custom PyPy about.html
tobami Jul 17, 2011
9c3ec4d
Custom PyPy settings
tobami Jul 17, 2011
34f7def
Add custom PyPy homepage
tobami Jul 17, 2011
ab6063c
Add Google Analytics script
tobami Jul 17, 2011
4adbb14
Add pointlabels jqplot plugin for Home page plot
tobami Jul 17, 2011
de207b9
Add PyPy favicon
tobami Jul 17, 2011
e2b197f
Add legend to first "home" plot
tobami Jul 17, 2011
209dab0
Don't choose a revision that doesn't have results for pypy-c-jit
tobami Jul 18, 2011
b5b96d1
Improve pypy branch query, set WEBSITE_NAME and project name in template
tobami Aug 21, 2011
3e9c67f
Use the proper key for CPython data
tobami May 17, 2012
23d5aaf
Invert plot 2
tobami Jun 8, 2012
c15ab3b
Add reference to paper explaining geometric mean for normalized results
tobami Jun 8, 2012
cdb2941
exec wrapper script.
coderanger Jan 6, 2013
10bec19
unix is hard.
coderanger Jan 6, 2013
29dec69
No really, I'm bad at unix.
coderanger Jan 6, 2013
92fd0b1
Incrase the size of a field
Jan 7, 2013
65a938d
tilt xlabels on Plot 2
mattip Nov 28, 2014
3de9041
whoops
mattip Nov 29, 2014
92d277d
test, fix angling x-axis on cpythonplot2
mattip Dec 26, 2014
bfccbec
add a deploy-requirements.txt
ewdurbin Feb 22, 2019
5f4eeed
add wsgi entrypoint
ewdurbin Feb 22, 2019
f15a605
allow local_settings.py overrides
ewdurbin Feb 22, 2019
f7cbe31
seems that this isn't handling Django > 1.4...
ewdurbin Feb 22, 2019
a586c60
don't use a relative import
ewdurbin Feb 22, 2019
1e08ed1
make it so
ewdurbin Feb 22, 2019
e411982
merge default into branch
mattip Apr 1, 2019
984b0d8
fix merge and update
mattip Apr 2, 2019
ba2fd71
ENH: handle environment for historical data
mattip Apr 3, 2019
a5beed6
merge speed.pypy.org from python/codespeed
mattip Apr 4, 2019
039f99e
remove file from old data model
mattip Apr 4, 2019
f3b5c84
fix merge
mattip Apr 4, 2019
4751450
move from sample_project to speed_pypy
mattip Apr 8, 2019
ffa154f
Merge pull request #1 from mattip/speed.pypy.org
ewdurbin Apr 8, 2019
e065bbd
Update wsgi.py
ewdurbin Apr 8, 2019
09aa41c
update manage.py settings
ewdurbin Apr 8, 2019
a709f47
make this directory so collectstatic doesn't complain
ewdurbin Apr 8, 2019
2f3ee82
BUG: stdout is bytes, convert to str
mattip Apr 19, 2019
47c2062
Merge pull request #2 from mattip/fix-hg
mattip May 7, 2019
5e1bdae
BUG: stdout is bytes on python3
mattip Apr 18, 2019
a4919d4
Merge branch 'speed.pypy.org' into mercurial
mattip May 7, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Custom PyPy settings
tobami authored and mattip committed Mar 7, 2019

Verified

This commit was signed with the committer’s verified signature. The key has expired.
samford Sam Ford
commit 9c3ec4d784da4ec8ffa7e034ad23d6e9585f4103
174 changes: 174 additions & 0 deletions example/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
# -*- coding: utf-8 -*-
# Django settings for a speedcenter project.
import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG

BASEDIR = os.path.dirname(__file__)

#: The directory which should contain checked out source repositories:
REPOSITORY_BASE_PATH = os.path.join(BASEDIR, "repos")

ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)

MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASEDIR, 'data.db'),
}
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = False

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(BASEDIR, "media")

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/static/admin/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'as%n_m#)^vee2pe91^^@c))sl7^c6t-9r8n)_69%)2yt+(la2&'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)

if DEBUG:
import traceback
import logging

# Define a class that logs unhandled errors
class LogUncatchedErrors:
def process_exception(self, request, exception):
logging.error("Unhandled Exception on request for %s\n%s" %
(request.build_absolute_uri(),
traceback.format_exc()))
# And add it to the middleware classes
MIDDLEWARE_CLASSES += ('settings.LogUncatchedErrors',)

# set shown level of logging output to debug
logging.basicConfig(level=logging.DEBUG)


ROOT_URLCONF = 'example.urls'

TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'templates'),
)

TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.core.context_processors.request',
)

INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
#'django.contrib.sites',
'django.contrib.admin',
'django.contrib.staticfiles',
'codespeed',
'south'
)

STATIC_URL = '/static/'

STATIC_ROOT = os.path.join(BASEDIR, "sitestatic")

# Codespeed settings that can be overwritten here.
## General default options ##
#WEBSITE_NAME = "MySpeedSite" # This name will be used in the reports RSS feed

#DEF_ENVIRONMENT = None #Name of the environment which should be selected as default


DEF_BASELINE = {'executable': 'cpython', 'revision': '100'} # Which executable + revision should be default as a baseline
# Given as the name of the executable and commitid of the revision
# Example: defaultbaseline = {'executable': 'myexe', 'revision': '21'}

#TREND = 10 # Default value for the depth of the trend
# Used by reports for the latest runs and changes view

# Threshold that determines when a performance change over the last result is significant
CHANGE_THRESHOLD = 5.0

# Threshold that determines when a performance change
# over a number of revisions is significant
TREND_THRESHOLD = 6.0

## Changes view options ##
#DEF_EXECUTABLE = None # Executable that should be chosen as default in the changes view
# Given as the name of the executable.
# Example: defaultexecutable = "myexe"

## Timeline view options ##
#DEF_BENCHMARK = "grid" # Default selected benchmark. Possible values:
# "grid": will show the grid of plots
# "show_none": will just show a text message
# "mybench": will select benchmark "mybench"

#TIMELINE_BRANCHES = True # NOTE: Only the default branch is currently shown
# Get timeline results for specific branches
# Set to False if you want timeline plots and results only for trunk.

## Comparison view options ##
#CHART_TYPE = 'normal bars' # The options are 'normal bars', 'stacked bars' and 'relative bars'

NORMALIZATION = True # True will enable normalization as the default selection
# in the Comparison view. The default normalization can be
# chosen in the defaultbaseline setting

#CHART_ORIENTATION = 'vertical' # 'vertical' or 'horizontal can be chosen as
# default chart orientation

COMP_EXECUTABLES = [('pypy-c-jit', 'L'), ('pypy-c', 'L')] # Which executable + revision should be checked as default
# Given as a list of tuples containing the
# name of an executable + commitid of a revision
# An 'L' denotes the last revision
# Example:
# COMP_EXECUTABLES = [
# ('myexe', '21df2423ra'),
# ('myexe', 'L'),]