Commit d13e54a7 authored by sylvain.thenault@logilab.fr's avatar sylvain.thenault@logilab.fr
Browse files

1.2 for cw 3.2

parent 6db59e160216
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
distname = "cubicweb-basket" distname = "cubicweb-basket"
modname = distname.split('-', 1)[1] modname = distname.split('-', 1)[1]
numversion = (1, 1, 0) numversion = (1, 2, 0)
version = '.'.join(str(num) for num in numversion) version = '.'.join(str(num) for num in numversion)
license = 'LGPL' license = 'LGPL'
copyright = '''Copyright (c) 2003-2008 LOGILAB S.A. (Paris, FRANCE). copyright = '''Copyright (c) 2003-2009 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr/ -- mailto:contact@logilab.fr''' http://www.logilab.fr/ -- mailto:contact@logilab.fr'''
author = "Logilab" author = "Logilab"
......
cubicweb-basket (1.2.0-1) unstable; urgency=low
* new upstream release depending on cubicweb 3.2
* rules: remove pythonX.Y/site-packages junk
--
cubicweb-basket (1.1.0-1) DISTRIBUTION; urgency=low cubicweb-basket (1.1.0-1) DISTRIBUTION; urgency=low
* first public release * first public release
......
...@@ -8,7 +8,7 @@ Standards-Version: 3.8.0 ...@@ -8,7 +8,7 @@ Standards-Version: 3.8.0
Package: cubicweb-basket Package: cubicweb-basket
Architecture: all Architecture: all
Depends: python2.4, cubicweb-common (>= 2.99.0) Depends: python2.4, cubicweb-common (>= 3.2.0)
Description: Basket support for the CubicWeb framework Description: Basket support for the CubicWeb framework
CubicWeb is a semantic web application framework. CubicWeb is a semantic web application framework.
. .
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
# Uncomment this to turn on verbose mode. # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1 #export DH_VERBOSE=1
build: build-stamp build: build-stamp
build-stamp: build-stamp:
dh_testdir dh_testdir
python setup.py -q build python setup.py -q build
touch build-stamp touch build-stamp
clean: clean:
dh_testdir dh_testdir
dh_testroot dh_testroot
rm -f build-stamp configure-stamp rm -f build-stamp configure-stamp
...@@ -25,6 +25,7 @@ install: build ...@@ -25,6 +25,7 @@ install: build
dh_clean -k dh_clean -k
dh_installdirs -i dh_installdirs -i
python setup.py -q install --no-compile --prefix=debian/cubicweb-basket/usr/ python setup.py -q install --no-compile --prefix=debian/cubicweb-basket/usr/
rm -rf debian/cubicweb-basket/usr/lib/python*
# Build architecture-independent files here. # Build architecture-independent files here.
...@@ -32,9 +33,6 @@ binary-indep: build install ...@@ -32,9 +33,6 @@ binary-indep: build install
dh_testdir dh_testdir
dh_testroot dh_testroot
dh_install -i dh_install -i
# dh_pycentral -i
# dh_python -i
# gzip -9 -c ChangeLog > changelog.gz
dh_installchangelogs -i dh_installchangelogs -i
dh_installexamples -i dh_installexamples -i
dh_installdocs -i dh_installdocs -i
...@@ -43,13 +41,13 @@ binary-indep: build install ...@@ -43,13 +41,13 @@ binary-indep: build install
dh_compress -i -X.py -X.ini -X.xml -Xtest dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i dh_fixperms -i
dh_installdeb -i dh_installdeb -i
dh_gencontrol -i dh_gencontrol -i
dh_md5sums -i dh_md5sums -i
dh_builddeb -i dh_builddeb -i
# Build architecture-dependent files here. # Build architecture-dependent files here.
binary-arch: binary-arch:
binary: binary-indep binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary .PHONY: build clean binary-arch binary-indep binary
...@@ -17,26 +17,12 @@ ...@@ -17,26 +17,12 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
""" Generic Setup script, takes package info from __pkginfo__.py file """ """ Generic Setup script, takes package info from __pkginfo__.py file """
import os
import sys
import shutil
from distutils.core import setup from distutils.core import setup
from distutils import command
from distutils.command import install_lib
from os.path import isdir, exists, join, walk
# import required features # import required features
from __pkginfo__ import distname, version, license, short_desc, long_desc, \ from __pkginfo__ import distname, version, license, short_desc, long_desc, \
web, author, author_email web, author, author_email
# import optional features # import optional features
try:
from __pkginfo__ import distname
except ImportError:
distname = distname
try:
from __pkginfo__ import scripts
except ImportError:
scripts = []
try: try:
from __pkginfo__ import data_files from __pkginfo__ import data_files
except ImportError: except ImportError:
...@@ -46,35 +32,17 @@ try: ...@@ -46,35 +32,17 @@ try:
except ImportError: except ImportError:
include_dirs = [] include_dirs = []
BASE_BLACKLIST = ('CVS', 'debian', 'dist', 'build', '__buildlog')
IGNORED_EXTENSIONS = ('.pyc', '.pyo', '.elc')
def ensure_scripts(linux_scripts):
"""creates the proper script names required for each platform
(taken from 4Suite)
"""
from distutils import util
if util.get_platform()[:3] == 'win':
scripts_ = [script + '.bat' for script in linux_scripts]
else:
scripts_ = linux_scripts
return scripts_
def install(**kwargs): def install(**kwargs):
"""setup entry point""" """setup entry point"""
#kwargs['distname'] = modname #kwargs['distname'] = modname
return setup(name=distname, return setup(name=distname,
version=version, version=version,
license =license, license=license,
description=short_desc, description=short_desc,
long_description=long_desc, long_description=long_desc,
author=author, author=author,
author_email=author_email, author_email=author_email,
url=web, url=web,
scripts=ensure_scripts(scripts),
data_files=data_files, data_files=data_files,
**kwargs) **kwargs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment