forked from jaredks/rumps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (46 loc) · 1.45 KB
/
Copy pathsetup.py
File metadata and controls
49 lines (46 loc) · 1.45 KB
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
#!/usr/bin/env python
import os
import sys
from setuptools import setup
INFO_PLIST_TEMPLATE = '''\
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>%(name)s</string>
</dict>
</plist>
'''
try:
with open(os.path.join(os.path.dirname(sys.executable), 'Info.plist'), 'w') as f:
f.write(INFO_PLIST_TEMPLATE % {'name': 'rumps'})
except IOError:
pass
with open('README.rst') as f:
readme = f.read()
with open('CHANGES.rst') as f:
changes = f.read()
setup(
name='rumps',
version='0.2.2',
description='Ridiculously Uncomplicated Mac os x Python Statusbar apps.',
author='Jared Suttles',
url='https://github.com/jaredks/rumps',
packages=['rumps', 'rumps.packages'],
package_data={'': ['LICENSE']},
long_description=readme + '\n\n' + changes,
license='BSD License',
install_requires=['pyobjc-framework-Cocoa'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: MacOS X',
'Environment :: MacOS X :: Cocoa',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python',
'Programming Language :: Objective C',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)