Skip to content

Commit 6e9edee

Browse files
[FIX] odoo.py setup deps and readme.md
1 parent d4624fa commit 6e9edee

File tree

5 files changed

+37
-34
lines changed

5 files changed

+37
-34
lines changed

README.md

+24-21
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,22 @@
1-
About Odoo
2-
==========
1+
Odoo is a suite of web based open source business apps. More info at http://www.odoo.com
32

4-
Odoo is a suite of open source Business apps. More info at http://www.odoo.com
53

6-
Evaluating Odoo
7-
---------------
4+
Testing Odoo
5+
-------------
86

9-
The easiest way to test Odoo is the free trial, NO email registration is
10-
required, select "skip this step" to skip it.
7+
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.
118

12-
https://www.odoo.com/page/start
139

10+
Getting started with Odoo developement
11+
--------------------------------------
1412

15-
Getting starting with Odoo developement
16-
---------------------------------------
17-
18-
If you are a developer type the following command at your terminal:
13+
If you are a developer type the following command at your terminal [1]:
1914

2015
wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python
2116

22-
Then follow the tutorial here:
23-
24-
https://doc.openerp.com/trunk/server/howto/howto_website/
25-
26-
If you are an Odoo employee type the following to add the odoo-dev remote
17+
Then follow <a href="https://doc.openerp.com/trunk/server/howto/howto_website/">the developer tutorial</a>
2718

28-
$ cd odoo; ./odoo.py setup_git_dev
19+
[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.
2920

3021

3122
Packages, tarballs and installers
@@ -42,7 +33,19 @@ Packages, tarballs and installers
4233
$ sudo apt-get update
4334
$ sudo apt-get install odoo
4435

45-
* Source tarballs http://nightly.openerp.com/
46-
* Windows installer http://nightly.openerp.com/
47-
* RPM package http://nightly.openerp.com/
36+
* <a href="http://nightly.openerp.com/">Source tarballs</a>
37+
* <a href="http://nightly.openerp.com/">Windows installer</a>
38+
* <a href="http://nightly.openerp.com/">RPM package</a>
39+
40+
41+
For Odoo employees
42+
------------------
43+
44+
To add the odoo-dev remote use this command:
45+
46+
$ ./odoo.py setup_git_dev
47+
48+
To fetch odoo merge pull requests refs use this command:
49+
50+
$ ./odoo.py setup_git_review
4851

doc/git.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Initializing a working copy
77

88
Use the easy-setup shell script::
99

10-
curl -O https://raw.githubusercontent.com/odoo/odoo/master/checkout.sh
11-
sh checkout.sh
10+
curl -O https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python2
1211

1312
it will will ask a few questions and create a local copy.
1413

@@ -26,7 +25,7 @@ repository can have any number of remotes. The setup script creates 2 remotes:
2625
the official repository and main branches, roughly corresponds to the old
2726
"mainline" branches in bazaar. You should never need to push to it, and by
2827
default your local copy is configured to forbid it.
29-
``dev``
28+
``odoo-dev``
3029
a grab-bag of development branches, you can push your work to it so other
3130
coworkers can work with you.
3231

odoo.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import re
2626
import sys
2727
if re.search('github.com[:/]odoo/odoo.git$', sys.argv[2]):
28-
print "Pushing to /odoo/odoo.git is forbidden, please push to odoo-dev, use -f to override"
28+
print "Pushing to /odoo/odoo.git is forbidden, please push to odoo-dev, use --no-verify to override"
2929
sys.exit(1)
3030
"""
3131

@@ -50,9 +50,11 @@ def git_locate():
5050
while path != '/':
5151
gitconfig_path = os.path.join(path, '.git/config')
5252
if os.path.isfile(gitconfig_path):
53-
content = open(gitconfig_path).read()
54-
if re.search('github.com[:/]odoo/odoo.git', content):
55-
break
53+
setup_py = os.path.join(path, 'setup.py')
54+
if os.path.isfile(setup_py):
55+
content = open(setup_py).read()
56+
if content.find('release.py') != -1:
57+
break
5658
path = os.path.dirname(path)
5759
if path == '/':
5860
path = None
@@ -64,7 +66,8 @@ def cmd_setup_git_init():
6466
printf('git repo found at %s',git_dir)
6567
else:
6668
run("git", "init", "odoo")
67-
git_dir = os.path.join(os.getcwd(), 'odoo')
69+
os.chdir('odoo')
70+
git_dir = os.getcwd()
6871
if git_dir:
6972
# sane push config for git < 2.0
7073
run('git','config','push.default','simple')
@@ -92,7 +95,7 @@ def cmd_setup_git_init():
9295
else:
9396
printf('no git repo found')
9497

95-
def cmd_setup_git_odoo_dev():
98+
def cmd_setup_git_dev():
9699
git_dir = git_locate()
97100
if git_dir:
98101
# setup odoo-dev remote
@@ -102,7 +105,7 @@ def cmd_setup_git_odoo_dev():
102105
run('git','config','--add','remote.odoo-dev.fetch','+refs/pull/*:refs/remotes/odoo-dev/pull/*')
103106
run('git','remote','update')
104107

105-
def cmd_setup_git_odoo_review():
108+
def cmd_setup_git_review():
106109
git_dir = git_locate()
107110
if git_dir:
108111
# setup odoo-dev remote
@@ -113,7 +116,7 @@ def cmd_setup_git_odoo_review():
113116
run('git','config','--add','remote.odoo.fetch','+refs/pull/*:refs/remotes/odoo/pull/*')
114117

115118
def setup_deps_debian(git_dir):
116-
debian_control_path = os.path.join(git_dir, 'debian/control')
119+
debian_control_path = os.path.join(git_dir, 'setup/debian/control')
117120
debian_control = open(debian_control_path).read()
118121
debs = re.findall('python-[0-9a-z]+',debian_control)
119122
proc = subprocess.Popen(['sudo','apt-get','install'] + debs, stdin=open('/dev/tty'))

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def py2exe_options():
174174
'python-openid',
175175
'pytz',
176176
'pyusb >= 1.0.0b1',
177-
'pywebdav < 0.9.8',
178177
'pyyaml',
179178
'qrcode',
180179
'reportlab', # windows binary pypi.python.org/pypi/reportlab

setup/debian/control

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ Recommends:
5454
ghostscript,
5555
postgresql,
5656
python-gevent,
57-
python-matplotlib,
5857
poppler-utils
5958
Description: OpenERP Enterprise Resource Management
6059
OpenERP, previously known as TinyERP, is a complete ERP and CRM. The main

0 commit comments

Comments
 (0)