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

Travis ci integration #25

Merged
merged 6 commits into from
Jan 25, 2017
Merged

Travis ci integration #25

merged 6 commits into from
Jan 25, 2017

Conversation

brifordwylie
Copy link
Contributor

No description provided.

@brifordwylie brifordwylie self-assigned this Jul 3, 2016
@brifordwylie
Copy link
Contributor Author

brifordwylie commented Jul 3, 2016

@hellais @guyharris some reasonable changes here.. so review when you get a chance.

The docs will be automatically generated and placed here: http://pypcap.readthedocs.io/en/latest/
The Travis CI will happen here: https://travis-ci.org/pynetwork/pypcap
The coverage will be computed and displayed here: https://coveralls.io/github/SuperCowPowers/chains (this is just an example @hellais will need to give approval for it to show up).

Coveralls is really neato.. you can drill down to individual files and see exactly which lines are not covered: https://coveralls.io/builds/6837945/source?filename=chains%2Fsources%2Fpacket_streamer.py

@hellais
Copy link
Member

hellais commented Oct 16, 2016

This looks great!

Sorry for not checking it out sooner.

@hellais hellais self-assigned this Oct 16, 2016
Copy link
Member

@hellais hellais left a comment

Choose a reason for hiding this comment

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

Left a few comments and some minor required fixes to have this merged.

@@ -1,6 +1,8 @@
Python pcap module
Copy link
Member

Choose a reason for hiding this comment

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

Now that this is in .rst format we may want to also read it and import it for display on pypi.

@@ -0,0 +1,10 @@
=======
Class 1
Copy link
Member

Choose a reason for hiding this comment

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

Are these names dummy names that are going to change?


def get_version(filename):
# Hack this for right now since pypcap doesn't have standard module setup
return '1.1.5'
Copy link
Member

Choose a reason for hiding this comment

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

Ugh.

Yeah we should come up with some better system for managing versioning, maybe one way to go is to create a simple shim around the c extension that we call _pypcap and have a pure python wrapper around it that is the actual pypcap.

Another way to do it would be to put version information in a variable in our setup.py and import it from there.

# Mock any objects that we might need to
from mock import Mock as MagicMock

class Mock(MagicMock):
Copy link
Member

Choose a reason for hiding this comment

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

Isn't MagicMock already part of the mock module?

- Go to github and hit 'New pull request'
- Someone reviews it and says 'AOK'
- Merge the pull request (green button)

Copy link
Member

Choose a reason for hiding this comment

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

❤️


* libpcap-dev

* python-dev
Copy link
Member

Choose a reason for hiding this comment

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

If we start uploading also wheels we could also add a comment that these are not needed for the distributions where we support wheels.

test_release = sdist bdist_wheel upload -r pypitest

[metadata]
description-file = README.md
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be "Readme.rst"

test_pcap_properties()
test_pcap_errors()
test_pcap_dispatch()
test_pcap_readpkts()
Copy link
Member

Choose a reason for hiding this comment

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

Why are you no longer wrapping things inside of the unittest class?

deps = -rdocs/requirements.txt
changedir=docs
commands = sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

Copy link
Member

Choose a reason for hiding this comment

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

👍

@hellais hellais added this to the pypcap 1.1.6 milestone Oct 16, 2016
@hellais hellais mentioned this pull request Jan 25, 2017
5 tasks
@hellais hellais merged commit a79e02b into master Jan 25, 2017
@hellais
Copy link
Member

hellais commented Jan 25, 2017

I implemented the suggested fixes on a copy of this branch.

@hellais hellais deleted the travis-ci-integration branch January 25, 2017 18:19
@hellais hellais mentioned this pull request Mar 22, 2017
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