Skip to content

Commit

Permalink
Under construction.
Browse files Browse the repository at this point in the history
  • Loading branch information
specialunderwear committed Oct 15, 2012
1 parent cd7a6b0 commit 28ac797
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions pm/__init__.py
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
1 change: 1 addition & 0 deletions pm/recipe/__init__.py
@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
1 change: 1 addition & 0 deletions pm/recipe/shinken/__init__.py
@@ -0,0 +1 @@
from pm.recipe.shinken.recipe import Recipe
13 changes: 13 additions & 0 deletions pm/recipe/shinken/recipe.py
@@ -0,0 +1,13 @@
import zc.recipe.egg

class Recipe(object):

def __init__(self, buildout, name, options):
self.buildout, self.name, self.options = buildout, name, options
self.bin = buildout['buildout']['bin-directory']

def install(self):
zc.recipe.egg.Egg(self.buildout, 'Shinken', {'eggs': 'Shinken'})


update = install
39 changes: 39 additions & 0 deletions setup.py
@@ -0,0 +1,39 @@
from setuptools import setup, find_packages


__version__ = "0.0.1"


setup(
# package name in pypi
name='pm.recipe.shinken',
# extract version from module.
version=__version__,
description="A buildout recipe to install Shinken.",
long_description="",
classifiers=[],
keywords='',
author='Lars van de Kerkhof',
author_email='lars@permanentmarkers.nl',
url='https://github.com/permanentmarkers/pm.recipe.shinken',
license='ZPL',
# include all packages in the egg, except the test package.
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
# for avoiding conflict have one namespace for all apc related eggs.
namespace_packages=['pm', 'pm.recipe'],
# include non python files
include_package_data=True,
zip_safe=False,
# specify dependencies
install_requires=[
'setuptools',
'zc.buildout',
'zc.recipe.egg',
],
# generate scripts
entry_points={
'console_scripts':[
'script_name = name.module:main',
]
},
)

0 comments on commit 28ac797

Please sign in to comment.