Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 90 lines (68 sloc) 2.107 kb
0b0de30 @dag long_description
dag authored
1 """
2 Attest
3 ======
4
5 Attest is a unit testing framework built from the ground up with idiomatic
6 Python in mind. Unlike others, it is not built on top of unittest though it
7 provides compatibility by creating TestSuites from Attest collections.
8
9 It has a functional API inspired by `Flask`_ and a class-based API that
10 mimics Python itself. The core avoids complicated assumptions leaving you
11 free to write tests however you prefer.
12
13 .. _Flask: http://pypi.python.org/pypi/Flask/
14
15 ::
16
17 from attest import Tests, Assert
18 math = Tests()
19
20 @math.test
21 def arithmetics():
22 Assert(1 + 1) == 2
23
24 if __name__ == '__main__':
25 math.run()
26
27 """
28
fb64b5e @dag Use setuptools-git for Python 2
dag authored
29 import sys
5d33f77 @dag Make attest a package that contains its own tests, fixes #52
dag authored
30 from setuptools import setup, find_packages
867c26f @dag setup.py, closes #2
dag authored
31
32
fb64b5e @dag Use setuptools-git for Python 2
dag authored
33 extras = {}
34
35 if sys.version_info[0] == 2:
36 extras.update(
37 setup_requires=[
38 'setuptools-git',
39 ]
40 )
41
42
867c26f @dag setup.py, closes #2
dag authored
43 setup(
6042efa @dag Rename to Attest
dag authored
44 name='Attest',
e0376ae @dag Version is now 0.5dev
dag authored
45 version='0.5',
867c26f @dag setup.py, closes #2
dag authored
46 description='Modern, Pythonic unit testing.',
0b0de30 @dag long_description
dag authored
47 long_description=__doc__,
867c26f @dag setup.py, closes #2
dag authored
48
49 author='Dag Odenhall',
50 author_email='dag.odenhall@gmail.com',
51 license='Simplified BSD',
094546b @dag Metadata updates
dag authored
52 url='https://github.com/dag/attest',
867c26f @dag setup.py, closes #2
dag authored
53
5d33f77 @dag Make attest a package that contains its own tests, fixes #52
dag authored
54 packages=find_packages(),
867c26f @dag setup.py, closes #2
dag authored
55
56 install_requires=[
57 'progressbar',
55b6756 @dag Spell Pygments dependency as on PyPI, closes #79
dag authored
58 'Pygments',
867c26f @dag setup.py, closes #2
dag authored
59 ],
60
2cc0bb4 @dag Load reporters via entry points, closes #61
dag authored
61 entry_points = {
62 'attest.reporters': [
63 'xml = attest:XmlReporter',
e86a171 @dag QuickFixReporter
dag authored
64 'quickfix = attest:QuickFixReporter',
2cc0bb4 @dag Load reporters via entry points, closes #61
dag authored
65 'plain = attest:PlainReporter',
66 'fancy = attest:FancyReporter',
67 'auto = attest:auto_reporter',
68 ],
69 },
70
dc79d5e @dag reporter.test_loader, closes #67
dag authored
71 test_loader='attest:auto_reporter.test_loader',
5d33f77 @dag Make attest a package that contains its own tests, fixes #52
dag authored
72 test_suite='attest.tests.all',
a56c9ef @dag Test with Python 3.1, two tests fails
dag authored
73 use_2to3=True,
094546b @dag Metadata updates
dag authored
74 zip_safe=False,
6e0d257 @dag Run tests with distribute
dag authored
75
867c26f @dag setup.py, closes #2
dag authored
76 classifiers=[
63d3569 @dag Release 0.4
dag authored
77 'Development Status :: 4 - Beta',
867c26f @dag setup.py, closes #2
dag authored
78 'Intended Audience :: Developers',
79 'License :: OSI Approved :: BSD License',
80 'Programming Language :: Python',
81 'Programming Language :: Python :: 2.5',
82 'Programming Language :: Python :: 2.6',
83 'Programming Language :: Python :: 2.7',
094546b @dag Metadata updates
dag authored
84 'Programming Language :: Python :: 3.1',
867c26f @dag setup.py, closes #2
dag authored
85 'Topic :: Software Development :: Testing',
fb64b5e @dag Use setuptools-git for Python 2
dag authored
86 ],
87
88 **extras
867c26f @dag setup.py, closes #2
dag authored
89 )
Something went wrong with that request. Please try again.