forked from dimier/python-daemon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (35 loc) · 1.34 KB
/
setup.py
File metadata and controls
43 lines (35 loc) · 1.34 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
# -*- coding: utf-8 -*-
import os
import re
from setuptools import setup
def version():
regex = r'^(?m){}[\s]*=[\s]*(?P<ver>\d*)$'
with open(os.path.join(os.path.dirname(__file__), 'include.mk')) as f:
ver = f.read()
major = re.search(regex.format('MAJORVERSION'), ver).group('ver')
minor = re.search(regex.format('MINORVERSION'), ver).group('ver')
patch = re.search(regex.format('PATCHLEVEL'), ver).group('ver')
return "{}.{}.{}".format(major, minor, patch)
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
setup(
name="python-daemon",
version=version(),
packages=['daemonize'],
license="http://creativecommons.org/licenses/by-sa/3.0/",
url="https://github.com/cnobile2012/python-daemon",
author="Carl J. Nobile",
author_email='carl.nobile@gmail.com',
description="Python daemonizer for Unix and Linux",
long_description=README,
classifiers=[
'License :: OSI Approved :: Creative Commons License',
'Intended Audience :: Developers',
'Environment :: No Input/Output (Daemon)',
'Development Status :: Version 1.0.0',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3',
],
)