Skip to content
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

Feature/issue 104 #105

Merged
merged 7 commits into from
Jan 10, 2019
Merged

Feature/issue 104 #105

merged 7 commits into from
Jan 10, 2019

Conversation

magniff
Copy link

@magniff magniff commented Jan 9, 2019

  • Migrate to project structure, proposed at issue-104
  • Tune up .travis config a bit.

@magniff magniff mentioned this pull request Jan 9, 2019
@codecov-io
Copy link

Codecov Report

Merging #105 into master will decrease coverage by 11.14%.
The diff coverage is 63.46%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #105       +/-   ##
===========================================
- Coverage   57.19%   46.04%   -11.15%     
===========================================
  Files          53       42       -11     
  Lines        1668     1303      -365     
===========================================
- Hits          954      600      -354     
+ Misses        714      703       -11
Impacted Files Coverage Δ
libp2p/kademlia/storage.py 0% <ø> (ø)
...p2p/network/connection/raw_connection_interface.py 100% <ø> (ø)
libp2p/network/stream/net_stream_interface.py 100% <ø> (ø)
libp2p/protocol_muxer/multiselect.py 93.1% <ø> (ø)
libp2p/network/network_interface.py 100% <ø> (ø)
libp2p/kademlia/__init__.py 0% <ø> (ø)
libp2p/kademlia/utils.py 0% <ø> (ø)
libp2p/peer/id.py 82.75% <ø> (ø)
libp2p/stream_muxer/mplex/utils.py 67.64% <ø> (ø)
...p2p/protocol_muxer/multiselect_client_interface.py 100% <ø> (ø)
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab1aa0e...597f94d. Read the comment docs.

@magniff
Copy link
Author

magniff commented Jan 9, 2019

Ok, everything seems to be fine. Apparently pylint ignore path option is still broken, according to this issue pylint-dev/pylint#2541

@magniff magniff changed the title WIP: Feature/issue 104 Feature/issue 104 Jan 9, 2019
robzajac added a commit that referenced this pull request Jan 10, 2019
Copy link
Contributor

@robzajac robzajac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice PR, thanks for this. Just two small things (primarily waiting for #106) and then LGTM. Will also let one of @zixuanzh @alexh @stuckinaboot take a look due to scope.

- pytest --cov=./ -v
- pylint --rcfile=.pylintrc encryption host libp2p network peer stream_muxer transport tests
- pytest --cov=./libp2p tests/
- pylint --rcfile=.pylintrc libp2p/!(kademlia|protocol_muxer) tests
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch; we actually only wanted to exclude kademlia (it's an external implementation that we haven't used yet; we will likely move to a Git submodule soon (#97)). We can include protocol_muxer in linting after #106 lands.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just approved #106

- pip install codecov pytest pytest-cov
- pip install --upgrade pip
- pip install "pytest>=3.6"
- pip install codecov pytest-cov pytest-asyncio pylint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have these dependencies in setup.py as well? I can't remember or find docs about why we put them here instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO the style might be pretty suitable, or even put them in a separate requirements_dev.txt

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah - so we're trying to distinguish between dependencies pulled in by devs and users. That's a good idea. In that case, I think the py-evm style works well, or any suitable alternative.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requirements_dev is a good option, thumbs up!) I will have a chance to add it only at the late evening, though. Can we merge this code as is and add missing deps in a separate PR or something?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, see #107 for the list of changes to be made to travis.yml

@zixuanzh
Copy link
Contributor

Should be good to go once travis.yml is updated.

@magniff magniff mentioned this pull request Jan 10, 2019
@zixuanzh zixuanzh merged commit 597f94d into libp2p:master Jan 10, 2019
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.

None yet

5 participants