mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-10 15:10:54 +00:00
moving contributing info from README to Contributing docs
This commit is contained in:
32
README.md
32
README.md
@ -22,42 +22,10 @@ The Python implementation of the libp2p networking stack
|
|||||||
|
|
||||||
Read more in the [documentation on ReadTheDocs](https://py-libp2p.readthedocs.io/). [View the release notes](https://py-libp2p.readthedocs.io/en/latest/release_notes.html).
|
Read more in the [documentation on ReadTheDocs](https://py-libp2p.readthedocs.io/). [View the release notes](https://py-libp2p.readthedocs.io/en/latest/release_notes.html).
|
||||||
|
|
||||||
## Sponsorship
|
|
||||||
|
|
||||||
This project is graciously sponsored by the Ethereum Foundation through [Wave 5 of their Grants Program](https://blog.ethereum.org/2019/02/21/ethereum-foundation-grants-program-wave-5/).
|
|
||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
|
|
||||||
Currently maintained by [@pacrob](https://github.com/pacrob) and [@dhuseby](https://github.com/dhuseby), looking for assistance!
|
Currently maintained by [@pacrob](https://github.com/pacrob) and [@dhuseby](https://github.com/dhuseby), looking for assistance!
|
||||||
|
|
||||||
The py-libp2p team previously consisted of:
|
|
||||||
|
|
||||||
[@zixuanzh](https://github.com/zixuanzh) [@alexh](https://github.com/alexh) [@stuckinaboot](https://github.com/stuckinaboot) [@robzajac](https://github.com/robzajac) [@carver](https://github.com/carver)
|
|
||||||
|
|
||||||
## Development
|
|
||||||
|
|
||||||
py-libp2p requires Python 3.8+ and the best way to guarantee a clean Python environment is with [`virtualenv`](https://virtualenv.pypa.io/en/stable/)
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git clone git@github.com:libp2p/py-libp2p.git
|
|
||||||
cd py-libp2p
|
|
||||||
virtualenv -p python venv
|
|
||||||
. venv/bin/activate
|
|
||||||
python -m pip install -e .[dev]
|
|
||||||
pre-commit install
|
|
||||||
```
|
|
||||||
|
|
||||||
Or if you use zsh, you will need to escape the `[` and `]` when running the the `pip install` command; like so:
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
python -m pip install -e .\[dev\]
|
|
||||||
```
|
|
||||||
|
|
||||||
We use [pre-commit](https://pre-commit.com/) to maintain consistent code style. Once
|
|
||||||
installed, it will run automatically with every commit. You can also run it manually
|
|
||||||
with `make lint`. If you need to make a commit that skips the `pre-commit` checks, you
|
|
||||||
can do so with `git commit --no-verify`.
|
|
||||||
|
|
||||||
Note that tests/test_libp2p/test_libp2p.py contains an end-to-end messaging test between two libp2p hosts, which is the bulk of our proof of concept.
|
Note that tests/test_libp2p/test_libp2p.py contains an end-to-end messaging test between two libp2p hosts, which is the bulk of our proof of concept.
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|||||||
@ -1,4 +1,51 @@
|
|||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
|
|
||||||
TODO - instructions for contributing
|
Development
|
||||||
|
-----------
|
||||||
|
|
||||||
|
py-libp2p requires Python 3.8+.
|
||||||
|
|
||||||
|
To get started, fork the repository to your own github account, then clone it to your
|
||||||
|
development machine:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone git@github.com:<your-github-username>/py-libp2p.git
|
||||||
|
```
|
||||||
|
|
||||||
|
then install the development dependencies. We recommend using a virtual environment,
|
||||||
|
such as [`virtualenv`](https://virtualenv.pypa.io/en/stable/)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd py-libp2p
|
||||||
|
virtualenv -p python venv
|
||||||
|
. venv/bin/activate
|
||||||
|
python -m pip install -e ".[dev]"
|
||||||
|
pre-commit install
|
||||||
|
```
|
||||||
|
|
||||||
|
We use [pre-commit](https://pre-commit.com/) to maintain consistent code style. Once
|
||||||
|
installed, it will run automatically with every commit. You can also run it manually
|
||||||
|
with `make lint`. If you need to make a commit that skips the `pre-commit` checks, you
|
||||||
|
can do so with `git commit --no-verify`.
|
||||||
|
|
||||||
|
Testing
|
||||||
|
-------
|
||||||
|
|
||||||
|
You can run the tests with `make test` or `pytest tests`. This will run the unit tests
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
History
|
||||||
|
-------
|
||||||
|
|
||||||
|
Prior to 2023, this project is graciously sponsored by the Ethereum Foundation through
|
||||||
|
[Wave 5 of their Grants Program](https://blog.ethereum.org/2019/02/21/ethereum-foundation-grants-program-wave-5/).
|
||||||
|
|
||||||
|
The creators and original maintainers of this project are:
|
||||||
|
* [@zixuanzh](https://github.com/zixuanzh)
|
||||||
|
* [@alexh](https://github.com/alexh)
|
||||||
|
* [@stuckinaboot](https://github.com/stuckinaboot)
|
||||||
|
* [@robzajac](https://github.com/robzajac)
|
||||||
|
* [@carver](https://github.com/carver)
|
||||||
|
|||||||
@ -19,7 +19,7 @@ Contents
|
|||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
:caption: py-libp2p
|
:caption: py-libp2p
|
||||||
|
|
||||||
examples
|
Examples <examples>
|
||||||
API <libp2p>
|
API <libp2p>
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
|||||||
@ -4,8 +4,9 @@ Introduction
|
|||||||
py-libp2p is the Python implementation of the libp2p networking stack.
|
py-libp2p is the Python implementation of the libp2p networking stack.
|
||||||
It hopes to someday be fully compatible with other implementations of libp2p.
|
It hopes to someday be fully compatible with other implementations of libp2p.
|
||||||
|
|
||||||
This project is still in its early stages, and is not yet ready for production use.
|
This project is still in its early stages and is not yet ready for production use.
|
||||||
|
|
||||||
Further Reading
|
Further Reading
|
||||||
---------------
|
---------------
|
||||||
`libp2p main site <https://libp2p.io/>`_
|
* `libp2p main site <https://libp2p.io/>`_
|
||||||
|
* `Tutorial: Introduction to libp2p <https://proto.school/introduction-to-libp2p>`_
|
||||||
|
|||||||
Reference in New Issue
Block a user