My favorites | Sign in
Project Logo
                
Repository:
Checkout | Browse | Changes | Clones |
 
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
76
77
78
79
80
81
82
83
84
85
86
87
88

import sys, os
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
import compiler
import pydoc
from compiler import visitor

class ModuleVisitor(object):
def __init__(self):
self.mod_doc = None
self.mod_version = None

def default(self, node):
for child in node.getChildNodes():
self.visit(child)

def visitModule(self, node):
self.mod_doc = node.doc
self.default(node)

def visitAssign(self, node):
if self.mod_version:
return
asn = node.nodes[0]
assert asn.name == '__version__', (
"expected __version__ node: %s" % asn)
self.mod_version = node.expr.value
self.default(node)

def get_module_meta(modfile):
ast = compiler.parseFile(modfile)
modnode = ModuleVisitor()
visitor.walk(ast, modnode)
if modnode.mod_doc is None:
raise RuntimeError(
"could not parse doc string from %s" % modfile)
if modnode.mod_version is None:
raise RuntimeError(
"could not parse __version__ from %s" % modfile)
return (modnode.mod_version,) + pydoc.splitdoc(modnode.mod_doc)

version, description, long_description = get_module_meta("./fixture/__init__.py")

setup(
name = 'fixture',
version = version,
author = 'Kumar McMillan',
author_email = 'kumar dot mcmillan / gmail.com',
description = description,
classifiers = [ 'Environment :: Other Environment',
'Intended Audience :: Developers',
( 'License :: OSI Approved :: GNU Library or Lesser '
'General Public License (LGPL)'),
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Utilities'],
long_description = long_description,
license = 'GNU Lesser General Public License (LGPL)',
keywords = ('test testing tools unittest fixtures setup teardown '
'database stubs IO tempfile'),
url = 'http://farmdev.com/projects/fixture/',

packages = find_packages(),

test_suite="fixture.setup_test_not_supported",
entry_points = {
'console_scripts': [ 'fixture = fixture.command.generate:main' ]
},
tests_require=[
'testtools', 'psycopg2', 'SQLObject>=0.8', 'Elixir>=0.5', 'simplejson',
'nose>=0.10.3', 'SQLAlchemy==0.4.8', 'Sphinx>=0.4', 'Pylons',
# for some easy_install weirdness, the django
# version check is not working on PyPI :
'django'], # >=1.0.2

# the following allows e.g. easy_install fixture[django]
extras_require = {
'decorators': ['nose>=0.9.2'],
'sqlalchemy': ['SQLAlchemy>=0.4'],
'sqlobject': ['SQLObject>=0.8'],
'django': ['django'],
},
)
Show details Hide details

Change log

a4e2e89ca7 by kumar <kumar.mcmillan> on May 21, 2009   Diff
upgraded Pylons requirements for tests
Go to: 
Project members, sign in to write a code review

Older revisions

ce9ca4b330 by kumar <kumar.mcmillan> on Feb 25, 2009   Diff
fixed up django requirement in
setup.py file
955f558b90 by Ben Ford <ben.fordnz> on Feb 23, 2009   Diff
Added a django section to
extras_requre
9a16476c6a by kumar.mc...@27107627-ce22-0410-b88b-0b808a85e153 on Nov 14, 2008   Diff
merged in json_converter branch
-r381:HEAD, this adds
dataset_to_json() plus docs and tests
and an expansion of the
fixture.dataset module
All revisions of this file

File info

Size: 3105 bytes, 88 lines
Hosted by Google Code