Repository navigation
Conversation
…marker Signed-off-by: Nguyen Quang Minh <135627235+n24q02m@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
README.mdjumped directly into C++/CMake build-from-source instructions (## Requirements) without showing end users how to install pre-builtpulsar-clientwheels viapip, what optional extras (avro,protobuf,functions,all) exist insetup.py, or a minimal producer/consumer quickstart.pulsarpackage includes inline type annotations acrosspulsar/__init__.py,pulsar/asyncio.py,pulsar/tableview.py, andpulsar/schema/schema_avro.py, but did not ship a PEP 561pulsar/py.typedmarker file, preventing type checkers such asmypyandpyrightfrom recognizing those annotations in downstream projects.Changes
README.md:## Quick installsection documentingpip install pulsar-clientfor Python 3.10–3.15 and optional extras (pulsar-client[avro],pulsar-client[protobuf],pulsar-client[functions],pulsar-client[all]) matchingextras_requireinsetup.py.## Quickstartsection with minimal produce and consume examples usingpulsar.Client,create_producer,send,subscribe,receive,acknowledge, andtry/finallycleanup.## Building from source->### Requirements.pulsar/py.typed:setup.py:package_data={'pulsar': ['py.typed']}so the marker file is included in built distributions and wheels.Verification
pulsar/py.typedis 0 bytes.python3 -m py_compile setup.pyandsetup.py --name --versionsucceed cleanly.README.mdparse cleanly withast.parseand match exported methods inpulsar/__init__.py.setup.py bdist_wheelbuild packagespulsar/py.typed(0 bytes) inside the generated.whl.git diff main --checkis clean.