My favorites | Sign in
Project Home Downloads Wiki Issues Source
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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import xml.sax.saxutils
from os.path import join
import sys
import os

try:
from msgfmt import Msgfmt
except:
sys.path.insert(0, join(os.getcwd(), 'formalchemy'))
from msgfmt import Msgfmt

def compile_po(path):
for language in os.listdir(path):
lc_path = join(path, language, 'LC_MESSAGES')
if os.path.isdir(lc_path):
for domain_file in os.listdir(lc_path):
if domain_file.endswith('.po'):
file_path = join(lc_path, domain_file)
mo_file = join(lc_path, '%s.mo' % domain_file[:-3])
mo_content = Msgfmt(file_path, name=file_path).get()
mo = open(mo_file, 'wb')
mo.write(mo_content)
mo.close()

try:
compile_po(join(os.getcwd(), 'formalchemy', 'i18n_resources'))
except Exception, e:
print 'Error while building .mo files'
print '%r - %s' % (e, e)

def read(filename):
text = open(filename).read()
text = unicode(text, 'utf-8').encode('ascii', 'xmlcharrefreplace')
return xml.sax.saxutils.escape(text)

long_description = '.. contents::\n\n' +\
'Description\n' +\
'===========\n\n' +\
read('README.txt') +\
'\n\n' +\
'Changes\n' +\
'=======\n\n' +\
read('CHANGELOG.txt')

setup(name='FormAlchemy',
license='MIT License',
version='1.3.6',
description='FormAlchemy greatly speeds development with SQLAlchemy mapped classes (models) in a HTML forms environment.',
long_description=long_description,
author='Alexandre Conrad, Jonathan Ellis, Gaƫl Pasgrimaud',
author_email='formalchemy@googlegroups.com',
url='http://formalchemy.googlecode.com',
download_url='http://code.google.com/p/formalchemy/downloads/list',
install_requires=['SQLAlchemy', 'Tempita', 'WebHelpers'],
packages=find_packages(),
package_data={'formalchemy': ['*.tmpl', 'i18n_resources/*/LC_MESSAGES/formalchemy.mo',
'ext/pylons/*.mako', 'ext/pylons/resources/*.css', 'ext/pylons/resources/*.png',
'tests/data/mako/*.mako', 'tests/data/genshi/*.html',
'paster_templates/pylons_fa/+package+/*/*_tmpl',
]},
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: User Interfaces',
'Topic :: Text Processing :: Markup :: HTML',
'Topic :: Utilities',
],
message_extractors = {'formalchemy': [
('**.py', 'python', None),
('**.mako', 'mako', None),
('**.tmpl', 'python', None)]},
zip_safe=False,
entry_points = """
[paste.paster_create_template]
pylons_fa = formalchemy.ext.pylons.pastertemplate:PylonsTemplate
""",
)

Change log

2d8847d0709f by Gael Pasgrimaud <g...@gawel.org> on Nov 11, 2010   Diff
bump version
Go to: 
Project members, sign in to write a code review

Older revisions

4d691d4e388e by Gael Pasgrimaud <g...@gawel.org> on Nov 11, 2010   Diff
merge info-formalchemy-nonsqlalchemy-
fix clone
36782cd0ba72 by Gael Pasgrimaud <g...@gawel.org> on Apr 7, 2010   Diff
bump version
2bab9848c476 by Gael Pasgrimaud <g...@gawel.org> on Apr 2, 2010   Diff
prepare 1.3.3
All revisions of this file

File info

Size: 3403 bytes, 86 lines
Powered by Google Project Hosting