Commit aead5ad2 authored by Romain Bignon's avatar Romain Bignon

moved tools/packaging into weboob-packaging.git

parent a41c5394
......@@ -2,8 +2,5 @@
*.pyc
*.swp
Session.vim
*.egg-info
build
dist
deb
MANIFEST.in
include weboob/backends/bnporc/data/*
This package provides a dialog box used to configure backends.
This dialog box can be integrated in a Qt GUI.
#!/bin/sh
SCRIPT_DIRNAME=$(dirname $0)
[ -z "$1" ] && echo "no command provided" && exit 1
SETUP_PY_LIST="
$SCRIPT_DIRNAME/setup.py.d/core.py
$SCRIPT_DIRNAME/setup.py.d/core-qt.py
$SCRIPT_DIRNAME/setup.py.d/core-webkit-formatter.py
$SCRIPT_DIRNAME/setup.py.d/backends-bank.py
$SCRIPT_DIRNAME/setup.py.d/backends-dating.py
$SCRIPT_DIRNAME/setup.py.d/backends-messages.py
$SCRIPT_DIRNAME/setup.py.d/backends-torrent.py
$SCRIPT_DIRNAME/setup.py.d/backends-travel.py
$SCRIPT_DIRNAME/setup.py.d/backends-video.py
$SCRIPT_DIRNAME/setup.py.d/backends-video-nsfw.py
$SCRIPT_DIRNAME/setup.py.d/backends-weather.py
$SCRIPT_DIRNAME/setup.py.d/boobank.py
$SCRIPT_DIRNAME/setup.py.d/havesex.py
$SCRIPT_DIRNAME/setup.py.d/masstransit.py
$SCRIPT_DIRNAME/setup.py.d/monboob.py
$SCRIPT_DIRNAME/setup.py.d/qboobmsg.py
$SCRIPT_DIRNAME/setup.py.d/qhavesex.py
$SCRIPT_DIRNAME/setup.py.d/qvideoob.py
$SCRIPT_DIRNAME/setup.py.d/travel.py
$SCRIPT_DIRNAME/setup.py.d/videoob.py
$SCRIPT_DIRNAME/setup.py.d/videoob_web.py
$SCRIPT_DIRNAME/setup.py.d/weboorrents.py
$SCRIPT_DIRNAME/setup.py.d/wetboobs.py
"
for f in $SETUP_PY_LIST
do
python $f clean --all
python $f $@
done
This package was debianized by Christophe Benz <christophe.benz@gmail.com>
It was downloaded from : http://www.weboob.org
Upstream Authors:
Romain Bignon <weboob@lists.symlink.me>
Christophe Benz <weboob@lists.symlink.me>
Copyright:
See each source file for effective copyright.
License:
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL-3'.
#!/bin/sh
#
# This script generates one .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
FILEPATH="$1"
DEB_DIRPATH="$PWD/deb"
DIST_DIRPATH="$PWD/dist"
SCRIPT_DIRPATH=$(dirname $(readlink -f "$0"))
PKGNAME=$(basename $FILEPATH .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 $FILEPATH sdist
cd $DIST_DIRPATH
TARGZ=$(find -maxdepth 1 -regex ".*$PKGNAME-[0-9]\.[0-9]\.tar\.gz")
[ ! -f $TARGZ ] && echo "$TARGZ not found" && exit
tar xf $TARGZ
TARGZ_DIRPATH=$(basename $TARGZ .tar.gz)
[ ! -d $TARGZ_DIRPATH ] && echo "$TARGZ_DIRPATH not found" && exit
rm -f $TARGZ
cd $TARGZ_DIRPATH
ln -s $FILEPATH setup.py
[ -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 --copyright-file $SCRIPT_DIRPATH/copyright
[ ! -d deb_dist/$TARGZ_DIRPATH ] && echo "deb_dist/$TARGZ_DIRPATH not found" && exit
cd deb_dist/$TARGZ_DIRPATH
dpkg-buildpackage -rfakeroot
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
#!/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
DEB_DIRPATH="$PWD/deb"
DIST_DIRPATH="$PWD/dist"
SCRIPT_DIRPATH=$(dirname $(readlink -f "$0"))
SETUP_PY_LIST="
$SCRIPT_DIRPATH/setup.py.d/core.py
$SCRIPT_DIRPATH/setup.py.d/core-qt.py
$SCRIPT_DIRPATH/setup.py.d/core-webkit-formatter.py
$SCRIPT_DIRPATH/setup.py.d/backends-bank.py
$SCRIPT_DIRPATH/setup.py.d/backends-dating.py
$SCRIPT_DIRPATH/setup.py.d/backends-messages.py
$SCRIPT_DIRPATH/setup.py.d/backends-torrent.py
$SCRIPT_DIRPATH/setup.py.d/backends-travel.py
$SCRIPT_DIRPATH/setup.py.d/backends-video.py
$SCRIPT_DIRPATH/setup.py.d/backends-video-nsfw.py
$SCRIPT_DIRPATH/setup.py.d/backends-weather.py
$SCRIPT_DIRPATH/setup.py.d/boobank.py
$SCRIPT_DIRPATH/setup.py.d/havesex.py
$SCRIPT_DIRPATH/setup.py.d/masstransit.py
$SCRIPT_DIRPATH/setup.py.d/monboob.py
$SCRIPT_DIRPATH/setup.py.d/qboobmsg.py
$SCRIPT_DIRPATH/setup.py.d/qhavesex.py
$SCRIPT_DIRPATH/setup.py.d/qvideoob.py
$SCRIPT_DIRPATH/setup.py.d/qweboobcfg.py
$SCRIPT_DIRPATH/setup.py.d/travel.py
$SCRIPT_DIRPATH/setup.py.d/videoob.py
$SCRIPT_DIRPATH/setup.py.d/videoob_web.py
$SCRIPT_DIRPATH/setup.py.d/weboorrents.py
$SCRIPT_DIRPATH/setup.py.d/wetboobs.py
"
rm -rf $DEB_DIRPATH $DIST_DIRPATH MANIFEST.in *.egg-info
mkdir $DEB_DIRPATH
for filepath in $SETUP_PY_LIST
do
echo "========== Creating Debian package for $filepath"
$SCRIPT_DIRPATH/create_debian_package.sh $filepath
done
rm -rf $DIST_DIRPATH MANIFEST.in *.egg-info
echo
echo "Packages are in the $DEB_DIRPATH directory"
#!/bin/sh
# This script greps imports excluding standard packages (the list is not exhaustive).
# It helps finding dependencies on a given directory.
# Execute it on a setuptools sdist directory.
#
# For example:
# ./tools/packaging/setup.py.d/core.py sdist
# => generates dist/weboob-core-x.y.tar.gz
# cd dist
# tar xzf weboob-core-x.y.tar.gz
# cd ..
# ./tools/packaging/find_imports.sh dist/weboob-core-x.y/weboob
#
# Then, add the results to the setup.py.d files,
# and to the tools/packaging/stdeb.cfg for Debian dependencies.
[ -z "$1" ] && echo "Please specify a directory" && exit
grep 'import' "$1" -r --include=*.py | \
egrep -w -v '^.+:.*weboob|__import__|__future__|logging|threading|ConfigParser|from \..*|copy|'\
'optparse|functools|inspect|datetime|ordereddict|from\ HTMLParser|xml\.etree|sqlite3|'\
're|time|os|sys|hashlib|subprocess|stat|__builtin__|tempfile|urllib|urllib2|types|traceback|'\
'getpass|htmlentitydefs|random|StringIO|minidom|from\ email|from\ smtplib|from\ smtpd|asyncore|'\
'wsgiref'
echo
echo "Used parsers:"
grep "tools\.parsers" "$1" -r --include=*.py
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-bank',
version='0.1',
description='Weboob backends implementing bank capability',
author='Laurent Bachelier',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapBank',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.bnporc',
'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
# not Pypi packages:
# Suggests
# python-imaging
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-dating',
version='0.1',
description='Weboob backends implementing dating capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapDating',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.aum',
'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
'PIL', # python-imaging
'simplejson', # python-simplejson
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-messages',
version='0.1',
description='Weboob backends implementing messages capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapMessages',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.dlfp',
'weboob.backends.dlfp.pages',
'weboob.backends.fourchan',
'weboob.backends.fourchan.pages',
],
install_requires=[
'weboob-core', # python-weboob-core
'FeedParser', # python-feedparser
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-torrent',
version='0.1',
description='Weboob backends implementing torrent capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapTorrent',
namespace_packages = ['weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.gazelle',
'weboob.backends.gazelle.pages',
],
install_requires=[
'weboob-core', # python-weboob-core
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-travel',
version='0.1',
description='Weboob backends implementing travel capability',
author='Romain Bignon, Julien Hébert',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapTravel',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.canaltp',
'weboob.backends.transilien',
'weboob.backends.transilien.pages',
],
install_requires=[
'weboob-core', # python-weboob-core
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-video-nsfw',
version='0.1',
description='Weboob backends implementing video capability - non-suitable for work',
author='Romain Bignon, Roger Philibert',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapVideo',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.youjizz',
'weboob.backends.youjizz.pages',
'weboob.backends.youporn',
'weboob.backends.youporn.pages',
],
install_requires=[
'weboob-core', # python-weboob-core
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-video',
version='0.1',
description='Weboob backends implementing video capability',
author='Christophe Benz, Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapVideo',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.ina',
'weboob.backends.ina.pages',
'weboob.backends.youtube',
],
include_package_data=True,
package_data={
'weboob.backends.ina': ['data/*'],
},
install_requires=[
'weboob-core', # python-weboob-core
'gdata', # python-gdata
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-backends-weather',
version='0.1',
description='Weboob backends implementing weather capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/ICapWeather',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.yweather',
],
install_requires=[
'weboob-core', # python-weboob-core
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
setup(
name='weboob-boobank',
version='0.1',
description='Boobank, the Weboob bank-accounts swiss-knife',
long_description='List your bank accounts and get info about them',
author='Christophe Benz, Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org/Boobank',
namespace_packages = ['weboob', 'weboob.applications'],
packages=[
'weboob',
'weboob.applications',
'weboob.applications.boobank',
],
scripts=[
'scripts/boobank',
],
install_requires=[
'weboob-backends-bank', # python-weboob-backends-bank
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from setuptools import setup
import os
os.system('make -C weboob/tools/application/qt')
setup(
name='weboob-core-qt',
version='0.1',
description='Weboob, Web Out Of Browsers - core library, Qt configuration GUI',
long_description='Configure backends using a Qt GUI.',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
maintainer_email='christophe.benz@gmail.com',
license='GPLv3',
url='http://www.weboob.org',
namespace_packages = [
'weboob',
'weboob.applications',
'weboob.tools',
'weboob.tools.application',
],
packages=[
'weboob',
'weboob.applications.qweboobcfg',
'weboob.tools.application.qt',
],
scripts=[
'scripts/weboob-config-qt',
],
install_requires=[
'weboob-core', # python-weboob-core
'PyQt', # python-qt4
],
)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Christophe Benz
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,