-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·81 lines (76 loc) · 2.52 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
#!/usr/bin/env python3
"""Pytest Kafka fixtures."""
from os import environ
from pathlib import Path
from setuptools import setup # type: ignore
VERSION = '0.8.1'
# Optional suffix for Test PyPI packages.
VERSION_SUFFIX = environ.get('VERSION_SUFFIX', None)
if VERSION_SUFFIX is not None:
VERSION = '{}.post{}'.format(VERSION, VERSION_SUFFIX)
README_FILE = Path(__file__).resolve().with_name('README.rst')
README = README_FILE.read_text('utf-8')
REQUIREMENTS = [
'pytest',
'port_for>=0.4',
]
DEV_REQUIREMENTS = [
'flake8',
'pyflakes>=1.6.0', # Flake8's version doesn't detect types used in string annotations.
'flake8-docstrings',
'flake8_tuple',
'mypy',
]
DOC_REQUIREMENTS = [
'Sphinx==7.4.7',
'sphinx-rtd-theme==2.0.0',
]
KAFKA_PYTHON_REQUIREMENT = [
'kafka-python>=1.4.3',
]
KAFKA_PYTHON_NG_REQUIREMENT = [
'kafka-python-ng>=2.2.2',
]
if __name__ == '__main__':
setup(
name='pytest-kafka',
version=VERSION,
description='Zookeeper, Kafka server, and Kafka consumer fixtures for Pytest',
long_description=README,
classifiers=[
'Framework :: Pytest',
'Topic :: Software Development :: Testing',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
keywords='',
author='Karoline Pauls',
author_email='code@karolinepauls.com',
url='https://gitlab.com/karolinepauls/pytest-kafka',
project_urls={
"Bug Tracker": 'https://gitlab.com/karolinepauls/pytest-kafka/issues',
"Documentation": 'https://pytest-kafka.readthedocs.io/',
"Source Code": 'https://gitlab.com/karolinepauls/pytest-kafka',
},
license='MIT',
packages=['pytest_kafka'],
package_data={
'pytest_kafka': ['py.typed'],
},
zip_safe=False,
install_requires=REQUIREMENTS,
extras_require={
'kafka-python': KAFKA_PYTHON_REQUIREMENT,
'kafka-python-ng': KAFKA_PYTHON_NG_REQUIREMENT,
'dev': DEV_REQUIREMENTS,
'doc': DOC_REQUIREMENTS,
},
# We don't export fixtures for the user (only fixture factories) but we do declare some
# fixtures for internal use.
entry_points={
'pytest11': ["pytest_kafka = pytest_kafka._fixtures"],
},
)