create setup.py files for multi-packaging

This commit is contained in:
Christophe Benz 2010-07-06 12:12:57 +02:00
commit 37618bb28a
19 changed files with 798 additions and 32 deletions

View file

@ -17,27 +17,21 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
from setuptools import find_packages, setup
import os
setup(
name='weboob',
version='0.1',
description='Weboob, web out of the browser',
name='weboob-dev',
version='dev',
description='Weboob, Web Out Of Browsers - core library',
author='Romain Bignon',
author_email='romain@peerfuse.org',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://www.weboob.org',
packages=find_packages(exclude=['ez_setup']),
packages=find_packages(),
scripts=[os.path.join('scripts', script) for script in os.listdir('scripts')],
package_data={'weboob.frontends.videoob_web': ['templates/*.mako']},
install_requires=[
]
],
)

26
tools/create_all_packages.sh Executable file
View file

@ -0,0 +1,26 @@
#!/bin/sh
COMMAND="$1"
SETUP_PY_LIST="
weboob/setup.py
weboob/backends/setup.py
weboob/frontends/boobank/setup.py
weboob/frontends/masstransit/setup.py
weboob/frontends/monboob/setup.py
weboob/frontends/qboobmsg/setup.py
weboob/frontends/qhavesex/setup.py
weboob/frontends/qvideoob/setup.py
weboob/frontends/travel/setup.py
weboob/frontends/videoob/setup.py
weboob/frontends/videoob_web/setup.py
weboob/frontends/weboorrents/setup.py
weboob/frontends/wetboobs/setup.py
"
for f in $SETUP_PY_LIST
do
python $f clean --all
python $f "$COMMAND"
done

View file

@ -1,19 +1 @@
# -*- coding: utf-8 -*-
# Copyright(C) 2010 Romain Bignon
#
# 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 .ouiboube import Weboob, CallErrors
__import__('pkg_resources').declare_namespace(__name__)

View file

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

194
weboob/backends/setup.py Executable file
View file

@ -0,0 +1,194 @@
#! /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
setup(
name='weboob-bank-backends',
version='0.1',
description='Weboob backends implementing bank capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/ICapBank',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.bnporc',
'weboob.backends.bnporc.data',
'weboob.backends.bnporc.pages',
'weboob.backends.cragr',
'weboob.backends.cragr.pages',
],
install_requires=[
'weboob-core',
],
)
setup(
name='weboob-dating-backends',
version='0.1',
description='Weboob backends implementing dating capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/ICapDating',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.aum',
'weboob.backends.aum.data',
'weboob.backends.aum.optim',
'weboob.backends.aum.pages',
],
install_requires=[
'weboob-core',
],
)
setup(
name='weboob-messages-backends',
version='0.1',
description='Weboob backends implementing messages capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://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',
],
)
setup(
name='weboob-travel-backends',
version='0.1',
description='Weboob backends implementing travel capability',
author='Romain Bignon, Julien Hébert',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://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',
],
)
setup(
name='weboob-torrent-backends',
version='0.1',
description='Weboob backends implementing torrent capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/ICapTorrent',
namespace_packages = ['weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.gazelle',
'weboob.backends.gazelle.pages',
],
install_requires=[
'weboob-core',
],
)
setup(
name='weboob-video-backends',
version='0.1',
description='Weboob backends implementing video capability',
author='Christophe Benz, Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/ICapVideo',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.ina',
'weboob.backends.ina.pages',
'weboob.backends.youtube',
'weboob.backends.youtube.pages',
],
install_requires=[
'weboob-core',
],
)
setup(
name='weboob-video-backends-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',
license='GPLv3',
url='http://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',
],
)
setup(
name='weboob-weather-backends',
version='0.1',
description='Weboob backends implementing weather capability',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/ICapWeather',
namespace_packages = ['weboob', 'weboob.backends'],
packages=[
'weboob',
'weboob.backends',
'weboob.backends.yweather',
],
install_requires=[
'weboob-core',
],
)

View file

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

View file

@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

View file

@ -0,0 +1,46 @@
#! /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
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',
license='GPLv3',
url='http://weboob.org/Boobank',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.boobank',
],
scripts=[
'scripts/boobank',
],
install_requires=[
'weboob-bank-backends',
],
)

View file

@ -0,0 +1,46 @@
#! /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
setup(
name='weboob-masstransit',
version='0.1',
description='Masstransit, the Weboob travel swiss-knife, Hildon version (Maemo OS)',
long_description='Search for train stations and departure timegrids',
author='Julien Hébert',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/Masstransit',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.masstransit',
],
scripts=[
'scripts/masstransit',
],
install_requires=[
'weboob-travel-backends',
],
)

View file

@ -0,0 +1,45 @@
#! /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
setup(
name='weboob-monboob',
version='0.1',
description='Monboob, the Weboob e-mail swiss-knife',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/Monboob',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.monboob',
],
scripts=[
'scripts/monboob',
],
install_requires=[
'weboob-messages-backends',
],
)

View file

@ -0,0 +1,45 @@
#! /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
setup(
name='weboob-qboobmsg',
version='0.1',
description='QBoobMsg, the Weboob e-mail swiss-knife, Qt version',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/QBoobMsg',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.qboobmsg',
],
scripts=[
'scripts/qboobmsg',
],
install_requires=[
'weboob-messages-backends',
],
)

View file

@ -0,0 +1,46 @@
#! /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
setup(
name='weboob-qhavesex',
version='0.1',
description='QHaveSex, the Weboob sexual life swiss-knife, Qt version',
long_description='Optimize your probabilities to have sex on dating websites',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/QHaveSex',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.qhavesex',
],
scripts=[
'scripts/qhavesex',
],
install_requires=[
'weboob-dating-backends',
],
)

View file

@ -0,0 +1,46 @@
#! /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
setup(
name='weboob-qvideoob',
version='0.1',
description='QVideoob, the Weboob video swiss-knife, Qt version',
long_description='Search for videos on many websites, and get info about them',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/QVideoob',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.qvideoob',
],
scripts=[
'scripts/qvideoob',
],
install_requires=[
'weboob-video-backends',
],
)

View file

@ -0,0 +1,46 @@
#! /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
setup(
name='weboob-travel',
version='0.1',
description='The Weboob travel swiss-knife',
long_description='Search for train stations and departure timegrids',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/Travel',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.travel',
],
scripts=[
'scripts/travel',
],
install_requires=[
'weboob-travel-backends',
],
)

View file

@ -0,0 +1,46 @@
#! /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
setup(
name='weboob-videoob',
version='0.1',
description='Videoob, the Weboob video swiss-knife',
long_description='Search for videos on many websites, and get info about them',
author='Christophe Benz',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/Videoob',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.videoob',
],
scripts=[
'scripts/videoob',
],
install_requires=[
'weboob-video-backends',
],
)

View file

@ -0,0 +1,46 @@
#! /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
setup(
name='weboob-videoob-web',
version='0.1',
description='Videoob-web, the Weboob video swiss-knife, web server version',
long_description='Search for videos on many websites, and get info about them',
author='Christophe Benz',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/VideoobWeb',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.videoob_web',
],
scripts=[
'scripts/videoob-web-server',
],
install_requires=[
'weboob-video-backends',
],
)

View file

@ -0,0 +1,46 @@
#! /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
setup(
name='weboob-weboorrents',
version='0.1',
description='Weboorrents, the Weboob bittorrent swiss-knife',
long_description='Search for torrents on many websites, and get info about them',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/Weboorrents',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.weboorrents',
],
scripts=[
'scripts/weboorrents',
],
install_requires=[
'weboob-torrent-backends',
],
)

View file

@ -0,0 +1,45 @@
#! /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
setup(
name='weboob-wetboobs',
version='0.1',
description='Wetboobs, the Weboob weather forecast swiss-knife',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://weboob.org/Wetboobs',
namespace_packages = ['weboob', 'weboob.frontends'],
packages=[
'weboob',
'weboob.frontends',
'weboob.frontends.wetboobs',
],
scripts=[
'scripts/wetboobs',
],
install_requires=[
'weboob-weather-backends',
],
)

64
weboob/setup.py Executable file
View file

@ -0,0 +1,64 @@
#! /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
setup(
name='weboob-core',
version='0.1',
description='Weboob, Web Out Of Browsers - core library',
# long_description=read('README'),
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
license='GPLv3',
url='http://www.weboob.org',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Programming Language :: Python',
'Topic :: Internet',
],
# keywords='',
namespace_packages = ['weboob'],
packages=[
'weboob',
'weboob.capabilities',
'weboob.core',
'weboob.tools',
'weboob.tools.application',
'weboob.tools.application.formatters',
'weboob.tools.application.qt',
'weboob.tools.browser',
'weboob.tools.config',
'weboob.tools.parsers',
],
scripts=[
'scripts/weboobcfg',
'scripts/weboob-debug',
'scripts/weboob-tests',
],
install_requires=[
],
)