Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (47 sloc) 2.08 KB
#!/usr/bin/python
# -*- coding: utf-8 -*-
#KhtNotes Setup File
import sys
import os
reload(sys).setdefaultencoding("UTF-8")
from distutils.core import setup
#Remove temporary files
for root, dirs, fs in os.walk(os.path.join(os.path.dirname(__file__),
'khtnotes')):
for filename in [filename for filename
in fs if filename.endswith(('~', '.pyo', '.pyc', ))]:
os.remove(os.path.join(root, filename))
files = []
for root, dirs, filenames in os.walk(os.path.join(os.path.dirname(__file__),
'khtnotes')):
files.append((os.path.join('/opt', root),
[os.path.join(root, filename)
for filename in filenames]))
print files
setup(name='khtnotes',
version='3.0.0',
license='GNU GPLv3',
description='A note taking application with ownCloud sync',
long_description="A note taking application for Harmattan devices"
+ " (n950, n9), and Nemo Mobile/ MeeGo devices. "
+ "KhtNotes provide"
+ " sync of notes with ownCloud, "
+ "and permit to preview markdown syntax",
author=u'Benoît HERVIER',
author_email='khertan@khertan.net',
maintainer=u'Benoît HERVIER',
maintainer_email='khertan@khertan.net',
url='http://www.khertan.net/KhtNotes',
requires=['python', 'pyside'],
#packages=['khtnotes', ],
#package_data={'khtnotes': ['icons/*',
# 'qml/components/*',
# 'qml/*.js',
# 'qml/*.qml'], },
data_files=[('/usr/share/dbus-1/services', ['khtnotes.service']),
('/usr/share/applications/', ['khtnotes.desktop']),
('/usr/share/icons/hicolor/80x80/apps', ['khtnotes.png']),
('/usr/share/icons/hicolor/64x64/apps', ['khtnotes_64.png']),
('/usr/share/icons/hicolor/scalable/apps', ['khtnotes.svg']),
] + files,
)