Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

102 lines (89 sloc) 4.857 kb
# This file is part of OpenHatch.
# Copyright (C) 2010 Parker Phinney
# Copyright (C) 2010 Jeff Welling
# Copyright (C) 2009, 2010, 2011 OpenHatch
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <>.
# This file:
# 1. Provides metadata about the openhatch codebase. This metadata creates a Python "package". This is done by the call to the setup() function -- for example, the "name" parameter sets the name of the package.
# 2. In doing so, it declares the most urgent dependencies without which the code will not function. That is done through the "install_requires" parameter to setup().
# 3. We hard-code URLs to retrieve some of those dependencies. This is usually because the upstream project has put a broken URL on, or because we host a specially-patched version.
import os
from setuptools import setup
# This is a common idiom for files.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
# If we host a copy of a package for any reason, we typically
# host it here:
dependency_path = ''
# The call to setup() is the important part of the file.
name = "mysite",
version = "3", # We don't really do releases, so every version is version 3.
packages = ['mysite',],
url = '',
license = 'AGPLv3',
install_requires = ['setuptools',
'lockfile>=0.9', # as of this writing, pypi only has version 0.8
'python-openid==2.2.5-openhatch1', # as of this writing, upstream has an HTML file where a tar.gz should be
# dependency_links is a list of URLs. If you need to override the URL
# for a package called "foo", specify a URL like
# " in this list.
# You might wonder why it's #egg=foo not #name=foo. It's because
# Python packages are called "eggs.
# For dependencies that don't have a special path listed here,
# buildout will search for the code on
# You might have noticed that some dependencies are listed here,
# whereas *all* are listed in buildout.cfg. We list some here so we
# can override their download URL.
dependency_links = [dependency_path,
# FIXME: Write a reasonable comment about zip_safe and include_package_data
zip_safe = False,
include_package_data = True,
description = "A website",
author = 'The OpenHatch team <> <>',
author_email = '',
package_dir = {'': '.'},
Jump to Line
Something went wrong with that request. Please try again.