diff --git a/README.md b/README.md index 6838cb9f39a45a3a2c74467bcc5a4e01caab61f1..0ba3cec010c83ce52bd955fb5d2d294d019318a4 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,22 @@ -About Odoo -========== +Odoo is a suite of web based open source business apps. More info at http://www.odoo.com -Odoo is a suite of open source Business apps. More info at http://www.odoo.com -Evaluating Odoo ---------------- +Testing Odoo +------------- -The easiest way to test Odoo is the free trial, NO email registration is -required, select "skip this step" to skip it. +The easiest way to test it is the <a href="https://www.odoo.com/page/start">Odoo free trial</a>, email registration is NOT required, you may click "skip this step" to skip it. - https://www.odoo.com/page/start +Getting started with Odoo developement +-------------------------------------- -Getting starting with Odoo developement ---------------------------------------- - -If you are a developer type the following command at your terminal: +If you are a developer type the following command at your terminal [1]: wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python -Then follow the tutorial here: - - https://doc.openerp.com/trunk/server/howto/howto_website/ - -If you are an Odoo employee type the following to add the odoo-dev remote +Then follow <a href="https://doc.openerp.com/trunk/server/howto/howto_website/">the developer tutorial</a> - $ cd odoo; ./odoo.py setup_git_dev +[1] You may want to check the content of the <a href="https://raw.githubusercontent.com/odoo/odoo/master/odoo.py">odoo.py file</a> before executing it. Packages, tarballs and installers @@ -42,7 +33,19 @@ Packages, tarballs and installers $ sudo apt-get update $ sudo apt-get install odoo -* Source tarballs http://nightly.openerp.com/ -* Windows installer http://nightly.openerp.com/ -* RPM package http://nightly.openerp.com/ +* <a href="http://nightly.openerp.com/">Source tarballs</a> +* <a href="http://nightly.openerp.com/">Windows installer</a> +* <a href="http://nightly.openerp.com/">RPM package</a> + + +For Odoo employees +------------------ + +To add the odoo-dev remote use this command: + + $ ./odoo.py setup_git_dev + +To fetch odoo merge pull requests refs use this command: + + $ ./odoo.py setup_git_review diff --git a/doc/git.rst b/doc/git.rst index d66ca33180b6070eed1d9e3ffb410f4dcba46404..1d2eaf575d0b9acc5990c2bbd3e5300a85bf4180 100644 --- a/doc/git.rst +++ b/doc/git.rst @@ -7,8 +7,7 @@ Initializing a working copy Use the easy-setup shell script:: - curl -O https://raw.githubusercontent.com/odoo/odoo/master/checkout.sh - sh checkout.sh + curl -O https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python2 it will will ask a few questions and create a local copy. @@ -26,7 +25,7 @@ repository can have any number of remotes. The setup script creates 2 remotes: the official repository and main branches, roughly corresponds to the old "mainline" branches in bazaar. You should never need to push to it, and by default your local copy is configured to forbid it. -``dev`` +``odoo-dev`` a grab-bag of development branches, you can push your work to it so other coworkers can work with you. diff --git a/odoo.py b/odoo.py index 54e32726f554e5aa647fbf4f48d1e73189de3c4f..d9a0bedf68f96aaf94f255149ec317a9b4484da8 100755 --- a/odoo.py +++ b/odoo.py @@ -25,7 +25,7 @@ GIT_HOOKS_PRE_PUSH = """ import re import sys if re.search('github.com[:/]odoo/odoo.git$', sys.argv[2]): - print "Pushing to /odoo/odoo.git is forbidden, please push to odoo-dev, use -f to override" + print "Pushing to /odoo/odoo.git is forbidden, please push to odoo-dev, use --no-verify to override" sys.exit(1) """ @@ -50,9 +50,11 @@ def git_locate(): while path != '/': gitconfig_path = os.path.join(path, '.git/config') if os.path.isfile(gitconfig_path): - content = open(gitconfig_path).read() - if re.search('github.com[:/]odoo/odoo.git', content): - break + setup_py = os.path.join(path, 'setup.py') + if os.path.isfile(setup_py): + content = open(setup_py).read() + if content.find('release.py') != -1: + break path = os.path.dirname(path) if path == '/': path = None @@ -64,7 +66,8 @@ def cmd_setup_git_init(): printf('git repo found at %s',git_dir) else: run("git", "init", "odoo") - git_dir = os.path.join(os.getcwd(), 'odoo') + os.chdir('odoo') + git_dir = os.getcwd() if git_dir: # sane push config for git < 2.0 run('git','config','push.default','simple') @@ -92,7 +95,7 @@ def cmd_setup_git_init(): else: printf('no git repo found') -def cmd_setup_git_odoo_dev(): +def cmd_setup_git_dev(): git_dir = git_locate() if git_dir: # setup odoo-dev remote @@ -102,7 +105,7 @@ def cmd_setup_git_odoo_dev(): run('git','config','--add','remote.odoo-dev.fetch','+refs/pull/*:refs/remotes/odoo-dev/pull/*') run('git','remote','update') -def cmd_setup_git_odoo_review(): +def cmd_setup_git_review(): git_dir = git_locate() if git_dir: # setup odoo-dev remote @@ -113,7 +116,7 @@ def cmd_setup_git_odoo_review(): run('git','config','--add','remote.odoo.fetch','+refs/pull/*:refs/remotes/odoo/pull/*') def setup_deps_debian(git_dir): - debian_control_path = os.path.join(git_dir, 'debian/control') + debian_control_path = os.path.join(git_dir, 'setup/debian/control') debian_control = open(debian_control_path).read() debs = re.findall('python-[0-9a-z]+',debian_control) proc = subprocess.Popen(['sudo','apt-get','install'] + debs, stdin=open('/dev/tty')) diff --git a/setup.py b/setup.py index 353239ab686290ca60ad4b11562b351b29304e21..ba29cb51c9bc3fe99bb8f8d20103608efa9b4245 100644 --- a/setup.py +++ b/setup.py @@ -174,7 +174,6 @@ setuptools.setup( 'python-openid', 'pytz', 'pyusb >= 1.0.0b1', - 'pywebdav < 0.9.8', 'pyyaml', 'qrcode', 'reportlab', # windows binary pypi.python.org/pypi/reportlab diff --git a/setup/debian/control b/setup/debian/control index 7f7786ee98d8c7d27d1df3913e4ca081a5f2a1f9..ced6043a65038f74e465b194a24178414c901dfa 100644 --- a/setup/debian/control +++ b/setup/debian/control @@ -54,7 +54,6 @@ Recommends: ghostscript, postgresql, python-gevent, - python-matplotlib, poppler-utils Description: OpenERP Enterprise Resource Management OpenERP, previously known as TinyERP, is a complete ERP and CRM. The main