forked from seifert/ipcqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
79 lines (67 loc) · 1.95 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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
import ipcqueue
class PyTest(TestCommand):
user_options = [
('pytest-args=', 'a', "Arguments to pass to py.test"),
]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
description = (
"Ipcqueue provides POSIX and SYS V message queues functionality to "
"exchange data among processes."
)
try:
if sys.version_info >= (3,):
long_description = open('README.rst', 'rb').read().decode('utf-8')
else:
long_description = open('README.rst', 'r').read().decode('utf-8')
except IOError:
long_description = description
setup(
name="ipcqueue",
version=ipcqueue.__version__,
author='Jan Seifert',
author_email="jan.seifert@fotkyzcest.net",
description=description,
long_description=long_description,
keywords="sysv posix ipc queue",
url='https://github.com/seifert/ipcqueue',
license="BSD",
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=['ipcqueue'],
zip_safe=False,
setup_requires=[
'cffi>=1',
],
install_requires=[
'cffi>=1',
],
tests_require=[
'pytest>=3',
],
test_suite='tests',
cmdclass={
'test': PyTest,
},
cffi_modules=[
'cffi_builder_posix.py:ffibuilder',
'cffi_builder_sysv.py:ffibuilder',
],
)