Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic monkey patching, workaround for Odoo 10 issue, and tests! #3

Merged
merged 30 commits into from
Sep 17, 2017

Commits on Sep 12, 2017

  1. Automatic patching prototype.

    This is an attempt to fix acsone/setuptools-odoo#10
    
    By installing a .pth file named zzz_odoo_autodiscover.pth that will run last,
    but before the main program starts, we can remove the dummy odoo package that
    is created by the *nspkg.pth files from setuptools. That leaves a chance to
    odoo/__init__.py to run when the main program imports odoo. The declare_namespace
    in odoo/addons/__init__.py will then repopulate odoo.addons.__path__.
    
    Yes, that is tricky... it's the price to live on the border line where.
    To be spec compliant, odoo/__init__.py should be empty. A better solution is
    to be found for v11.
    sbidoul committed Sep 12, 2017
    Configuration menu
    Copy the full SHA
    fe0366a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e18d296 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2017

  1. test suite

    sbidoul committed Sep 14, 2017
    Configuration menu
    Copy the full SHA
    c7cc273 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2017

  1. import hook: delete odoo.addons too

    otherwise we are in a situation with a child ns package
    without parent, which can confuse python
    sbidoul committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    1e76a53 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f7d806 View commit details
    Browse the repository at this point in the history
  3. integrate pytest in setup.py

    remove dependency on odoo so odoo-autodiscover
    can be installed before odoo
    sbidoul committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    c4a960f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e3acab5 View commit details
    Browse the repository at this point in the history
  5. travis

    sbidoul committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    3ca2607 View commit details
    Browse the repository at this point in the history
  6. tests: quiet unzip

    sbidoul committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    a3be0cb View commit details
    Browse the repository at this point in the history
  7. use tox

    sbidoul committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    3b42ac8 View commit details
    Browse the repository at this point in the history
  8. flake8

    sbidoul committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    b9b4d63 View commit details
    Browse the repository at this point in the history
  9. fix bug for a use case found in openupgradelib

    including test for it
    sbidoul committed Sep 15, 2017
    Configuration menu
    Copy the full SHA
    8461035 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    ad6bbc6 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2017

  1. test Odoo 11

    sbidoul committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    16775be View commit details
    Browse the repository at this point in the history
  2. use virtualenv instead of venv on python3 too

    Because with tox and ubuntu 16, pip does not get installed in the venv...
    sbidoul committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    3f86708 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2ab1ec2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    81bf182 View commit details
    Browse the repository at this point in the history
  5. flake8

    sbidoul committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    32b27dd View commit details
    Browse the repository at this point in the history
  6. no need to monkey patch when we have post import hooks

    Don't attempt to use namespace packages anymore for odoo.addons.
    It's definitely impossible as long as there is code in odoo/__init__.py
    We simply explore sys.path to find odoo/addons directories and add that
    to Odoo's ad_paths.
    sbidoul committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    9f65033 View commit details
    Browse the repository at this point in the history
  7. fix python version check

    sbidoul committed Sep 16, 2017
    Configuration menu
    Copy the full SHA
    cf25808 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2017

  1. Configuration menu
    Copy the full SHA
    85ea86f View commit details
    Browse the repository at this point in the history
  2. remove dead code in tests

    sbidoul committed Sep 17, 2017
    Configuration menu
    Copy the full SHA
    fe4471a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c6ec794 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f6c7f34 View commit details
    Browse the repository at this point in the history
  5. some code cleanup

    sbidoul committed Sep 17, 2017
    Configuration menu
    Copy the full SHA
    64db9c4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a1f38ee View commit details
    Browse the repository at this point in the history
  7. some cleanup

    sbidoul committed Sep 17, 2017
    Configuration menu
    Copy the full SHA
    ed6438c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    74ca923 View commit details
    Browse the repository at this point in the history
  9. revamp README

    sbidoul committed Sep 17, 2017
    Configuration menu
    Copy the full SHA
    294210f View commit details
    Browse the repository at this point in the history
  10. use travis to publish to pypi

    sbidoul committed Sep 17, 2017
    Configuration menu
    Copy the full SHA
    2926aca View commit details
    Browse the repository at this point in the history