This repository was archived by the owner on May 27, 2025. It is now read-only.
forked from davidvilla/python-doublex
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·75 lines (63 loc) · 2.61 KB
/
setup.py
File metadata and controls
executable file
·75 lines (63 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env python
# Copyright (C) 2012-2018 David Villa Alises
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import os
import sys
from setuptools import setup, find_packages
# hack to prevent 'test' target exception:
# http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html
import multiprocessing, logging
exec(open('version.py').read())
def local_open(fname):
return open(os.path.join(os.path.dirname(__file__), fname))
exec(local_open('version.py').read())
config = dict(
name = 'doublex',
version = __version__,
description = 'Python test doubles',
keywords = ['unit tests', 'doubles', 'stub', 'spy', 'mock'],
author = 'David Villa Alises',
author_email = 'David.Villa@gmail.com',
url = 'https://bitbucket.org/DavidVilla/python-doublex',
packages = ['doublex'],
data_files = [('', ['README.rst'])],
test_suite = 'doublex.test',
license = 'GPLv3',
long_description = local_open('README.rst').read(),
install_requires = local_open('requirements.txt').readlines(),
classifiers = [
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Testing',
],
)
if sys.version_info >= (3,):
config.update(dict(
test_suite = 'doublex.test3',
))
setup(**config)