-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
56 lines (50 loc) · 1.86 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
51
52
53
54
55
56
#!/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 :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: Implementation :: CPython
""".splitlines() if len(line) > 0]
install_requires = ["six", "pyobjc-framework-ServiceManagement"]
if "darwin" not 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()
LONG_DESCRIPTION = open("README.rst", "r").read() + "\n\n" + open("CHANGELOG.rst", "r").read()
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 macOS launchd",
long_description=LONG_DESCRIPTION,
url="https://github.com/infothrill/python-launchd",
install_requires=install_requires,
classifiers=classifiers,
test_suite="launchd.tests",
tests_require=["six"],
)