Python package setup and basic tests #44
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@tabatkins This PR makes the following changes:
pip
installable.tox
test runner to run tests against python 2.7, 3.4, 3.5 and 3.6, showing statement coverage reports after each test run:This PR also does the following:
__eq__
and a descriptive__repr__
method. I've found this makes working with the library much more user-friendly, and makes tests easier to write.<style>
element so a separate stylesheet is not required to render the generated SVGs. Currently the SVGs are pretty broken without the default stylesheet, so I think inlining the CSS is the right way to go:Thanks again for writing this library!
* Note: If you're unfamiliar with the upload process (which is a little confusing), I'd be happy to upload it for you, and transfer ownership of the pypi package to your pypi account. Otherwise, this is a good guide.