Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add setup.py and run_tests.py

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information...
commit f7c46bb7cfc073e2a01f530efe0fa91d6cb9f030 1 parent 7bc2d7e
@davvid davvid authored
Showing with 56 additions and 0 deletions.
  1. +5 −0 run_tests.py
  2. +51 −0 setup.py
View
5 run_tests.py
@@ -0,0 +1,5 @@
+#!/usr/bin/env python
+
+if __name__ == '__main__':
+ import mockfs.tests
+ mockfs.tests.main()
View
51 setup.py
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008 John Paulett (john -at- 7oars.com)
+# All rights reserved.
+#
+# This software is licensed as described in the file COPYING, which
+# you should have received as part of this distribution.
+
+
+import sys
+import mockfs as _mockfs
+
+try:
+ from setuptools import setup
+except ImportError:
+ from distutils.core import setup
+
+
+SETUP_ARGS = dict(
+ name='jsonpickle',
+ version=_mockfs.__version__,
+ description='Mock filesystem implementation for unit tests',
+ long_description = _mockfs.__doc__,
+ author='David Aguilar',
+ author_email='davvid@gmail.com',
+ url='http://github.com/davvid/mockfs',
+ license='BSD',
+ platforms=['POSIX', 'Windows'],
+ keywords=['unittest', 'mockfs', 'filesystem'],
+ classifiers=[
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ 'Development Status :: 4 - Beta',
+ 'Intended Audience :: Developers',
+ 'Programming Language :: Python'
+ ],
+ options={'clean': {'all': 1}},
+ packages=['mockfs'],
+)
+
+
+def main():
+ setup(**SETUP_ARGS)
+ return 0
+
+
+if __name__ == '__main__':
+ sys.exit(main())
Please sign in to comment.
Something went wrong with that request. Please try again.