<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from distutils.core import setup
import py2app
import os

def data_files(dirname = '.'):
	"""Figure out the sugar structure and massage it into data_files format."""
	def data_file(name):
		return (os.path.join('..', '..', name),
		        [os.path.join(dirname, name, file)
		         for file in os.listdir(os.path.join(dirname, name))
		         if not file.startswith('.')])
	
	base = ['LICENSE', 'README.mdown', 'Languages.xml']
	result = [(os.path.join('..', '..'), base)]
	dirs = set([
		'CodeSenseLibraries',
		'CodeSenseProviders',
		'ContextualSettings',
		'FileActions',
		'Itemizers',
		'PlaceholderThemes',
		'Syntaxes',
		'SyntaxInjections',
		'TextActions',
	])
	for name in dirs.intersection(set(os.listdir(dirname))):
		result.append(data_file(name))
	return result

setup(
	name = 'Bash',
	version = '0.0',
	author = u'<NAME>',
	author_email = '<EMAIL>',
	url = 'http://github.com/mkhl/bash.sugar',
	description = 'A Sugar adding sweet Bash support for Espresso',
	data_files = data_files('xml'),
	plugin = ['src/Itemizers.py'],
	options = {
		'py2app': {
			'extension': '.sugar',
		}
	}
)<commit_msg>Add an Info.plist for the bundle.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from distutils.core import setup
import py2app
import os

def data_files(dirname = '.'):
	"""Figure out the sugar structure and massage it into data_files format."""
	def data_file(name):
		return (os.path.join('..', '..', name),
		        [os.path.join(dirname, name, file)
		         for file in os.listdir(os.path.join(dirname, name))
		         if not file.startswith('.')])
	
	base = ['LICENSE', 'README.mdown', 'Languages.xml']
	result = [(os.path.join('..', '..'), base)]
	dirs = set([
		'CodeSenseLibraries',
		'CodeSenseProviders',
		'ContextualSettings',
		'FileActions',
		'Itemizers',
		'PlaceholderThemes',
		'Syntaxes',
		'SyntaxInjections',
		'TextActions',
	])
	for name in dirs.intersection(set(os.listdir(dirname))):
		result.append(data_file(name))
	return result

setup(
	name = 'Bash',
	version = '0.0',
	author = u'<NAME>',
	author_email = '<EMAIL>',
	url = 'http://github.com/mkhl/bash.sugar',
	description = 'A Sugar adding sweet Bash support for Espresso',
	data_files = data_files('xml'),
	plugin = ['src/Itemizers.py'],
	options = {
		'py2app': {
			'extension': '.sugar',
			'plist': {
				'CFBundleVersion': '0.0',
				'CFBundleIdentifier': 'org.purl.net.mkhl.bash',
				'NSHumanReadableCopyright': u'(c) 2009 <NAME>. Released under the MIT license.',
			},
		}
	}
)
{'fraction_non_alphanumeric': 0.18475301439128744, 'fraction_numerical': 0.006223259432127577, 'mean_word_length': 3.736648250460405, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2507218', 'n_tokens_mistral': 992, 'n_tokens_neox': 921, 'n_words': 207}