ready for debian packaging now
This commit is contained in:
parent
9aa9d9780a
commit
e3b379b974
6 changed files with 45 additions and 2 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
*~
|
||||||
|
*#
|
||||||
|
build/
|
25
Makefile
Normal file
25
Makefile
Normal 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
14
setup.py
Normal 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']
|
||||||
|
)
|
|
@ -19,7 +19,7 @@
|
||||||
# the whole pypy projet is under MIT licence
|
# the whole pypy projet is under MIT licence
|
||||||
# ____________________________________________________________
|
# ____________________________________________________________
|
||||||
"enables us to carry out a calculation and return an option's value"
|
"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
|
# automatic Option object
|
||||||
special_owners = ['auto', 'fill']
|
special_owners = ['auto', 'fill']
|
||||||
|
|
|
@ -8,6 +8,7 @@ from os.path import dirname, abspath, join, normpath
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
HERE = dirname(abspath(__file__))
|
HERE = dirname(abspath(__file__))
|
||||||
PATH = normpath(join(HERE, '..'))
|
PATH = normpath(join(HERE, '..', 'src'))
|
||||||
if PATH not in sys.path:
|
if PATH not in sys.path:
|
||||||
sys.path.insert(1, PATH)
|
sys.path.insert(1, PATH)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue