ready for debian packaging now

This commit is contained in:
gwen 2012-07-13 11:22:00 +02:00
parent 9aa9d9780a
commit e3b379b974
6 changed files with 45 additions and 2 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*~
*#
build/

25
Makefile Normal file
View File

@ -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

14
setup.py Normal file
View File

@ -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']
)

View File

@ -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']

View File

@ -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)