Commit 1b9cad67 authored by Łukasz Nowak's avatar Łukasz Nowak

- group business templates instead of fetching all

 - add wrapper around infra.subverion to do easy task in easy way
 - reuse buildout macros (<=)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33131 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 837ed417
Changelog
=========
0.1 (2010-02-25)
----------------
- intial version
[luke]
infrae.subversion wrapper for Business Templates
================================================
Easy way to define which Business Templates to download to which folders.
[infrae]
urls =
http://server/path/SOMETHING/revision SOMETHING
[bt5checkout]
base = http://server/path/
revision = revision
urls =
SOMETHING # it will become http://server/path/SOMETHING/revision SOMETHING for infrae.subversion
from setuptools import setup, find_packages
name = "erp5.recipe.bt5checkout"
version = '0.1'
def read(name):
return open(name).read()
long_description=(
read('README.txt')
+ '\n' +
read('CHANGES.txt')
)
setup(
name = name,
version = version,
author = "Lukasz Nowak",
author_email = "luke@nexedi.com",
description = "ZC Buildout recipe to fetch easily BT5 from SVN",
long_description=long_description,
license = "ZPL 2.1",
keywords = "zope2 buildout",
classifiers=[
"License :: OSI Approved :: Zope Public License",
"Framework :: Buildout",
"Framework :: Zope2",
],
packages = find_packages('src'),
include_package_data = True,
package_dir = {'':'src'},
namespace_packages = ['erp5', 'erp5.recipe'],
install_requires = [
'infrae.subversion',
],
zip_safe=False,
entry_points = {'zc.buildout': ['default = %s:Recipe' % name]},
)
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2010 Nexedi SA and Contributors. All Rights Reserved.
# Copyright (c) 2006-2008 Zope Corporation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
import infrae.subversion
class Recipe(infrae.subversion.Recipe):
def __init__(self, buildout, name, options):
base, revision, urls = options['base'], options['revision'], \
options['urls']
new_url_list = []
for url in options['urls'].split('\n'):
if url:
url = '%s/%s/%s %s' % (base, url, revision, url)
new_url_list.append(url)
options['urls'] = '\n'.join(new_url_list)
infrae.subversion.Recipe.__init__(self, buildout, name, options)
......@@ -38,6 +38,15 @@ parts =
products-erp5-development
products-other
bt5-erp5
bt5-erp5-core
bt5-erp5-ui-test
#bt5-erp5-test
#bt5-erp5-compatibility
#bt5-erp5-tiolive
#bt5-erp5-test
#bt5-erp5-ui-test
#bt5-erp5-l10n
#bt5-erp5-extra
openoffice-bin
oood
pythonbin
......
......@@ -7,18 +7,174 @@ parts =
products-deps
products-erp5
bt5-erp5
bt5-erp5-core
bt5-erp5-ui-test
#bt5-erp5-test
#bt5-erp5-compatibility
#bt5-erp5-tiolive
#bt5-erp5-test
#bt5-erp5-ui-test
#bt5-erp5-l10n
#bt5-erp5-extra
[bt5-erp5]
recipe = infrae.subversion
develop +=
local-eggs/erp5.recipe.bt5checkout
[bt5-erp5-template]
recipe = erp5.recipe.bt5checkout
base = https://svn.erp5.org/repos/public/erp5/trunk/bt5
ignore_verification = true
revision = ${versions:erp5_bt5_revision}
public_bootstrap = ${products-erp5:base}/ERP5/bootstrap
[bt5-erp5-core]
<= bt5-erp5-template
base = ${products-erp5:base}/ERP5/bootstrap
urls =
erp5_core
erp5_mysql_innodb_catalog
erp5_xhtml_style
[bt5-erp5-compatibility]
<= bt5-erp5-template
urls =
erp5_open_trade_legacy_tax_system
erp5_legacy_tax_system
erp5_discount_resource
erp5_tax_resource
[bt5-erp5-extra]
# additional, experimental, obsoleted
<= bt5-erp5-template
urls =
erp5_ingestion_mysql_innodb_catalog
delivery_patch
erp5_auto_logout
erp5_bpm
erp5_csv_style
erp5_simulation
[bt5-erp5]
<= bt5-erp5-template
urls =
erp5_trade
erp5_utils
erp5_web
erp5_web_blog
erp5_web_multiflex5_theme
erp5_wizard
erp5_worklist_sql
erp5_payroll
erp5_pdf_editor
erp5_pdf_style
erp5_pdm
erp5_popup_ui
erp5_project
erp5_project_mysql_innodb_catalog
erp5_public_accounting_budget
erp5_publication
erp5_registry_ohada
erp5_rss_reader
erp5_rss_style
erp5_simplified_invoicing
erp5_open_trade
erp5_mobile
erp5_mrp
erp5_ods_style
erp5_odt_style
erp5_ooo_import
erp5_invoicing
erp5_item
erp5_knowledge_pad
erp5_ldap_catalog
erp5_deferred_style
erp5_discussion
erp5_egov
erp5_egov_mysql_innodb_catalog
erp5_forge
erp5_forge_release
erp5_hr
erp5_ical_style
erp5_immobilisation
erp5_ingestion
erp5_dms
erp5_documentation
erp5_administration
erp5_advanced_invoicing
erp5_apparel
erp5_archive
erp5_accounting
erp5_banking_cash
erp5_banking_check
erp5_banking_core
erp5_banking_inventory
erp5_barcode
erp5_base
erp5_budget
erp5_calendar
erp5_commerce
erp5_computer_immobilisation
erp5_consulting
erp5_content_translation
erp5_social_contracts
erp5_syncml
erp5_crm
[bt5-erp5-tiolive]
<= bt5-erp5-template
urls =
tiolive_base
[bt5-erp5-test]
<= bt5-erp5-template
urls =
test_accounting
test_accounting_fr
test_accounting_in
test_accounting_pl
test_core
test_html_style
test_web
test_xhtml_style
erp5_dummy_movement
[bt5-erp5-ui-test]
<= bt5-erp5-template
urls =
erp5_accounting_ui_test
erp5_dms_ui_test
erp5_mobile_ui_test
erp5_payroll_ui_test
erp5_pdm_ui_test
erp5_ui_test
erp5_ui_test_core
erp5_web_ui_test
[bt5-erp5-l10n]
<= bt5-erp5-template
urls =
${:public_bootstrap}/erp5_core/${:revision} erp5_core
${:public_bootstrap}/erp5_mysql_innodb_catalog/${:revision} erp5_mysql_innodb_catalog
${:public_bootstrap}/erp5_xhtml_style/${:revision} erp5_xhtml_style
${:base}/${:revision} .
erp5_accounting_l10n_br_extend
erp5_accounting_l10n_br_sme
erp5_accounting_l10n_fr
erp5_accounting_l10n_fr_m14
erp5_accounting_l10n_fr_m4
erp5_accounting_l10n_fr_pca
erp5_accounting_l10n_ifrs
erp5_accounting_l10n_in
erp5_accounting_l10n_jp
erp5_accounting_l10n_mt
erp5_accounting_l10n_pl
erp5_accounting_l10n_pl_default_gap
erp5_accounting_l10n_sn
erp5_egov_l10n_fr
erp5_hr_l10n_jp
erp5_l10n_fr
erp5_l10n_ja
erp5_l10n_ko
erp5_l10n_pl_PL
erp5_l10n_pt-BR
erp5_payroll_l10n_fr
erp5_payroll_l10n_jp
erp5_registry_ohada_l10n_fr
[cmf15]
recipe = plone.recipe.distros
......
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