Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Commits on Sep 13, 2014
  1. @davvid

    Makefile: allow overriding the default prefix via the environment

    davvid authored
    Allow the MOCKFS_PREFIX environment variable to override the default
    prefix.  Adjust the default python site-packages directory so that it
    uses the same directory structure as is used by the current python.
    
    Signed-off-by: David Aguilar <davvid@gmail.com>
  2. @davvid

    mockfs: ensure that makedirs() raises on existing directories

    davvid authored
    os.makedirs() should raise OSError if it is told to create a
    directory that already exists.
    
    Closes #6
    
    Reported-by: Jacob Walker <jacob@tortugas-llc.com>
    Signed-off-by: David Aguilar <davvid@gmail.com>
Commits on Apr 16, 2013
  1. @davvid

    Makefile: simplify DESTDIR/prefix handling

    davvid authored
    Use setuptool's --root flag to simplify how we handle DESTDIR and prefix.
    
    Signed-off-by: David Aguilar <davvid@gmail.com>
  2. @davvid

    .gitignore: keep rules anchored to the root

    davvid authored
    Signed-off-by: David Aguilar <davvid@gmail.com>
Commits on Apr 12, 2013
  1. @davvid

    Merge pull request #5 from zyga/py3k

    davvid authored
    Add support for python3
Commits on Apr 11, 2013
  1. @zyga

    gitignore: ignore htmlcov and .coverage

    zyga authored
    Yay for coverage
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  2. @zyga

    gitignore: ignore __pycache__

    zyga authored
    Yay for python3 support :)
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  3. @zyga

    gitignore: ignore both build and dist

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  4. @zyga

    gitignore: ignore *.egg-info

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  5. @zyga

    gitignore: sort entries

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  6. @zyga

    travis: also test on python-3.{2,3}

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  7. @zyga

    travis: use 'python setup.py test' for testing

    zyga authored
    This way 2to3 magic can convert the code for python3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  8. @zyga

    run_tests: drop standalone test script

    zyga authored
    This script does not work with python3 as it cannot use 2to3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  9. @zyga

    setup: advertise support for python3.{2,3}

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  10. @zyga

    setup: use 2to3

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  11. @zyga

    setup: declare test suite

    zyga authored
    This allows test suite to run with 'python setup.py test'
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  12. @zyga

    setup: add mockfs.tests to packages=

    zyga authored
    This is required to use_2to3 to fix tests for python3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  13. @zyga

    setup: don't import mockfs

    zyga authored
    This allows us to use 2to3 later as vanilla mockfs modules are not
    compatible with python3. This sadly means that version needs to be
    maintained manually. The long_description field seems of low quality
    and should be probably either fixed or removed
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  14. @zyga

    setup: switch to setuptools

    zyga authored
    This is required to use use_2to3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  15. @zyga

    setup: bump copyright

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  16. @zyga

    storage: only replace os.file on python-2.x

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  17. @zyga

    mfs: only replace os.getcwdu on python-2.x

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  18. @zyga

    fix various PEP8 issues

    zyga authored
    Most of the changes are harmless.
    
    Some of them actually alter the very-old style that probably
    was copied from original docstrings from stdlib.
    None of the tests actually check if mocked IO has the same
    docstrings as stdlib IO so I guess that's not that important
    
    There is also one old exception syntax change but I don't think
    that's a factor as python2.5 is not that important anymore
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  19. @zyga

    Merge pull request #1 from zyga/travis

    zyga authored
    Add travis configuration file
  20. @zyga

    Add travis configuration file

    zyga authored
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Commits on Mar 24, 2013
  1. @davvid

    setup.py: use https:// URLs

    davvid authored
    Signed-off-by: David Aguilar <davvid@gmail.com>
  2. @davvid

    setup.py: update project homepage

    davvid authored
    Signed-off-by: David Aguilar <davvid@gmail.com>
  3. @davvid

    setup.cfg: sign pypi uploads

    davvid authored
    Signed-off-by: David Aguilar <davvid@gmail.com>
  4. @davvid

    mockfs: bump version to 1.0.1

    davvid authored
    Signed-off-by: David Aguilar <davvid@gmail.com>
Commits on Feb 24, 2013
  1. @davvid

    setup.py: set status to Production/Stable

    davvid authored
    Signed-off-by: David Aguilar <davvid@gmail.com>
Commits on Feb 22, 2013
  1. @davvid

    util: Take the source value when there are duplicate keys in merge_di…

    davvid authored
    …cts()
    
    merge_dicts() merges one nested dictionary into another.  When there are
    duplicate keys then we should always take the values from the source.
    Add a unit test to guarantee this behavior.
    
    Signed-off-by: David Aguilar <davvid@gmail.com>
Commits on Feb 15, 2013
  1. @davvid

    mockfs.storage: Do not attempt to close a file that was never opened

    davvid authored
    backend.SaveFile() may raise IOError.  Catch it and set the file()
    instance's closed attribute so that we do not try and close a file that
    was never opened.
    
    Signed-off-by: David Aguilar <davvid@gmail.com>
  2. @davvid

    mfs: Minor PEP-8 whitespace tweaks

    davvid authored
    Signed-off-by: David Aguilar <davvid@gmail.com>
  3. @davvid

    Merge pull request #1 from jordilin/master

    davvid authored
    Fix writing to a non-existent path.
  4. @jordilin

    mockfs.storage: Fix writing in an invalid path

    jordilin authored
    raise IOError when trying to write a file in a directory that does not
    exist.
    
    Signed-off-by: Jordi Carrillo <jordilin@gmail.com>
Something went wrong with that request. Please try again.