OLD | NEW |
1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
2 # | 2 |
3 # Copyright 2009 Google Inc. All Rights Reserved. | 3 # Copyright 2009 Google Inc. All Rights Reserved. |
4 # | 4 # Copyright 2014 Altera Corporation. All Rights Reserved. |
| 5 # Copyright 2014-2015 John McGehee |
| 6 # |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | 7 # Licensed under the Apache License, Version 2.0 (the "License"); |
6 # you may not use this file except in compliance with the License. | 8 # you may not use this file except in compliance with the License. |
7 # You may obtain a copy of the License at | 9 # You may obtain a copy of the License at |
8 # | 10 # |
9 # http://www.apache.org/licenses/LICENSE-2.0 | 11 # http://www.apache.org/licenses/LICENSE-2.0 |
10 # | 12 # |
11 # Unless required by applicable law or agreed to in writing, software | 13 # Unless required by applicable law or agreed to in writing, software |
12 # distributed under the License is distributed on an "AS IS" BASIS, | 14 # distributed under the License is distributed on an "AS IS" BASIS, |
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 # See the License for the specific language governing permissions and | 16 # See the License for the specific language governing permissions and |
15 # limitations under the License. | 17 # limitations under the License. |
16 | 18 |
17 #! /usr/bin/env python | |
18 | 19 |
19 from fake_filesystem import __version__ | 20 from fake_filesystem import __version__ |
20 | 21 |
21 import os | 22 import os |
22 | 23 |
23 | 24 |
24 NAME = 'pyfakefs' | 25 NAME = 'pyfakefs' |
25 MODULES = ['fake_filesystem', | 26 MODULES = ['fake_filesystem', |
26 'fake_filesystem_glob', | 27 'fake_filesystem_glob', |
27 'fake_filesystem_shutil', | 28 'fake_filesystem_shutil', |
28 'fake_tempfile', | 29 'fake_tempfile', |
29 'fake_filesystem_unittest'] | 30 'fake_filesystem_unittest'] |
30 REQUIRES = ['mock'] | 31 REQUIRES = ['mox3'] |
31 DESCRIPTION = 'Fakes file system modules for automated developer testing.' | 32 DESCRIPTION = 'Fake file system for testing file operations without touching the
real file system.' |
32 | 33 |
33 URL = "https://code.google.com/p/pyfakefs" | 34 URL = "https://github.com/jmcgeheeiv/pyfakefs" |
34 | 35 |
35 readme = os.path.join(os.path.dirname(__file__), 'README.md') | 36 readme = os.path.join(os.path.dirname(__file__), 'README.md') |
36 LONG_DESCRIPTION = open(readme).read() | 37 LONG_DESCRIPTION = open(readme).read() |
37 | 38 |
38 CLASSIFIERS = [ | 39 CLASSIFIERS = [ |
39 'Development Status :: 5 - Production/Stable', | 40 'Development Status :: 5 - Production/Stable', |
40 'Environment :: Console', | 41 'Environment :: Console', |
41 'Intended Audience :: Developers', | 42 'Intended Audience :: Developers', |
42 'License :: OSI Approved :: Apache Software License', | 43 'License :: OSI Approved :: Apache Software License', |
43 'Programming Language :: Python', | 44 'Programming Language :: Python', |
44 'Programming Language :: Python :: 2.6', | 45 'Programming Language :: Python :: 2.6', |
45 'Programming Language :: Python :: 2.7', | 46 'Programming Language :: Python :: 2.7', |
46 'Programming Language :: Python :: 3', | 47 'Programming Language :: Python :: 3.2', |
| 48 'Programming Language :: Python :: 3.3', |
| 49 'Programming Language :: Python :: 3.4', |
47 'Operating System :: POSIX', | 50 'Operating System :: POSIX', |
48 'Operating System :: MacOS', | 51 'Operating System :: MacOS', |
49 'Operating System :: Microsoft :: Windows', | 52 'Operating System :: Microsoft :: Windows', |
50 'Topic :: Software Development :: Libraries', | 53 'Topic :: Software Development :: Libraries', |
51 'Topic :: Software Development :: Libraries :: Python Modules', | 54 'Topic :: Software Development :: Libraries :: Python Modules', |
52 'Topic :: Software Development :: Testing', | 55 'Topic :: Software Development :: Testing', |
53 'Topic :: System :: Filesystems', | 56 'Topic :: System :: Filesystems', |
54 ] | 57 ] |
55 | 58 |
56 AUTHOR = 'Google' | 59 AUTHOR = 'Google and John McGehee' |
57 AUTHOR_EMAIL = 'google-pyfakefs@google.com' | 60 AUTHOR_EMAIL = 'github@johnnado,com' |
58 KEYWORDS = ("testing test file os shutil glob mocking unittest " | 61 KEYWORDS = ("testing test file os shutil glob mocking unittest " |
59 "fakes filesystem unit").split(' ') | 62 "fakes filesystem unit").split(' ') |
60 | 63 |
61 params = dict( | 64 params = dict( |
62 name=NAME, | 65 name=NAME, |
63 version=__version__, | 66 version=__version__, |
64 py_modules=MODULES, | 67 py_modules=MODULES, |
65 install_requires=REQUIRES, | 68 install_requires=REQUIRES, |
66 | 69 |
67 # metadata for upload to PyPI | 70 # metadata for upload to PyPI |
68 author=AUTHOR, | 71 author=AUTHOR, |
69 author_email=AUTHOR_EMAIL, | 72 author_email=AUTHOR_EMAIL, |
70 description=DESCRIPTION, | 73 description=DESCRIPTION, |
71 long_description=LONG_DESCRIPTION, | 74 long_description=LONG_DESCRIPTION, |
72 keywords=KEYWORDS, | 75 keywords=KEYWORDS, |
73 url=URL, | 76 url=URL, |
74 classifiers=CLASSIFIERS, | 77 classifiers=CLASSIFIERS, |
75 ) | 78 ) |
76 | 79 |
77 try: | 80 try: |
78 from setuptools import setup | 81 from setuptools import setup |
79 except ImportError: | 82 except ImportError: |
80 from distutils.core import setup | 83 from distutils.core import setup |
81 else: | 84 else: |
82 params['tests_require'] = ['unittest2'] | 85 params['tests_require'] = ['unittest2'] |
83 params['test_suite'] = 'unittest2.collector' | 86 params['test_suite'] = 'unittest2.collector' |
84 | 87 |
85 setup(**params) # pylint: disable = W0142 | 88 setup(**params) # pylint: disable = W0142 |
OLD | NEW |