This repository has been archived by the owner on Jun 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·50 lines (42 loc) · 1.85 KB
/
setup.py
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
#!/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.4.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='[email protected]',
maintainer=u'Benoît HERVIER',
maintainer_email='[email protected]',
url='http://www.khertan.net/KhtNotes',
requires=['python', 'pyside'],
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,
)