-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
82 lines (68 loc) · 2.4 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- coding: utf-8 -*-
#
# Copyright © 2021 Malek Hadj-Ali
# All rights reserved.
#
# This file is part of mood.
#
# mood is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3
# as published by the Free Software Foundation.
#
# mood is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with mood. If not, see <http://www.gnu.org/licenses/>.
#
from setuptools import setup, find_packages, Extension
from codecs import open
from os.path import abspath
pkg_name = "mood.mqueue"
pkg_version = "1.6.0"
pkg_desc = "Python POSIX message queues interface (Linux only)"
PKG_VERSION = ("PKG_VERSION", "\"{0}\"".format(pkg_version))
setup(
name=pkg_name,
version=pkg_version,
description=pkg_desc,
long_description=open(abspath("README.txt"), encoding="utf-8").read(),
long_description_content_type="text",
url="https://github.com/lekma/mood.mqueue",
download_url="https://github.com/lekma/mood.mqueue/releases",
project_urls={
"Bug Tracker": "https://github.com/lekma/mood.mqueue/issues"
},
author="Malek Hadj-Ali",
author_email="[email protected]",
license="GNU General Public License v3 (GPLv3)",
platforms=["Linux"],
keywords="linux mqueue",
setup_requires = ["setuptools>=24.2.0"],
python_requires="~=3.10",
packages=find_packages(),
namespace_packages=["mood"],
zip_safe=False,
ext_package="mood",
ext_modules=[
Extension(
"mqueue",
[
"src/helpers/helpers.c",
"src/mqueue.c"
],
define_macros=[PKG_VERSION],
libraries=["rt"]
)
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython"
]
)