summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py64
1 files changed, 64 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..8570c8a
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,64 @@
+# -*- coding: utf-8 -*-
+
+# setup.py
+# Part of python-daemon, an implementation of PEP 3143.
+#
+# Copyright © 2008–2010 Ben Finney <ben+python@benfinney.id.au>
+# Copyright © 2008 Robert Niederreiter, Jens Klein
+#
+# This is free software: you may copy, modify, and/or distribute this work
+# under the terms of the Python Software Foundation License, version 2 or
+# later as published by the Python Software Foundation.
+# No warranty expressed or implied. See the file LICENSE.PSF-2 for details.
+
+""" Distribution setup for python-daemon library.
+ """
+
+import textwrap
+from setuptools import setup, find_packages
+
+distribution_name = "python-daemon"
+main_module_name = 'daemon'
+main_module = __import__(main_module_name, fromlist=['version'])
+version = main_module.version
+
+short_description, long_description = (
+ textwrap.dedent(d).strip()
+ for d in main_module.__doc__.split(u'\n\n', 1)
+ )
+
+
+setup(
+ name=distribution_name,
+ version=version.version,
+ packages=find_packages(exclude=["test"]),
+
+ # setuptools metadata
+ zip_safe=False,
+ test_suite="test.suite",
+ tests_require=[
+ "MiniMock >=1.2.2",
+ ],
+ install_requires=[
+ "setuptools",
+ "lockfile >=0.7",
+ ],
+
+ # PyPI metadata
+ author=version.author_name,
+ author_email=version.author_email,
+ description=short_description,
+ license=version.license,
+ keywords=u"daemon fork unix".split(),
+ url=main_module._url,
+ long_description=long_description,
+ classifiers=[
+ # Reference: http://pypi.python.org/pypi?%3Aaction=list_classifiers
+ "Development Status :: 4 - Beta",
+ "License :: OSI Approved :: Python Software Foundation License",
+ "Operating System :: POSIX",
+ "Programming Language :: Python",
+ "Intended Audience :: Developers",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ )