From 6e9edeeb46d4161bf7be02f570073c9c1edf45c7 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse <lesuisse@gmail.com> Date: Thu, 29 May 2014 18:51:59 +0200 Subject: [PATCH] [FIX] odoo.py setup deps and readme.md --- README.md | 45 +++++++++++++++++++++++--------------------- doc/git.rst | 5 ++--- odoo.py | 19 +++++++++++-------- setup.py | 1 - setup/debian/control | 1 - 5 files changed, 37 insertions(+), 34 deletions(-) diff --git a/README.md b/README.md index 6838cb9f39a4..0ba3cec010c8 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 d66ca33180b6..1d2eaf575d0b 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 54e32726f554..d9a0bedf68f9 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 353239ab6862..ba29cb51c9bc 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 7f7786ee98d8..ced6043a6503 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 -- GitLab