forked from infothrill/python-launchd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
58 lines (50 loc) Β· 1.84 KB
/
setup.py
File metadata and controls
58 lines (50 loc) Β· 1.84 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
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
classifiers = [line.strip() for line in """
Development Status :: 3 - Alpha
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: DFSG approved
License :: OSI Approved
License :: OSI Approved :: MIT License
Topic :: Software Development :: Libraries :: Python Modules
Environment :: MacOS X
Natural Language :: English
Operating System :: MacOS :: MacOS X
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: Implementation :: CPython
""".splitlines() if len(line) > 0]
install_requires = ["six", "pyobjc-framework-ServiceManagement"]
if sys.version_info < (3, 2):
install_requires.append("argparse")
if not 'darwin' in sys.platform:
sys.stderr.write("Warning: The package 'launchd' can only be installed and run on OS X!" + os.linesep)
v = open(os.path.join(os.path.dirname(__file__), 'launchd', '__init__.py'))
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(v.read()).group(1)
v.close()
setup(name="launchd",
packages=["launchd", "launchd.tests"],
version=VERSION,
author="Paul Kremer",
author_email="@".join(("paul", "spurious.biz")), # avoid spam,
license="MIT License",
description="pythonic interface for OS X launchd",
long_description=(open('README.rst', 'r').read() + '\n\n' +
open('CHANGELOG.rst', 'r').read()),
url="https://github.com/infothrill/python-launchd",
install_requires=install_requires,
classifiers=classifiers,
test_suite='launchd.tests',
tests_require=["six"],
)