Commit Graph

177 Commits

Author SHA1 Message Date
386f0a2299 Bump version: 0.2.6 → 0.2.7 2025-05-22 15:27:03 -06:00
e076a038bc Bump version: 0.2.5 → 0.2.6 2025-05-12 13:46:14 -06:00
171b2a26e3 removed grpcio dependency from setup.py 2025-05-09 17:31:15 -06:00
317eaeda93 fix: add grpcio dependency to extras_require and install_requires 2025-05-09 17:31:15 -06:00
91beff5e63 fix: added identify push to setup.py 2025-05-01 09:14:46 -06:00
b47f978625 bump protobuf dep to >=6.30.1 2025-04-28 19:04:29 -06:00
0225d188c8 Bump version: 0.2.4 → 0.2.5 2025-04-14 11:12:26 -06:00
90657a3b23 update license info in description per latest python packaging guide 2025-04-07 16:25:17 -06:00
346a0a14db Pubsub example for py-libp2p (#515)
* Initial setup for pubsup

* Created node and trying to setup gossipsub

* Fix: Use pubsub object for publishing messages instead of gossipsub

* Correct help message for port argument.

* Fix: Used pubsub object instead of gossipsub object on Client side

* Fix: handle_new_peer method of pubsub is used to connect to new peers.

* used for host.connect to connect to peers

* Corrected script for connecting to other peers.

* message receiving function created

* message publishing function created

* Refactored the code for improved clarity and maintainability.

* fix: make publish loop input non-blocking to prevent event loop blocking

* refactored the code for better user experience while publishing message

* corrected the name of protocol

* Fix: Correct the implementation of the port argument

* Added pubsub initialization

* added logging

* pubsub instance is running

* Enhance publish loop with user prompts and error handling

* Connection monitoring added

* Add key pair generation and security options to pubsub host initialization

* Refactor pubsub logging and corrected gossipsub protocol id

* Started gossipsub service

* Add dynamic port assignment

* Refactor pubsub example for CI

* feat: monitor_peer_topics function added

* Noise protocol added

* refactor: default port set to none and some logging changes.

* refactor: Add graceful shutdown with termination events

- Replace infinite loops with termination events
- Add proper shutdown handling for all loops
- Implement clean resource cleanup on exit
- Add shutdown message for better user feedback
- Update signal handling for graceful termination

* Changed import path for factories file.
- to align import statement with changes from PR 543

* Added News Fragment

* Added pub-sub demo to the console_scripts section in setup.py

* Added pubsub example to Documentation

* Fix formatting and path in PubSub documentation example

* Added pubsub example in toctree

* Added tests for pubsub example

* updated the description of pubsub example

* corrected the name of pubsub docs file

* Remove unused imports and security options from pubsub example

* Update script usage instructions in pubsub example

* Enhanced compatibility for python 3.9

* Corrected console output
2025-04-06 14:38:14 -06:00
71b3bf2a55 Bump version: 0.2.3 → 0.2.4 2025-03-27 15:53:49 -06:00
3bdbde57c7 feat: Add Windows compatibility using coincurve 2025-03-27 15:49:30 -06:00
479b12f64d Bump version: 0.2.2 → 0.2.3 2025-03-27 14:47:07 -06:00
604a447287 feat: add identify protocol example 2025-03-24 17:55:16 -06:00
4e64347f1e Bump version: 0.2.1 → 0.2.2 2025-02-20 09:15:39 -07:00
20580b9a4e drop py38 from CI 2025-01-25 15:48:39 -07:00
e0814c9860 move interop tests tools into tests folder 2025-01-25 15:28:32 -07:00
460db3dce8 merge template, fill vars, lint 2025-01-25 14:43:45 -07:00
a72dbaa58d set demos as console scripts, update chat instructions 2025-01-01 17:36:41 -07:00
45cdd1a4da Bump version: 0.2.0 → 0.2.1 2024-12-20 11:58:50 -07:00
4be68af0db Put python3.8 support back in:
- We should create a breaking changes branch to be
  merged only when we are ready to start the next
  major version release cycle for all our
  maintained libraries.
2024-12-12 14:29:06 -07:00
c6a24e411c Update version update note 2024-12-02 12:23:01 -07:00
1280617249 run mypy local 2024-11-22 10:41:50 -07:00
6a927ac1e7 drop py38, add py13, add 2024 to license 2024-11-22 10:41:50 -07:00
62a0843b5f updated trio dependency in setup and added newsfragment 2024-10-29 08:07:10 -06:00
224044874e bump towncrier version pins 2024-10-24 16:12:44 -06:00
3e4420e9c2 Bump version: 0.1.5 → 0.2.0 2024-07-09 11:23:05 -06:00
125df142f6 bump protobufs dep to >= 5.27.2 and rebuild protobufs definitions with protoc 27.2 2024-07-04 17:04:06 -06:00
c5cc0ee969 run mypy locally, bump mypy to 1.10.0, fix new errors 2024-07-04 13:19:00 -06:00
0326e34870 open pynacl dep to bottom pin only, remove interop-only deps from install_requires 2024-05-27 12:40:23 -06:00
a3f8db3ecd async-exit-stack was for pre-py37, just import from contextlib now 2024-05-27 12:40:23 -06:00
d9b92635c1 drop async-service dep and copy relevant code into a local async_service
tool, updated for modern handling of ExceptionGroup
2024-05-27 12:14:36 -06:00
d8d0f05a88 update default docs and release process, drop bumpversion for
bump-my-version
2024-05-21 14:01:08 -06:00
7de6cbaab0 display example code and usage instructions in docs 2024-05-19 13:34:13 -06:00
827d16b106 import asynccontextmanager from context lib and remove async_generator dep 2024-04-27 10:12:39 -06:00
04cce0c925 switch to xelatex for building latexpdf as it supports more unicode 2024-04-24 15:52:24 -06:00
eea065fb57 reorg test structure to match tox and CI jobs, drop bumpversion for bump-my-version and move config to pyproject.toml, fix docs building 2024-04-20 09:18:26 -06:00
4f3faa9941 move adding test deps to rtd build from setup.py to rtd config 2024-04-20 09:18:26 -06:00
eb6d44b728 Update setup.py
drop sphinx-autobuild dep back to allow py3.8 to install
2024-04-19 15:13:19 -06:00
b87ee6a4a9 Successfully unmark scripts as a package for wheels 2024-04-17 12:53:36 -06:00
f29c8ad8f0 scripts directory included in dist but not in wheel. (#130) 2024-04-17 10:50:30 -06:00
74f0a2fac9 sphinx-autobuild for live docs updates (#129)
* `sphinx-autobuild` for live docs updates.

* Use Python 3.9 and `sphinx-autobuild` `2024.2.4`
2024-04-15 11:23:46 -06:00
2974d831e7 readthedocs build is failing, looking for factoryboy and pytest - add test deps to docs 2024-04-06 12:19:30 -06:00
318ce66ef5 add missing deps 2024-03-01 15:36:16 -07:00
51291cee95 drop upper pins 2024-03-01 15:34:44 -07:00
755fb21e1c turn off windows wheel builds 2024-02-20 09:17:01 -07:00
94483714a3 run lint and fix errors, except mypy 2024-02-19 16:05:58 -07:00
42605c0288 merge template updates and refill vars 2024-02-19 14:49:30 -07:00
b853f5ccdf add py312 support 2024-01-31 11:13:12 -07:00
8d5d92ddd8 Update setup.py
drop pytest-watch from dev dependencies
2023-10-26 12:54:07 -06:00
82425694f6 drop py37 support (#104) 2023-10-04 15:36:57 -06:00