cheesecake-service / config.py

# Path to the cheesecake_index script.
CHEESECAKE_INDEX_PATH = '/usr/bin/cheesecake_index'

# Path of a directory where logs are stored.
LOG_DIRECTORY = '/tmp/cheesecake_logs/'

# Path of a file which last access time will correspond
#   to last PyPI connection time.
TIMESTAMP_FILE ='/tmp/cheesecake_service_timestamp'

# Path to a socket which will be used to pass commands
#   to the daemon.
COMMUNICATION_SOCKET_PATH = '/tmp/cheesecake_socket'

# Maximum number of times we will try to score a single
#   package before giving up.
MAX_NUMBER_OF_FAILURES = 3

# Maximum time (in seconds) we allow cheesecake_index script to run
#   before we interrupt it and flag this run as a failure.
MAX_CHEESECAKE_INDEX_TIMEOUT = 5*60

# Time difference (in seconds) between our host and PyPI.
TIME_CORRECTION = 10*60

# URL of PyPI host.
PYPI_ADDRESS = 'http://cheeseshop.python.org/pypi'

# Password for PyPI post_cheesecake_for_release RPC call.
PYPI_PASSWORD = ''

# Local PostgreSQL database settings.
DB_NAME = 'cheesecake'
DB_USER = 'cheesecake'
DB_PASSWORD = 'cheesecake'

# Absolute path of "static" directory.
STATIC_FILES_DIRECTORY = 'static'

# Absolute path of "templates" directory.
TEMPLATES_DIRECTORY = 'templates'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.