From e3b379b974fafcdd645593a37f36362982626053 Mon Sep 17 00:00:00 2001 From: gwen Date: Fri, 13 Jul 2012 11:22:00 +0200 Subject: [PATCH] ready for debian packaging now --- .gitignore | 3 +++ Makefile | 25 +++++++++++++++++++ ...py => disabled_test_config_big_example.py} | 0 setup.py | 14 +++++++++++ src/autolib.py | 2 +- test/autopath.py | 3 ++- 6 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile rename report/{test_config_big_example.py => disabled_test_config_big_example.py} (100%) create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..43f47a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +*# +build/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..95cd0ab --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +#!/usr/bin/make + +INSTALL := install +INSTALL_DATA := install -m 644 +INSTALL_PROGRAM := install -m 755 +INSTALL_DIR := install -m 755 -d + +PYTHON_OPTS = +ifneq ($(DESTDIR),) +PYTHON_OPTS += --root $(DESTDIR) +endif + +all: test + +clean: + $(RM) -r build + $(RM) -r tiramisu.egg-info/ + +test: clean + py.test + +install: + python setup.py install --no-compile $(PYTHON_OPTS) + +.PHONY: all clean test install diff --git a/report/test_config_big_example.py b/report/disabled_test_config_big_example.py similarity index 100% rename from report/test_config_big_example.py rename to report/disabled_test_config_big_example.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b523bb8 --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +from distutils.core import setup + +setup( + author='Gwenaël Rémond', + author_email='gremond@cadoles.com', + name='tiramisu', + version='1.0', + description='configuration management tool', + url='http://labs.libre-entreprise.org/projects/tiramisu', + package_dir = {'tiramisu':'src'}, + packages=['tiramisu'] +) diff --git a/src/autolib.py b/src/autolib.py index febc172..988a6b2 100644 --- a/src/autolib.py +++ b/src/autolib.py @@ -19,7 +19,7 @@ # the whole pypy projet is under MIT licence # ____________________________________________________________ "enables us to carry out a calculation and return an option's value" -from tiramisu.error import DisabledOptionError, SpecialOwnersError +from error import DisabledOptionError, SpecialOwnersError # ____________________________________________________________ # automatic Option object special_owners = ['auto', 'fill'] diff --git a/test/autopath.py b/test/autopath.py index bc2ddff..8d98985 100644 --- a/test/autopath.py +++ b/test/autopath.py @@ -8,6 +8,7 @@ from os.path import dirname, abspath, join, normpath import sys HERE = dirname(abspath(__file__)) -PATH = normpath(join(HERE, '..')) +PATH = normpath(join(HERE, '..', 'src')) if PATH not in sys.path: sys.path.insert(1, PATH) +