Skip to content

Add multiaddr as subpackage #637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Mar 15, 2025
Merged

Add multiaddr as subpackage #637

merged 19 commits into from
Mar 15, 2025

Conversation

dvmazur
Copy link
Collaborator

@dvmazur dvmazur commented Nov 4, 2024

Currently, we use a version of multiaddr from a specific commit https://github.com/learning-at-home/hivemind/blob/master/requirements.txt#L13 because we require multiformats/py-multiaddr#63 (py-multiaddr is no longer maintained, so there is no up-to-date version of it in PyPI). However, this prevents us from publishing the new release of Hivemind:

Can't have direct dependency: multiaddr@ git+https://github.com/multiformats/py-multiaddr.git@e01dbd38f2c0464c0f78b556691d655265018cce

This PR vendors py-multiaddr into hivemind, removing our dependency on this commit from an external repository

@justheuristic justheuristic requested a review from mryab February 24, 2025 13:41
@mryab mryab force-pushed the multiaddr-subpackage branch from 5b29f81 to a106157 Compare March 15, 2025 10:27
Copy link

codecov bot commented Mar 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.23%. Comparing base (d20e810) to head (d7685ad).
Report is 24 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #637      +/-   ##
==========================================
+ Coverage   85.39%   86.23%   +0.83%     
==========================================
  Files          81       96      +15     
  Lines        8006     8584     +578     
==========================================
+ Hits         6837     7402     +565     
- Misses       1169     1182      +13     
Files with missing lines Coverage Δ
hivemind/dht/dht.py 90.58% <100.00%> (+0.16%) ⬆️
hivemind/dht/node.py 93.60% <100.00%> (+0.94%) ⬆️
hivemind/p2p/p2p_daemon.py 95.62% <100.00%> (+0.04%) ⬆️
hivemind/p2p/p2p_daemon_bindings/control.py 91.86% <100.00%> (+0.26%) ⬆️
hivemind/p2p/p2p_daemon_bindings/datastructures.py 86.58% <100.00%> (+10.85%) ⬆️
hivemind/p2p/p2p_daemon_bindings/p2pclient.py 100.00% <100.00%> (ø)
hivemind/utils/multiaddr/__init__.py 100.00% <100.00%> (ø)
hivemind/utils/multiaddr/codecs/__init__.py 100.00% <100.00%> (ø)
hivemind/utils/multiaddr/codecs/cid.py 100.00% <100.00%> (ø)
hivemind/utils/multiaddr/codecs/domain.py 100.00% <100.00%> (ø)
... and 12 more

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mryab mryab merged commit 02ddf5c into master Mar 15, 2025
18 of 20 checks passed
@mryab mryab deleted the multiaddr-subpackage branch March 15, 2025 12:03
mryab added a commit that referenced this pull request Apr 20, 2025
* Add multiaddr as subpackage

* Remove py-multiaddr dependency

* Move to hivemind.utils, add copyright notices

* Add multiaddr tests

* Add newline in requirements.txt

---------

Co-authored-by: Max Ryabinin <mryabinin0@gmail.com>
(cherry picked from commit 02ddf5c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants