more work on deb
This commit is contained in:
parent
5591f001d8
commit
e3a0561a94
12 changed files with 80 additions and 37 deletions
1
tools/packaging/MANIFEST.in.d/backends-bank
Normal file
1
tools/packaging/MANIFEST.in.d/backends-bank
Normal file
|
|
@ -0,0 +1 @@
|
|||
include share/pyshared/weboob/backends/aum/data/*
|
||||
1
tools/packaging/MANIFEST.in.d/backends-dating
Normal file
1
tools/packaging/MANIFEST.in.d/backends-dating
Normal file
|
|
@ -0,0 +1 @@
|
|||
include share/pyshared/weboob/backends/bnporc/data/*
|
||||
2
tools/packaging/README.d/core-qt
Normal file
2
tools/packaging/README.d/core-qt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
This package provides a dialog box used to configure backends.
|
||||
This dialog box can be integrated in a Qt GUI.
|
||||
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# This script generates the .deb packages for Weboob.
|
||||
# It is based on python-stdeb setuptools extension.
|
||||
#
|
||||
# To accelerate the procedure, it is advised to disable the stdeb
|
||||
# automatic depencies search feature.
|
||||
# This requires a patch:
|
||||
# # patch -p0 < stdeb.patch
|
||||
|
||||
[ ! -d /usr/share/pyshared/stdeb ] && echo 'Please install the python-stdeb package' && exit
|
||||
|
||||
|
|
@ -41,28 +49,35 @@ mkdir $DEB_DIRPATH
|
|||
for f in $SETUP_PY_LIST
|
||||
do
|
||||
echo "========== Creating Debian package for $f"
|
||||
rm -rf $DIST_DIRPATH
|
||||
MANIFEST_IN=$SCRIPT_DIRPATH/MANIFEST.in.d/$(basename $f .py)
|
||||
PKGNAME=$(basename $f .py)
|
||||
rm -f MANIFEST.in
|
||||
MANIFEST_IN=$SCRIPT_DIRPATH/MANIFEST.in.d/$PKGNAME
|
||||
[ -f $MANIFEST_IN ] && ln -s $MANIFEST_IN MANIFEST.in
|
||||
README=$SCRIPT_DIRPATH/README.d/$PKGNAME
|
||||
[ -f $README ] && mv README README.old && ln -s $README README
|
||||
python $f sdist
|
||||
cd $DIST_DIRPATH
|
||||
TARGZ=$(ls *.tar.gz)
|
||||
TARGZ=$(ls weboob-$PKGNAME-*.tar.gz)
|
||||
tar xf $TARGZ
|
||||
PKGNAME=$(basename $f .py)
|
||||
TARGZ_DIRPATH=$(basename $TARGZ .tar.gz)
|
||||
[ ! -d $TARGZ_DIRPATH ] && echo "$TARGZ_DIRPATH not found" && exit
|
||||
cd $TARGZ_DIRPATH
|
||||
ln -s $f setup.py
|
||||
[ -f $MANIFEST_IN ] && ln -s $MANIFEST_IN MANIFEST.in
|
||||
[ -f $MANIFEST_IN ] && ln -sf $MANIFEST_IN MANIFEST.in
|
||||
python setup.py --command-packages=stdeb.command sdist_dsc --extra-cfg-file $SCRIPT_DIRPATH/stdeb.cfg
|
||||
[ ! -d deb_dist/$TARGZ_DIRPATH ] && echo "deb_dist/$TARGZ_DIRPATH not found" && exit
|
||||
cd deb_dist/$TARGZ_DIRPATH
|
||||
fakeroot dpkg-buildpackage
|
||||
cd ..
|
||||
[ ! -f *.deb ] && echo "Debian package not found" && exit
|
||||
mv *.deb *.diff.gz *.changes *.orig.tar.gz $DEB_DIRPATH
|
||||
cd ../../..
|
||||
[ -f $README ] && mv README.old README
|
||||
pwd
|
||||
# break
|
||||
done
|
||||
|
||||
rm -rf $DIST_DIRPATH MANIFEST.in *.egg-info
|
||||
# rm -rf $DIST_DIRPATH MANIFEST.in *.egg-info
|
||||
|
||||
echo
|
||||
echo "Packages are in the $DEB_DIRPATH directory"
|
||||
|
|
|
|||
|
|
@ -35,11 +35,14 @@ setup(
|
|||
'weboob',
|
||||
'weboob.backends',
|
||||
'weboob.backends.bnporc',
|
||||
'weboob.backends.bnporc.data',
|
||||
'weboob.backends.bnporc.pages',
|
||||
'weboob.backends.cragr',
|
||||
'weboob.backends.cragr.pages',
|
||||
],
|
||||
include_package_data=True,
|
||||
package_data={
|
||||
'weboob.backends.bnporc': ['data/*'],
|
||||
},
|
||||
install_requires=[
|
||||
'weboob-core', # python-weboob-core
|
||||
'ClientForm', # python-clientform
|
||||
|
|
|
|||
|
|
@ -35,10 +35,13 @@ setup(
|
|||
'weboob',
|
||||
'weboob.backends',
|
||||
'weboob.backends.aum',
|
||||
'weboob.backends.aum.data',
|
||||
'weboob.backends.aum.optim',
|
||||
'weboob.backends.aum.pages',
|
||||
],
|
||||
include_package_data=True,
|
||||
package_data={
|
||||
'weboob.backends.aum': ['data/*'],
|
||||
},
|
||||
install_requires=[
|
||||
'weboob-core', # python-weboob-core
|
||||
'html5lib', # python-html5lib
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ setup(
|
|||
'weboob.backends.ina',
|
||||
'weboob.backends.ina.pages',
|
||||
'weboob.backends.youtube',
|
||||
'weboob.backends.youtube.pages',
|
||||
],
|
||||
install_requires=[
|
||||
'weboob-core', # python-weboob-core
|
||||
|
|
|
|||
|
|
@ -46,10 +46,10 @@ setup(
|
|||
'weboob.applications.qweboobcfg',
|
||||
'weboob.tools.application.qt',
|
||||
],
|
||||
data_files=[
|
||||
('weboob/tools', ['weboob/tools/__init__.py']),
|
||||
('weboob/tools/application', ['weboob/tools/application/__init__.py']),
|
||||
],
|
||||
# data_files=[
|
||||
# ('weboob/tools', ['weboob/tools/__init__.py']),
|
||||
# ('weboob/tools/application', ['weboob/tools/application/__init__.py']),
|
||||
# ],
|
||||
scripts=[
|
||||
'scripts/weboob-config-qt',
|
||||
],
|
||||
|
|
|
|||
|
|
@ -49,16 +49,16 @@ setup(
|
|||
'weboob',
|
||||
'weboob.tools.application.formatters.webkit',
|
||||
],
|
||||
data_files=[
|
||||
('weboob/tools', ['weboob/tools/__init__.py']),
|
||||
('weboob/tools/application', ['weboob/tools/application/__init__.py']),
|
||||
('weboob/tools/application/formatters', ['weboob/tools/application/formatters/__init__.py']),
|
||||
],
|
||||
# data_files=[
|
||||
# ('weboob/tools', ['weboob/tools/__init__.py']),
|
||||
# ('weboob/tools/application', ['weboob/tools/application/__init__.py']),
|
||||
# ('weboob/tools/application/formatters', ['weboob/tools/application/formatters/__init__.py']),
|
||||
# ],
|
||||
install_requires=[
|
||||
'weboob-core', # python-weboob-core
|
||||
# not Pypi packages:
|
||||
# Depends
|
||||
# gtk
|
||||
# webkit
|
||||
# python-gtk
|
||||
# python-webkit
|
||||
],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -17,30 +17,19 @@
|
|||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
from __future__ import with_statement
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
with open('README') as f:
|
||||
readme_data = f.read()
|
||||
|
||||
setup(
|
||||
name='weboob-core',
|
||||
version='0.1',
|
||||
description='Weboob, Web Out Of Browsers - core library',
|
||||
long_description="""
|
||||
Weboob is a project which provides a core library, backends and applications.
|
||||
|
||||
The core library defines capabilities: features common to various websites. For example, http://www.youtube.com and
|
||||
http://www.dailymotion.com are both videos providers: Weboob defines the “ICapVideo” capability.
|
||||
|
||||
Each backend interfaces a website and implements one or many of these capabilities. Backends can be configured, which
|
||||
means that the end-user can provide personal information to access the underlaying website (login/password for example).
|
||||
|
||||
Applications offer the ability to the end-user to work with many backends in parallel, in a multi-threaded way. For
|
||||
example, one could search a video on many providers websites. Applications are toolkit-agnostic. They can use Gtk, Qt or
|
||||
text-only, more adapted to reuse data through pipes.
|
||||
|
||||
The core library provides base classes which help the developer to write backends and applications.
|
||||
|
||||
Weboob is written in Python and is distributed under the GPLv3 license.
|
||||
""",
|
||||
long_description=readme_data,
|
||||
author='Romain Bignon',
|
||||
author_email='weboob@lists.symlink.me',
|
||||
maintainer='Christophe Benz',
|
||||
|
|
|
|||
10
tools/packaging/stdeb.patch
Normal file
10
tools/packaging/stdeb.patch
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
--- /dev/null 2010-07-21 23:28:33.036382748 +0200
|
||||
+++ /usr/share/pyshared/stdeb/util.py 2010-07-21 23:28:39.808445830 +0200
|
||||
@@ -254,6 +254,7 @@
|
||||
import pkg_resources
|
||||
|
||||
depends = [] # This will be the return value from this function.
|
||||
+ return depends
|
||||
|
||||
parsed_reqs=[]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue