-
Notifications
You must be signed in to change notification settings - Fork 162
feat: add py-multiaddr from git #766
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
Conversation
@acul71 : Thank you so much Luca. Appreciate your initiative and great efforts. Wish if you could resolve the CI/CD issues and also add a news fragment file. Will do a final review + merge at the earliest. |
It's happening in windows and right now (I will in a week) I don't have the right environment to test it, I'll do my best. |
@sumanjeet0012 and @Winter-Soren : Please collaborate with @acul71 on Windows testing. |
I have analyzed the errors and found that the issue occurs while opening the The problem is that the file encoding is not explicitly specified, so the system defaults to a different encoding—most likely To resolve this, we should explicitly specify the Current Code:with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read() Recommended Fix:with open('README.rst', encoding='utf-8') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst', encoding='utf-8') as history_file:
history = history_file.read() |
We can also set environment variables to force UTF-8 decoding by configuring the following in the setenv =
PYTHONIOENCODING = utf-8
PYTHONUTF8 = 1 Try these approaches and share the results. |
@sumanjeet0012 |
@seetadev multiaddr @ git+https://github.com/multiformats/py-multiaddr.git |
@acul71 : Thanks a lot, Luca — appreciate the fix, and great work debugging and resolving the issue! The PR looks good and is definitely ready to be merged. Also, thank you so much @sumanjeet0012 for your continued support and efforts. Regarding your question:
Great point to bring up. While using a rolling version (
So yes, I’d recommend pointing to a specific commit SHA in multiaddr = { git = "https://github.com/multiformats/py-multiaddr.git", rev = "abc1234" } This way, we lock in the known-good version of Once again — thanks for the contribution! Feel free to push the updated |
…7d2733c7df11d6ad9c03e6
This failed with: Obtaining file:///home/luca/Informatica/Learning/PNL_Launchpad_Curriculum/Libp2p/py-libp2p-fork
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... error
error: subprocess-exited-with-error
× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [63 lines of output]
configuration error: `project.dependencies[5]` must be string
DESCRIPTION:
Project dependency specification according to PEP 508
GIVEN VALUE:
{
"git": "https://github.com/multiformats/py-multiaddr.git",
"rev": "db8124e2321f316d3b7d2733c7df11d6ad9c03e6"
}
OFFENDING RULE: 'type'
DEFINITION:
{
"$id": "#/definitions/dependency",
"title": "Dependency",
"type": "string",
"format": "pep508"
} So I used string syntax: "multiaddr @ git+https://github.com/multiformats/py-multiaddr.git@db8124e2321f316d3b7d2733c7df11d6ad9c03e6", Ready to Merge, |
@acul71 : Great, thank you for the wonderful contribution. Doing a final review. Will merge soon. |
Wish to also thank @sumanjeet0012 for his support and contribution too. |
Modified
pyproject.toml
to use last git version ofpy-multiaddr
( Until we can publish in PyPi)