|
1 |
| -import os |
2 |
| -import sys |
| 1 | +# See pyproject.toml for project / build configuration |
| 2 | +from setuptools import setup |
3 | 3 |
|
4 |
| -from setuptools import setup, Command, find_packages |
5 |
| - |
6 |
| -# Pull version from source without importing |
7 |
| -# since we can't import something we haven't built yet :) |
8 |
| -exec(open('kafka/version.py').read()) |
9 |
| - |
10 |
| - |
11 |
| -class Tox(Command): |
12 |
| - |
13 |
| - user_options = [] |
14 |
| - |
15 |
| - def initialize_options(self): |
16 |
| - pass |
17 |
| - |
18 |
| - def finalize_options(self): |
19 |
| - pass |
20 |
| - |
21 |
| - @classmethod |
22 |
| - def run(cls): |
23 |
| - import tox |
24 |
| - sys.exit(tox.cmdline([])) |
25 |
| - |
26 |
| - |
27 |
| -test_require = ['tox', 'mock'] |
28 |
| - |
29 |
| -here = os.path.abspath(os.path.dirname(__file__)) |
30 |
| - |
31 |
| -with open(os.path.join(here, 'README.rst')) as f: |
32 |
| - README = f.read() |
33 |
| - |
34 |
| -setup( |
35 |
| - name="kafka-python", |
36 |
| - version=__version__, |
37 |
| - |
38 |
| - tests_require=test_require, |
39 |
| - extras_require={ |
40 |
| - "crc32c": ["crc32c"], |
41 |
| - "lz4": ["lz4"], |
42 |
| - "snappy": ["python-snappy"], |
43 |
| - "zstd": ["zstandard"], |
44 |
| - }, |
45 |
| - cmdclass={"test": Tox}, |
46 |
| - packages=find_packages(exclude=['test']), |
47 |
| - author="Dana Powers", |
48 |
| - |
49 |
| - url="https://github.com/dpkp/kafka-python", |
50 |
| - license="Apache License 2.0", |
51 |
| - description="Pure Python client for Apache Kafka", |
52 |
| - long_description=README, |
53 |
| - keywords=[ |
54 |
| - "apache kafka", |
55 |
| - "kafka", |
56 |
| - ], |
57 |
| - classifiers=[ |
58 |
| - "Development Status :: 5 - Production/Stable", |
59 |
| - "Intended Audience :: Developers", |
60 |
| - "License :: OSI Approved :: Apache Software License", |
61 |
| - "Programming Language :: Python", |
62 |
| - "Programming Language :: Python :: 2", |
63 |
| - "Programming Language :: Python :: 2.7", |
64 |
| - "Programming Language :: Python :: 3", |
65 |
| - "Programming Language :: Python :: 3.4", |
66 |
| - "Programming Language :: Python :: 3.5", |
67 |
| - "Programming Language :: Python :: 3.6", |
68 |
| - "Programming Language :: Python :: 3.7", |
69 |
| - "Programming Language :: Python :: 3.8", |
70 |
| - "Programming Language :: Python :: 3.9", |
71 |
| - "Programming Language :: Python :: 3.10", |
72 |
| - "Programming Language :: Python :: 3.11", |
73 |
| - "Programming Language :: Python :: 3.12", |
74 |
| - "Programming Language :: Python :: Implementation :: CPython", |
75 |
| - "Programming Language :: Python :: Implementation :: PyPy", |
76 |
| - "Topic :: Software Development :: Libraries :: Python Modules", |
77 |
| - ] |
78 |
| -) |
| 4 | +setup() |
0 commit comments