Skip to content

Commit

Permalink
[FIX] odoo.py setup deps and readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonylesuisse committed May 29, 2014
1 parent d4624fa commit 6e9edee
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 34 deletions.
45 changes: 24 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

5 changes: 2 additions & 3 deletions doc/git.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand Down
19 changes: 11 additions & 8 deletions odoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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)
"""

Expand All @@ -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
Expand All @@ -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')
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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'))
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def py2exe_options():
'python-openid',
'pytz',
'pyusb >= 1.0.0b1',
'pywebdav < 0.9.8',
'pyyaml',
'qrcode',
'reportlab', # windows binary pypi.python.org/pypi/reportlab
Expand Down
1 change: 0 additions & 1 deletion setup/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e9edee

Please sign in to comment.