Permalink
Switch branches/tags
Commits on Jul 24, 2015
  1. mockfs v1.0.2

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Jul 24, 2015
Commits on Sep 13, 2014
  1. Makefile: allow overriding the default prefix via the environment

    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>
    davvid committed Nov 12, 2013
  2. mockfs: ensure that makedirs() raises on existing directories

    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>
    davvid committed Sep 13, 2014
Commits on Apr 16, 2013
  1. Makefile: simplify DESTDIR/prefix handling

    Use setuptool's --root flag to simplify how we handle DESTDIR and prefix.
    
    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Apr 16, 2013
  2. .gitignore: keep rules anchored to the root

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Apr 16, 2013
Commits on Apr 12, 2013
  1. Merge pull request #5 from zyga/py3k

    Add support for python3
    davvid committed Apr 12, 2013
Commits on Apr 11, 2013
  1. gitignore: ignore htmlcov and .coverage

    Yay for coverage
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  2. gitignore: ignore __pycache__

    Yay for python3 support :)
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  3. gitignore: ignore both build and dist

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  4. gitignore: ignore *.egg-info

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  5. gitignore: sort entries

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  6. travis: also test on python-3.{2,3}

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  7. travis: use 'python setup.py test' for testing

    This way 2to3 magic can convert the code for python3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  8. run_tests: drop standalone test script

    This script does not work with python3 as it cannot use 2to3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  9. setup: advertise support for python3.{2,3}

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  10. setup: use 2to3

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  11. setup: declare test suite

    This allows test suite to run with 'python setup.py test'
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  12. setup: add mockfs.tests to packages=

    This is required to use_2to3 to fix tests for python3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  13. setup: don't import mockfs

    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>
    zyga committed Apr 11, 2013
  14. setup: switch to setuptools

    This is required to use use_2to3
    
    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  15. setup: bump copyright

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  16. storage: only replace os.file on python-2.x

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  17. mfs: only replace os.getcwdu on python-2.x

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
  18. fix various PEP8 issues

    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>
    zyga committed Apr 11, 2013
  19. Merge pull request #1 from zyga/travis

    Add travis configuration file
    zyga committed Apr 11, 2013
  20. Add travis configuration file

    Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
    zyga committed Apr 11, 2013
Commits on Mar 24, 2013
  1. setup.py: use https:// URLs

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Mar 24, 2013
  2. setup.py: update project homepage

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Mar 24, 2013
  3. setup.cfg: sign pypi uploads

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Mar 24, 2013
  4. mockfs: bump version to 1.0.1

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Mar 24, 2013
Commits on Feb 24, 2013
  1. setup.py: set status to Production/Stable

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Feb 24, 2013
Commits on Feb 22, 2013
  1. util: Take the source value when there are duplicate keys in merge_di…

    …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>
    davvid committed Feb 22, 2013
Commits on Feb 15, 2013
  1. mockfs.storage: Do not attempt to close a file that was never opened

    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>
    davvid committed Feb 15, 2013
  2. mfs: Minor PEP-8 whitespace tweaks

    Signed-off-by: David Aguilar <davvid@gmail.com>
    davvid committed Feb 15, 2013
  3. Merge pull request #1 from jordilin/master

    Fix writing to a non-existent path.
    davvid committed Feb 15, 2013