-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
64 lines (55 loc) · 1.87 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
57
58
59
60
61
62
63
64
# -*- coding: utf-8 -*-
# setup.py
# Part of python-daemon, an implementation of PEP 3143.
#
# Copyright © 2008–2010 Ben Finney <[email protected]>
# 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",
],
)